Skip to content

Commit 3c82ae0

Browse files
committed
* remove casting
1 parent cc1d149 commit 3c82ae0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/mongoose-helpers.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,26 +54,26 @@ export type MongooseSchemaTypeParameters<
5454
}[Parameter]
5555
: {};
5656

57-
const noCastFn = (value: any) => value;
57+
// const noCastFn = (value: any) => value;
5858

5959
export class MongooseZodBoolean extends M.SchemaTypes.Boolean {
6060
static schemaName = 'MongooseZodBoolean' as 'Boolean';
61-
cast = noCastFn;
61+
// cast = noCastFn;
6262
}
6363

6464
export class MongooseZodDate extends M.SchemaTypes.Date {
6565
static schemaName = 'MongooseZodDate' as 'Date';
66-
cast = noCastFn;
66+
// cast = noCastFn;
6767
}
6868

6969
export class MongooseZodNumber extends M.SchemaTypes.Number {
7070
static schemaName = 'MongooseZodNumber' as 'Number';
71-
cast = noCastFn;
71+
// cast = noCastFn;
7272
}
7373

7474
export class MongooseZodString extends M.SchemaTypes.String {
7575
static schemaName = 'MongooseZodString' as 'String';
76-
cast = noCastFn;
76+
// cast = noCastFn;
7777
}
7878

7979
export const registerCustomMongooseZodTypes = (): void => {

0 commit comments

Comments
 (0)