Skip to content

Commit

Permalink
Merge pull request #14023 from rbjb/feat/add-uuid-types
Browse files Browse the repository at this point in the history
feat: add Types.UUID typings
  • Loading branch information
vkarpov15 committed Nov 14, 2023
2 parents abb823d + d21d0b9 commit 401fae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

declare module 'mongoose' {
import mongodb = require('mongodb');
import bson = require('bson');

class NativeBuffer extends Buffer {}

Expand Down Expand Up @@ -99,5 +100,7 @@ declare module 'mongoose' {
/** Returns this sub-documents parent array. */
parentArray(): Types.DocumentArray<unknown>;
}

class UUID extends bson.UUID {}
}
}

0 comments on commit 401fae6

Please sign in to comment.