This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This svelte store is a reference to make super quick live and interactive pieces of code. | |
See its announcement at https://www.youtube.com/watch?v=A8jkJTWacow&t=18579s | |
*/ | |
type Options<T> = { | |
validator: (data: T) => void; | |
}; | |
export function live<T>(path: string, initialValue: T, options?: Options<T>) { |