mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
refactor: rename Source to Molecule
This commit is contained in:
parent
f2ec300204
commit
0046af5598
11 changed files with 60 additions and 50 deletions
|
|
@ -2,7 +2,7 @@ export type WeakMap<K, V> = typeof(setmetatable({} :: { [K]: V }, { __mode = "k"
|
|||
|
||||
export type Atom<T> = (() -> T) & (state: T | (T) -> T) -> T
|
||||
|
||||
export type Source<T> = () -> T
|
||||
export type Molecule<T> = () -> T
|
||||
|
||||
export type AtomOptions<T> = {
|
||||
equals: (prev: T, next: T) -> boolean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue