We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16e5d38 commit 8fb2304Copy full SHA for 8fb2304
builder/src/schema-to-ts.ts
@@ -1,4 +1,4 @@
1
-import type { JSONSchema } from "./types.ts";
+import type { IDFields, JSONSchema } from "./types.ts";
2
import type { Cell, Stream } from "@commontools/runner";
3
4
export const schema = <T extends JSONSchema>(schema: T) => schema;
@@ -126,7 +126,8 @@ type ObjectFromProperties<
126
: AP extends JSONSchema
127
? { [key: string]: Schema<AP, Root, DecrementDepth<Depth>> }
128
: Record<string | number | symbol, never>
129
- );
+ )
130
+ & IDFields;
131
132
// Restrict Depth to these numeric literal types
133
type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
0 commit comments