UNPKG

@websolute/faker.ts

Version:

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

12 lines (11 loc) 562 B
import { ValueHandler } from '../types/value-handler.interface'; import { PropertyDto } from '../types/property-dto.interface'; import { Callback } from '../types/fixture-options.type'; import FakerStatic = Faker.FakerStatic; export declare class CallbackValueHandler<P extends Callback> implements ValueHandler<P> { protected readonly faker: FakerStatic; protected static readonly PRIMITIVES: string[]; constructor(faker: FakerStatic); shouldHandle(propertyDto: PropertyDto<P>): boolean; produceValue<T>(propertyDto: PropertyDto<P>): any; }