Skip to content

Commit c2dc34d

Browse files
committed
types: remove IfUnknown, no longer used
1 parent 008d95d commit c2dc34d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

types/utility.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ declare module 'mongoose' {
22
type IfAny<IFTYPE, THENTYPE, ELSETYPE = IFTYPE> = 0 extends 1 & IFTYPE
33
? THENTYPE
44
: ELSETYPE;
5-
type IfUnknown<IFTYPE, THENTYPE> = unknown extends IFTYPE ? THENTYPE : IFTYPE;
65
type IsUnknown<T> = unknown extends T ? true : false;
76

87
type WithLevel1NestedPaths<T, K extends keyof T = keyof T> = {

0 commit comments

Comments
 (0)