Skip to content

Commit 8bdf98c

Browse files
committed
don't output ID and ID_Field in the inferred schema
1 parent 852bea1 commit 8bdf98c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/api/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,8 +1211,7 @@ type ObjectFromProperties<
12111211
>;
12121212
}
12131213
: Record<string | number | symbol, never>
1214-
)
1215-
& IDFields;
1214+
);
12161215

12171216
// Restrict Depth to these numeric literal types
12181217
type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;

packages/static/assets/types/commontools.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ type ObjectFromProperties<P extends Record<string, JSONSchema>, R extends readon
698698
[key: string]: unknown;
699699
} : AP extends JSONSchema ? {
700700
[key: string]: SchemaInner<AP, Root, DecrementDepth<Depth>, WrapCells>;
701-
} : Record<string | number | symbol, never>) & IDFields;
701+
} : Record<string | number | symbol, never>);
702702
type DepthLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
703703
type Decrement = {
704704
0: 0;

0 commit comments

Comments
 (0)