mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 03:36:11 +00:00
refactor: rewrite untracked, update alien-signals
This commit is contained in:
parent
a8051257e5
commit
cb52ece4d3
15 changed files with 239 additions and 114 deletions
|
|
@ -4,13 +4,15 @@ type Atom<T> = Charm.Atom<T>
|
|||
|
||||
--- A payload that can be sent from the server to the client to synchronize
|
||||
--- state between the two.
|
||||
export type SyncPayload = {
|
||||
type: "init",
|
||||
data: { [string | number]: any },
|
||||
} | {
|
||||
type: "patch",
|
||||
data: { [string | number]: any },
|
||||
}
|
||||
export type SyncPayload =
|
||||
| {
|
||||
type: "init",
|
||||
data: { [string | number]: any },
|
||||
}
|
||||
| {
|
||||
type: "patch",
|
||||
data: { [string | number]: any },
|
||||
}
|
||||
|
||||
export type AtomMap = {
|
||||
[string | number]: Atom<any>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue