Type Alias WithId<TSchema>

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

Add an _id field to an object shaped type向对象形状类型添加_id字段

Type Parameters

  • TSchema