UNPKG

@mocking-bird/mongoose

Version:

Generates fixtures for `mongoose`. Simply provide the schema or model, and it will generate mock data based on the types and constraints of the schema.

8 lines (7 loc) 310 B
import { CoreTypeMapper, FieldType, NonArrayFieldType } from '@mocking-bird/core'; export declare class MongooseTypeMapper extends CoreTypeMapper { private static readonly SUPPORTED_TYPES; getType(type: string): FieldType; getArrayType(type: string): NonArrayFieldType; private validateType; }