2017-04-12 16:53:48 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-04-12 16:53:48 +00:00
|
|
|
*
|
2018-07-27 19:25:23 +00:00
|
|
|
* @flow strict
|
2017-04-12 16:53:48 +00:00
|
|
|
* @nolint
|
2018-05-10 22:44:53 +00:00
|
|
|
* @format
|
2017-04-12 16:53:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
// TODO (bvaughn) Remove this file once flowtype/flow-typed/pull/773 is merged
|
|
|
|
|
|
|
|
type $npm$propTypes$ReactPropsCheckType = (
|
|
|
|
props: any,
|
|
|
|
propName: string,
|
|
|
|
componentName: string,
|
2018-05-10 22:44:53 +00:00
|
|
|
href?: string,
|
2017-04-12 16:53:48 +00:00
|
|
|
) => ?Error;
|
|
|
|
|
|
|
|
declare module 'prop-types' {
|
|
|
|
declare var array: React$PropType$Primitive<Array<any>>;
|
|
|
|
declare var bool: React$PropType$Primitive<boolean>;
|
|
|
|
declare var func: React$PropType$Primitive<Function>;
|
|
|
|
declare var number: React$PropType$Primitive<number>;
|
|
|
|
declare var object: React$PropType$Primitive<Object>;
|
|
|
|
declare var string: React$PropType$Primitive<string>;
|
|
|
|
declare var any: React$PropType$Primitive<any>;
|
|
|
|
declare var arrayOf: React$PropType$ArrayOf;
|
|
|
|
declare var element: React$PropType$Primitive<any>; /* TODO */
|
|
|
|
declare var instanceOf: React$PropType$InstanceOf;
|
|
|
|
declare var node: React$PropType$Primitive<any>; /* TODO */
|
|
|
|
declare var objectOf: React$PropType$ObjectOf;
|
|
|
|
declare var oneOf: React$PropType$OneOf;
|
|
|
|
declare var oneOfType: React$PropType$OneOfType;
|
|
|
|
declare var shape: React$PropType$Shape;
|
|
|
|
|
|
|
|
declare function checkPropTypes<V>(
|
|
|
|
propTypes: $Subtype<{[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType}>,
|
|
|
|
values: V,
|
|
|
|
location: string,
|
|
|
|
componentName: string,
|
2018-05-10 22:44:53 +00:00
|
|
|
getStack: ?() => ?string,
|
|
|
|
): void;
|
2017-04-12 16:53:48 +00:00
|
|
|
}
|