UNPKG

@websolute/faker.ts

Version:

Easy to Use, Powered by Decorators, Faker.js TypeScript Wrapper

20 lines (19 loc) 596 B
export interface ObjectLiteral { [key: string]: unknown; } export declare type ExactValue = string | number | boolean | ObjectLiteral | Date; export declare type MultiClass = { type: Class; count: number; }; export declare type EnumObject = { enum: object; }; export declare type Callback = (faker: Faker.FakerStatic) => any; export interface Class<T = any> extends Function { new (...args: any[]): T; } export declare type ClassLiteral<T> = Partial<{ [K in keyof T]: T[K]; }>; export declare type FixtureOptions = Callback | ExactValue | Class | EnumObject | MultiClass;