UNPKG

@nestjs/mongoose

Version:

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

9 lines (8 loc) • 287 B
import { VirtualTypeOptions } from 'mongoose'; export interface VirtualOptions { options?: VirtualTypeOptions; subPath?: string; get?: (...args: any[]) => any; set?: (...args: any[]) => any; } export declare function Virtual(options?: VirtualOptions): PropertyDecorator;