Update index.d.ts

This commit is contained in:
Dovydas Navickas
2017-04-08 23:31:59 +03:00
committed by GitHub
parent e80bea1b4c
commit aac771f679

View File

@@ -4,9 +4,9 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
declare type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null;
type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null;
declare interface Requireable<T> extends Validator<T> {
interface Requireable<T> extends Validator<T> {
isRequired: Validator<T>;
}