mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
fix(types): use maps for set patches
This commit is contained in:
parent
7e4d3cbf42
commit
acab2d3cce
1 changed files with 1 additions and 1 deletions
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
|
|
@ -255,7 +255,7 @@ declare namespace Charm {
|
|||
| (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>
|
||||
? ReadonlyMap<T, true | 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