UNPKG

@nestjs/mongoose

Version:

MongoDB for NestJS through Mongoose: schemas as decorated classes, injectable models, hooks and multiple connections.

4 lines (3 loc) • 214 B
import * as mongoose from 'mongoose'; export type PropOptions<T = any> = Partial<mongoose.SchemaDefinitionProperty<T>> | mongoose.SchemaType; export declare function Prop(options?: PropOptions): PropertyDecorator;