From 92633c2e1ddbf2f178ccbf7d83f397c96bfb9caf Mon Sep 17 00:00:00 2001 From: Dovydas Navickas Date: Sun, 9 Apr 2017 01:59:40 +0300 Subject: [PATCH] Update index.d.ts --- types/prop-types/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 0fbc6f8c99..8ee11c99b9 100644 --- a/types/prop-types/index.d.ts +++ b/types/prop-types/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 -declare module 'prop-types' { +declare module PropTypes { type Validator = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null; interface Requireable extends Validator { @@ -29,3 +29,7 @@ declare module 'prop-types' { function objectOf(type: Validator): Requireable; function shape(type: ValidationMap): Requireable; } + +declare module 'prop-types' { + export = PropTypes; +}