From e80bea1b4cbeca6364ece294a8d6dfb30e0c49ce Mon Sep 17 00:00:00 2001 From: Dovydas Navickas Date: Sat, 8 Apr 2017 23:27:05 +0300 Subject: [PATCH] Update index.d.ts --- types/prop-types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 4ff5f9faaa..27d44a159e 100644 --- a/types/prop-types/index.d.ts +++ b/types/prop-types/index.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 -type Validator = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null; +declare type Validator = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null; -interface Requireable extends Validator { +declare interface Requireable extends Validator { isRequired: Validator; }