@zenstackhq/runtime 3.0.0-alpha.11 → 3.0.0-alpha.12
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/dist/{contract-BQGRBbOU.d.cts → contract-BEAyf7Es.d.cts} +12 -1
- package/dist/{contract-BQGRBbOU.d.ts → contract-BEAyf7Es.d.ts} +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/policy.d.cts +1 -1
- package/dist/plugins/policy.d.ts +1 -1
- package/package.json +7 -7
|
@@ -10,7 +10,18 @@ type Simplify<T, D extends number = 6> = D extends 0 ? T : T extends object ? T
|
|
|
10
10
|
[K in keyof T]: Simplify<T[K], _Depth[D]>;
|
|
11
11
|
} & {} : T;
|
|
12
12
|
type WrapType<T, Optional = false, Array = false> = Optional extends true ? T | null : Array extends true ? T[] : T;
|
|
13
|
-
type
|
|
13
|
+
type TypeMap = {
|
|
14
|
+
String: string;
|
|
15
|
+
Boolean: boolean;
|
|
16
|
+
Int: number;
|
|
17
|
+
Float: number;
|
|
18
|
+
BigInt: bigint;
|
|
19
|
+
Decimal: Decimal;
|
|
20
|
+
DateTime: Date;
|
|
21
|
+
Bytes: Uint8Array;
|
|
22
|
+
Json: JsonValue;
|
|
23
|
+
};
|
|
24
|
+
type MapBaseType$1<T extends string> = T extends keyof TypeMap ? TypeMap[T] : unknown;
|
|
14
25
|
type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
15
26
|
type JsonObject = {
|
|
16
27
|
[key: string]: JsonValue;
|
|
@@ -10,7 +10,18 @@ type Simplify<T, D extends number = 6> = D extends 0 ? T : T extends object ? T
|
|
|
10
10
|
[K in keyof T]: Simplify<T[K], _Depth[D]>;
|
|
11
11
|
} & {} : T;
|
|
12
12
|
type WrapType<T, Optional = false, Array = false> = Optional extends true ? T | null : Array extends true ? T[] : T;
|
|
13
|
-
type
|
|
13
|
+
type TypeMap = {
|
|
14
|
+
String: string;
|
|
15
|
+
Boolean: boolean;
|
|
16
|
+
Int: number;
|
|
17
|
+
Float: number;
|
|
18
|
+
BigInt: bigint;
|
|
19
|
+
Decimal: Decimal;
|
|
20
|
+
DateTime: Date;
|
|
21
|
+
Bytes: Uint8Array;
|
|
22
|
+
Json: JsonValue;
|
|
23
|
+
};
|
|
24
|
+
type MapBaseType$1<T extends string> = T extends keyof TypeMap ? TypeMap[T] : unknown;
|
|
14
25
|
type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
|
|
15
26
|
type JsonObject = {
|
|
16
27
|
[key: string]: JsonValue;
|