diff --git a/convert_types.ts b/convert_types.ts index a32740e..e3eef99 100644 --- a/convert_types.ts +++ b/convert_types.ts @@ -1,5 +1,4 @@ -import { MongoClient, ObjectId, BSON, BSONType, Decimal128, Binary } from 'mongodb'; -import { compile } from 'json-schema-to-typescript'; +import { MongoClient, ObjectId, BSON, BSONType, Decimal128, Binary } from 'npm:mongodb'; interface Schema { [key: string]: { @@ -17,7 +16,7 @@ interface MongoTypeMap { Decimal128: number; Object: object; Array: any[]; - Binary: Buffer; + Binary: Uint8Array; Timestamp: Date; Date: Date; ObjectId: string;