mongo-ts-struct
Version:
Mongoose wrapper for Typescript supports
12 lines (11 loc) • 528 B
TypeScript
import { PropertyDefinition } from '../../../../models/internal';
declare type SupportedTypes = 'string' | 'number' | 'boolean' | 'any';
/**
* @description
* using the standard syntax:
* { type: [{ type: <TYPE>, default: [] }] }
* where <TYPE> is the one of Schema.Types.(String | Number | Boolean | Mixed | TypedSchemaClass)
* @param type
*/
export declare function ArrayOf(type: SupportedTypes | Function, definition?: Partial<PropertyDefinition>): (targetPrototype: Object, propertyName: string) => void;
export {};