UNPKG

233 BTypeScriptView Raw
1export type Validator<K> = (props: {
2 [key: string]: any;
3}, propName: K, componentName: string, location: string, propFullName: string) => Error | undefined;
4export type ValidationMap<T> = {
5 [K in keyof T]?: Validator<K>;
6};