mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
build: remove project json files (#46)
* 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
This commit is contained in:
parent
e7fe400fa8
commit
e9d8dffb02
49 changed files with 95 additions and 100 deletions
15
packages/react/src/index.d.ts
vendored
15
packages/react/src/index.d.ts
vendored
|
|
@ -1,15 +0,0 @@
|
|||
import { Selector } from "@rbxts/charm";
|
||||
|
||||
/**
|
||||
* A hook that subscribes to changes in the given atom or selector. The
|
||||
* component is re-rendered whenever the state changes.
|
||||
*
|
||||
* If the `dependencies` array is provided, the subscription to the atom or
|
||||
* selector is re-created whenever the dependencies change. Otherwise, the
|
||||
* subscription is created once when the component is mounted.
|
||||
*
|
||||
* @param callback The atom or selector to subscribe to.
|
||||
* @param dependencies An array of values that the subscription depends on.
|
||||
* @returns The current state.
|
||||
*/
|
||||
export function useAtom<State>(callback: Selector<State>, dependencies?: unknown[]): State;
|
||||
Loading…
Add table
Add a link
Reference in a new issue