Add @types/prop-types

This commit is contained in:
Wei Zhu 2018-08-07 21:07:52 +08:00
parent d2100bc3e3
commit 064bfaf554
39 changed files with 38 additions and 39 deletions

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import classNames from 'classnames';
import shallowequal from 'shallowequal';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import Affix from '../affix';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
export interface AnchorLinkProps {

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import Animate from 'rc-animate';
import ScrollNumber from './ScrollNumber';
import classNames from 'classnames';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import { cloneElement } from 'react';
import warning from '../_util/warning';
import BreadcrumbItem from './BreadcrumbItem';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
export interface BreadcrumbItemProps {
prefixCls?: string;

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import { findDOMNode } from 'react-dom';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from '../icon';
import Group from './button-group';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import * as moment from 'moment';
import FullCalendar from 'rc-calendar/lib/FullCalendar';
import LocaleReceiver from '../locale-provider/LocaleReceiver';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import RcCheckbox from 'rc-checkbox';
import shallowEqual from 'shallowequal';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import shallowEqual from 'shallowequal';
import Checkbox from './Checkbox';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import RcDrawer from 'rc-drawer';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import createReactContext, { Context } from 'create-react-context';
import warning from 'warning';
import classNames from 'classnames';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import createDOMForm from 'rc-form/lib/createDOMForm';
import createFormField from 'rc-form/lib/createFormField';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import intersperse from 'intersperse';
import Animate from 'rc-animate';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
const stringOrNumber = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);

View File

@ -19,7 +19,7 @@ if (typeof window !== 'undefined') {
import * as React from 'react';
import { Children, cloneElement } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
export type Breakpoint = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
export type BreakpointMap = Partial<Record<Breakpoint, string>>;

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import omit from 'omit.js';
import Group from './Group';

View File

@ -17,7 +17,7 @@ if (typeof window !== 'undefined') {
import * as React from 'react';
import classNames from 'classnames';
import omit from 'omit.js';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import Icon from '../icon';
import isNumeric from '../_util/isNumeric';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import { SiderProps } from './Sider';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import { Col } from '../grid';
import { ListGridType, ColumnType } from './index';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import { SpinProps } from '../spin';
import LocaleReceiver from '../locale-provider/LocaleReceiver';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
export interface LocaleReceiverProps {
componentName: string;

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import * as moment from 'moment';
import interopDefault from '../_util/interopDefault';
import { ModalLocale, changeConfirmLocale } from '../modal/locale';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import { Item } from 'rc-menu';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import Tooltip from '../tooltip';
class MenuItem extends React.Component<any, any> {

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import { SubMenu as RcSubMenu } from 'rc-menu';
import classNames from 'classnames';

View File

@ -1,7 +1,7 @@
import * as React from 'react';
import { findDOMNode } from 'react-dom';
import RcMenu, { Divider, ItemGroup } from 'rc-menu';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import animation from '../_util/openAnimation';
import warning from '../_util/warning';

View File

@ -1,6 +1,6 @@
import * as React from 'react';
import Dialog from 'rc-dialog';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import addEventListener from 'rc-util/lib/Dom/addEventListener';
import Button from '../button';

View File

@ -1,4 +1,4 @@
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import * as React from 'react';
import Icon from '../icon';
import { Circle } from 'rc-progress';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import shallowEqual from 'shallowequal';
import Radio from './radio';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import RcCheckbox from 'rc-checkbox';
import classNames from 'classnames';
import shallowEqual from 'shallowequal';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import { AbstractCheckboxProps } from '../checkbox/Checkbox';
import Radio from './radio';
import { RadioChangeEvent } from './interface';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import RcRate from 'rc-rate';
import Icon from '../icon';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import RcSelect, { Option, OptGroup } from 'rc-select';
import classNames from 'classnames';
import LocaleReceiver from '../locale-provider/LocaleReceiver';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Animate from 'rc-animate';
import omit from 'omit.js';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import RcSteps from 'rc-steps';
export interface StepsProps {

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import RcSwitch from 'rc-switch';
import classNames from 'classnames';
import omit from 'omit.js';

View File

@ -1,7 +1,7 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import RcTable from 'rc-table';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import Pagination from '../pagination';
import Icon from '../icon';

View File

@ -1,5 +1,5 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import * as PropTypes from 'prop-types';
import classNames from 'classnames';
import List, { TransferListProps } from './list';
import Operation from './operation';

View File

@ -91,6 +91,7 @@
"devDependencies": {
"@babel/types": "7.0.0-beta.44",
"@types/classnames": "^2.2.6",
"@types/prop-types": "^15.5.4",
"@types/react": "^16.0.0",
"@types/react-dom": "^16.0.0",
"@yesmeck/offline-plugin": "^5.0.5",

View File

@ -95,8 +95,6 @@ declare module "*.json" {
export default value;
}
declare module "prop-types";
declare module "lodash/debounce";
declare module "lodash/uniqBy";