diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 27d44a159e..4ff5f9faaa 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 -declare type Validator = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null; +type Validator = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null; -declare interface Requireable extends Validator { +interface Requireable extends Validator { isRequired: Validator; }