mirror of
https://github.com/littensy/charm.git
synced 2026-10-23 22:21:37 +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
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
|
|
@ -28,7 +28,7 @@ declare namespace Charm {
|
|||
|
||||
function effect(callback: () => void): Cleanup;
|
||||
|
||||
function unwrap<State, Args extends unknown[]>(molecule: State | ((...args: Args) => State), ...args: Args): State;
|
||||
function peek<State, Args extends unknown[]>(molecule: State | ((...args: Args) => State), ...args: Args): State;
|
||||
|
||||
function isAtom(value: unknown): value is Atom<any>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue