jazz-tools 0.9.18 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +13 -0
- package/dist/{chunk-LRDIS2Q2.js → chunk-D7BVHLME.js} +4 -4
- package/dist/chunk-D7BVHLME.js.map +1 -0
- package/dist/index.native.js +1 -1
- package/dist/index.web.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/src/implementation/schema.ts +4 -1
- package/src/implementation/symbols.ts +5 -3
- package/dist/chunk-LRDIS2Q2.js.map +0 -1
package/dist/index.native.js
CHANGED
package/dist/index.web.js
CHANGED
package/dist/testing.js
CHANGED
package/package.json
CHANGED
@@ -5,6 +5,7 @@ import {
|
|
5
5
|
type CoValueClass,
|
6
6
|
CoValueFromRaw,
|
7
7
|
ItemsSym,
|
8
|
+
JazzToolsSymbol,
|
8
9
|
MembersSym,
|
9
10
|
SchemaInit,
|
10
11
|
isCoValueClass,
|
@@ -23,7 +24,9 @@ export type CoMarker = { readonly __co: unique symbol };
|
|
23
24
|
export type co<T> = T | (T & CoMarker);
|
24
25
|
export type IfCo<C, R> = C extends infer _A | infer B
|
25
26
|
? B extends CoMarker
|
26
|
-
? R
|
27
|
+
? R extends JazzToolsSymbol // Exclude symbol properties like co.items or co.members from the refs/init types
|
28
|
+
? never
|
29
|
+
: R
|
27
30
|
: never
|
28
31
|
: never;
|
29
32
|
export type UnCo<T> = T extends co<infer A> ? A : T;
|
@@ -1,8 +1,10 @@
|
|
1
|
-
export
|
1
|
+
export type JazzToolsSymbol = SchemaInit | ItemsSym | MembersSym;
|
2
|
+
|
3
|
+
export const SchemaInit = "$SchemaInit$";
|
2
4
|
export type SchemaInit = typeof SchemaInit;
|
3
5
|
|
4
|
-
export const ItemsSym =
|
6
|
+
export const ItemsSym = "$items$";
|
5
7
|
export type ItemsSym = typeof ItemsSym;
|
6
8
|
|
7
|
-
export const MembersSym =
|
9
|
+
export const MembersSym = "$members$";
|
8
10
|
export type MembersSym = typeof MembersSym;
|