mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
fix(types): add sets to SyncPatch
This commit is contained in:
parent
e545264782
commit
7e4d3cbf42
1 changed files with 7 additions and 5 deletions
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
|
|
@ -254,6 +254,8 @@ declare namespace Charm {
|
|||
| MaybeNone<State>
|
||||
| (State extends ReadonlyMap<infer K, infer V> | Map<infer K, infer V>
|
||||
? ReadonlyMap<K, SyncPatch<V> | None>
|
||||
: State extends Set<infer T> | ReadonlySet<infer T>
|
||||
? ReadonlySet<T | None>
|
||||
: State extends readonly (infer T)[]
|
||||
? readonly (SyncPatch<T> | None | undefined)[]
|
||||
: State extends object
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue