@websolute/faker.ts
Version:
Easy to Use, Powered by Decorators, Faker.js TypeScript Wrapper
13 lines (12 loc) • 615 B
TypeScript
import { ValueHandler } from '../types/value-handler.interface';
import { PropertyDto } from '../types/property-dto.interface';
import { EnumObject } from '../types/fixture-options.type';
import FakerStatic = Faker.FakerStatic;
export declare class EnumValueHandler<P extends EnumObject> implements ValueHandler<P> {
protected readonly faker: FakerStatic;
constructor(faker: FakerStatic);
private static getEnumValues;
static isEnumValue(propertyDto: PropertyDto<EnumObject>): boolean;
shouldHandle(propertyDto: PropertyDto<P>): boolean;
produceValue<T>(propertyDto: PropertyDto<P>): any;
}