UNPKG

mocker-data-generator

Version:

A simplified way to generate mock data, builds using a simple schema and with the FakerJs

10 lines (9 loc) 417 B
import { Generator } from './Generator'; import { Generators } from './types'; export declare class Schema extends Generator<any> { constructor(name: string, cfg: any, options: any, generators?: Generators); proccessLeaf(field: any, fieldName?: any): any; generateField(fieldName: any, cfg: any, ...args: any[]): {}; buildSingle(schema: any): void; build(generators?: Generators, db?: {}): any; }