-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: TypeScript
InferIdType and OptionalId are logically complex types it would be ideal to break these types down into more readable components and attempt to make use of Typescript's utility types as much as possible.
Potentially some combination of union types, and the Extract and/or Pick utility types: Extract<Pick<TSchema, '_id'> | ObjectId, NonNullable>
- is related to
-
NODE-3761 OptionalId should resolve optional custom types to the user type or ObjectId
- Closed