mirror of
https://github.com/littensy/charm.git
synced 2026-10-23 05:46:27 +00:00
refactor: rename unwrap to peek
This commit is contained in:
parent
1e7e20902a
commit
047be71eaa
6 changed files with 16 additions and 16 deletions
|
|
@ -5,6 +5,7 @@ local derive = require(script.derive)
|
|||
local effect = require(script.effect)
|
||||
local map = require(script.map)
|
||||
local observe = require(script.observe)
|
||||
local peek = require(script.peek)
|
||||
local useAtom = require(script.react.useAtom)
|
||||
local useAtomState = require(script.react.useAtomState)
|
||||
local useSetAtom = require(script.react.useSetAtom)
|
||||
|
|
@ -12,7 +13,6 @@ local store = require(script.store)
|
|||
local subscribe = require(script.subscribe)
|
||||
local sync = require(script.sync)
|
||||
local types = require(script.types)
|
||||
local unwrap = require(script.unwrap)
|
||||
|
||||
export type Atom<State> = types.Atom<State>
|
||||
export type Molecule<State> = types.Molecule<State>
|
||||
|
|
@ -20,18 +20,18 @@ export type SyncPayload = types.SyncPayload
|
|||
|
||||
return {
|
||||
atom = atom,
|
||||
batch = store.batch,
|
||||
capture = store.capture,
|
||||
notify = store.notify,
|
||||
isAtom = store.isAtom,
|
||||
derive = derive,
|
||||
effect = effect,
|
||||
map = map,
|
||||
observe = observe,
|
||||
peek = peek,
|
||||
useAtom = useAtom,
|
||||
useAtomState = useAtomState,
|
||||
useSetAtom = useSetAtom,
|
||||
batch = store.batch,
|
||||
capture = store.capture,
|
||||
notify = store.notify,
|
||||
isAtom = store.isAtom,
|
||||
subscribe = subscribe,
|
||||
sync = sync,
|
||||
unwrap = unwrap,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue