You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f97f3f3
Browse filesBrowse the repository at this point in the historyBrowse files
store.ts
Added bigint and symbol to `NotWrappable`.
Simplified `DeepReadonly<T>`.
`Store<T>` is now an alias for `DeepReadonly<T>`.
Refactored `Part`, `Next`, and `SetStoreFunction` to improve their performance.
Changed `NullableNext` to `Next`, and `Next` to `WrappableNext`. `WrappableNext` excludes all non-wrappable types instead of just non-nullable types, so `{a: number | {b: number}}` now allows `setStore("a", "b", 1)`.
Omitted irrelevant overloads for `SetStoreFunction<T>` i.e. a store of `{a: 1}` now only has two overloads: just a setter, and a key then setter. This improves performance and reduces overload clutter.
Improved the rest overload for `SetStoreFunction<T>`: it now correctly infers all types in the correct order, except for `ArrayFilterFn`s which need to be explicitly typed.
store.spec.ts
Added a few test cases for store types.
modifiers.ts
Improved types of `reconcile` and `produce`; the latter now correctly infers types.
server.ts
Import types from store.ts instead of redefining them.
index.ts
Removed the `Readonly` export. Added `WrappableNext`.
fixessolidjs#732
Copy file name to clipboardExpand all lines: packages/solid/store/src/server.ts
+5-123Lines changed: 5 additions & 123 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,6 @@
1
-
exportconst$RAW=Symbol("state-raw");
2
-
3
-
// well-known symbols need special treatment until https://github.com/microsoft/TypeScript/issues/24622 is implemented.
0 commit comments