diff --git a/builder/src/schema-to-ts.ts b/builder/src/schema-to-ts.ts index 338cc8895..94bae2f60 100644 --- a/builder/src/schema-to-ts.ts +++ b/builder/src/schema-to-ts.ts @@ -1,4 +1,4 @@ -import type { JSONSchema } from "./types.ts"; +import type { IDFields, JSONSchema } from "./types.ts"; import type { Cell, Stream } from "@commontools/runner"; export const schema = (schema: T) => schema; @@ -126,7 +126,8 @@ type ObjectFromProperties< : AP extends JSONSchema ? { [key: string]: Schema> } : Record - ); + ) + & IDFields; // Restrict Depth to these numeric literal types type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;