feat: add peek and roblox-ts types

This commit is contained in:
littensy 2025-07-02 21:58:55 -07:00
parent d2979ebd4c
commit 708bc55de7
37 changed files with 363 additions and 1234 deletions

View file

@ -1 +1,8 @@
export {};
/**
* Subscribes to the state of an atom or selector. Returns a source that
* updates when the state changes.
*
* @param callback The atom or selector to subscribe to.
* @returns The reactive source.
*/
export function useAtom<T>(callback: () => T, dependencies?: any[]): () => T;