@websolute/faker.ts
Version:
Easy to Use, Powered by Decorators, Faker.js TypeScript Wrapper
8 lines (7 loc) • 403 B
TypeScript
import { PropertyDto } from './property-dto.interface';
import { IClassProcessor } from '../types/iclass-processor.interface';
import { FixtureOptions } from '../types/fixture-options.type';
export interface ValueHandler<P extends FixtureOptions> {
shouldHandle(propertyDto: PropertyDto<P>): boolean;
produceValue<T>(propertyDto: PropertyDto<P>, classProcessor?: IClassProcessor<T>): T | T[];
}