Skip to content

Commit

Permalink
types(schematypes): add missing BigInt SchemaType
Browse files Browse the repository at this point in the history
Fix #13780
  • Loading branch information
vkarpov15 committed Aug 27, 2023
1 parent e36fc48 commit 7ec92a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions types/schematypes.d.ts
Expand Up @@ -311,6 +311,14 @@ declare module 'mongoose' {
enum(vals: string[] | number[]): this;
}

class BigInt extends SchemaType {
/** This schema type's name, to defend against minifiers that mangle function names. */
static schemaName: 'BigInt';

/** Default options for this SchemaType */
defaultOptions: Record<string, any>;
}

class Boolean extends SchemaType {
/** This schema type's name, to defend against minifiers that mangle function names. */
static schemaName: 'Boolean';
Expand Down

0 comments on commit 7ec92a7

Please sign in to comment.