mirror of
https://github.com/littensy/charm.git
synced 2026-10-23 05:46:27 +00:00
feat: initial commit
This commit is contained in:
commit
18723c1377
50 changed files with 3238 additions and 0 deletions
26
src/init.luau
Normal file
26
src/init.luau
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
_G[script.modules.Promise] = _G[script]
|
||||
|
||||
local atom = require(script.atom)
|
||||
local derive = require(script.derive)
|
||||
local isAtom = require(script.isAtom)
|
||||
local observe = require(script.observe)
|
||||
local split = require(script.split)
|
||||
local subscribe = require(script.subscribe)
|
||||
local useAtom = require(script.react.useAtom)
|
||||
local useAtomState = require(script.react.useAtomState)
|
||||
local useSetAtom = require(script.react.useSetAtom)
|
||||
|
||||
export type Atom<State> = atom.Atom<State>
|
||||
export type ReadonlyAtom<State> = atom.ReadonlyAtom<State>
|
||||
|
||||
return {
|
||||
atom = atom,
|
||||
derive = derive,
|
||||
isAtom = isAtom,
|
||||
observe = observe,
|
||||
split = split,
|
||||
subscribe = subscribe,
|
||||
useAtom = useAtom,
|
||||
useAtomState = useAtomState,
|
||||
useSetAtom = useSetAtom,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue