interface Validator<T> { [nominalTypeHack]?: { type: T; }; (props: { [
key:
string]
: any; },
propName: string,
componentName: string,
location: string,
propFullName: string): null | Error; } - Validator(props, propName, componentName, location, propFullName): null | Error
Parameters
- props: {
[key: string]: any;
} - propName: string
- componentName: string
- location: string
- propFullName: string
Returns null | Error
Properties
Optional
[nominalTypeHack]
[nominalTypeHack]?: { type: T; }