faker-api
Version:
A fully customizible rest api faking package that allows you to mock , clone and fake Rest API with fake yet realistic data
17 lines • 619 B
TypeScript
import { Field } from "./fields";
import { ParamsType } from "./../core";
import { Request } from "express";
import AbstractModel from "./abstract-model";
declare type FieldFunctionType = (config?: any) => string | any[] | number | object;
declare type FieldsType = {
[key: string]: string | number | any[] | Field | FieldFunctionType;
};
declare class Model extends AbstractModel {
protected fields: FieldsType;
constructor(fields: FieldsType);
generate(request?: Request, params?: ParamsType): {
[key: string]: any;
};
}
export { Model, AbstractModel };
//# sourceMappingURL=index.d.ts.map