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; }