UNPKG

@idscan/idvc2

Version:

component for the capturing documents

13 lines (12 loc) 521 B
import { DocumentTypeName } from '../environment/documentTypes'; import { DefaultConfigName, StepConfig } from '../defaultConfig'; export type IDocumentTypeConfig = { type: DocumentTypeName; steps: StepConfig[]; }[]; type SimpleValidate<T> = (val: T, fallback: T, configName: DefaultConfigName) => any; type OneOfArray<T> = (valueToSet: T, defaultValue: T, configName: DefaultConfigName, availableValues: T[]) => any; export interface IValidator<T> { validate: SimpleValidate<T> | OneOfArray<T>; } export {};