charm/packages/vide/index.d.ts
littensy aff5f768bf build: remove project json files
Including Rojo project files in packages interferes with certain Wally packages that depend on roblox-ts packages
2025-03-09 15:02:17 -07:00

9 lines
268 B
TypeScript

import { Selector } from "@rbxts/charm";
/**
* Subscribes to the state of an atom and returns a Vide source.
*
* @param callback The atom or selector to subscribe to.
* @returns The reactive source.
*/
export function useAtom<T>(callback: Selector<T>): () => T;