mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Update index.d.ts
This commit is contained in:
6
types/prop-types/index.d.ts
vendored
6
types/prop-types/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user