refactor: rename unwrap to peek

This commit is contained in:
Richard 2024-04-23 20:35:42 -07:00
parent 1e7e20902a
commit 047be71eaa
6 changed files with 16 additions and 16 deletions

2
src/index.d.ts vendored
View file

@ -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>;