Skip to content

Commit

Permalink
fix: ts
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed Sep 28, 2022
1 parent 31c542a commit 3bb7c70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,7 @@ export function getMongoDBClientEncryption(): {
* - `-1 = oid1 is less than oid2`
* - `+0 = oid1 is equal oid2`
*/
export function compareObjectId(oid1?: ObjectId, oid2?: ObjectId): 0 | 1 | -1 {
export function compareObjectId(oid1?: ObjectId | null, oid2?: ObjectId | null): 0 | 1 | -1 {
if (oid1 == null && oid2 == null) {
return 0;
}
Expand Down

0 comments on commit 3bb7c70

Please sign in to comment.