Skip to content

Type Alias: InferDoc<S, O> ​

InferDoc<S, O> = { [K in keyof S]: FieldType<S[K]> } & object & O["timestamps"] extends true ? Timestamps : unknown

Defined in: src/schema/field-types.ts:104

Type Declaration ​

_id ​

_id: ObjectId

Type Parameters ​

S ​

S extends SchemaDef

O ​

O extends ModelOptions = ModelOptions

Released under the MIT License.