UNPKG

@websolute/faker.ts

Version:

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

14 lines (13 loc) 766 B
import { PrimitiveHandlerAbstract } from './primitive-handler-abstract'; import { ClassProcessor } from '../class-processor'; import { ValueHandler } from '../types/value-handler.interface'; import { PropertyDto } from '../types/property-dto.interface'; import { Class } from '../types/fixture-options.type'; import FakerStatic = Faker.FakerStatic; export declare class SingleClassValueHandler<P extends Class> extends PrimitiveHandlerAbstract<P> implements ValueHandler<P> { protected readonly faker: FakerStatic; protected readonly classProcessor: ClassProcessor<any>; constructor(faker: FakerStatic, classProcessor: ClassProcessor<any>); shouldHandle(propertyDto: PropertyDto<P>): boolean; produceValue<T>(propertyDto: PropertyDto<P>): any; }