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