Skip to content

Commit f25238d

Browse files
committed
update types
1 parent 2350b28 commit f25238d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/types.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { type JSONSchema4 } from 'json-schema';
22

33
export type StandardJSONSchema = JSONSchema4;
44

5-
export type MongodbJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
6-
bsonType: string;
7-
properties?: Record<string, MongodbJSONSchema>;
8-
items?: MongodbJSONSchema[];
9-
anyOf?: MongodbJSONSchema[];
5+
export type MongoDBJSONSchema = Pick<StandardJSONSchema, 'title' | 'required' | 'description'> & {
6+
bsonType?: string | string[];
7+
properties?: Record<string, MongoDBJSONSchema>;
8+
items?: MongoDBJSONSchema | MongoDBJSONSchema[];
9+
anyOf?: MongoDBJSONSchema[];
1010
}
1111

1212
export type ExtendedJSONSchema = StandardJSONSchema & {

0 commit comments

Comments
 (0)