Type alias OptionalId<TSchema>

OptionalId<TSchema>: EnhancedOmit<TSchema, "_id"> & {
    _id?: InferIdType<TSchema>;
}

Add an optional _id field to an object shaped type

Type Parameters

  • TSchema

Type declaration

Generated using TypeDoc