@websolute/faker.ts
Version:
Easy to Use, Powered by Decorators, Faker.js TypeScript Wrapper
12 lines (11 loc) • 595 B
TypeScript
import { PropertyDto } from '../types/property-dto.interface';
import { ExactValue, FixtureOptions } from '../types/fixture-options.type';
import FakerStatic = Faker.FakerStatic;
export declare abstract class PrimitiveHandlerAbstract<P extends FixtureOptions> {
protected readonly faker: FakerStatic;
static readonly PRIMITIVES: string[];
protected constructor(faker: FakerStatic);
protected generateRandomValueFromPrimitive(ctor: string): ExactValue;
isConstructorNamePrimitive(propertyDto: PropertyDto<P>): boolean;
isPrimitive(propertyDto: PropertyDto<P>): boolean;
}