mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
* build: remove project json files Including Rojo project files in packages interferes with certain Wally packages that depend on roblox-ts packages * build: create project files for release
9 lines
268 B
TypeScript
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;
|