Update index.d.ts

This commit is contained in:
Dovydas Navickas
2017-04-09 01:59:40 +03:00
committed by GitHub
parent 6745cbb3bb
commit 92633c2e1d

View File

@@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
declare module 'prop-types' {
declare module PropTypes {
type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null;
interface Requireable<T> extends Validator<T> {
@@ -29,3 +29,7 @@ declare module 'prop-types' {
function objectOf(type: Validator<any>): Requireable<any>;
function shape(type: ValidationMap<any>): Requireable<any>;
}
declare module 'prop-types' {
export = PropTypes;
}