Browse Source

Update

pull/14309/head
ztplz 6 years ago
committed by 偏右
parent
commit
0b8fadd24c
  1. 2
      components/_util/warning.tsx
  2. 2
      components/drawer/index.tsx
  3. 2
      components/select/index.tsx
  4. 1
      tsconfig.json

2
components/_util/warning.tsx

@ -1,4 +1,4 @@
import * as warning from 'warning'; import warning from 'warning';
const warned: Record<string, boolean> = {}; const warned: Record<string, boolean> = {};
export default (valid: boolean, message: string): void => { export default (valid: boolean, message: string): void => {

2
components/drawer/index.tsx

@ -2,7 +2,7 @@ import * as React from 'react';
import * as PropTypes from 'prop-types'; import * as PropTypes from 'prop-types';
import RcDrawer from 'rc-drawer'; import RcDrawer from 'rc-drawer';
import createReactContext, { Context } from 'create-react-context'; import createReactContext, { Context } from 'create-react-context';
import * as warning from 'warning'; import warning from '../_util/warning';
import classNames from 'classnames'; import classNames from 'classnames';
import Icon from '../icon'; import Icon from '../icon';
import { withConfigConsumer, ConfigConsumerProps } from '../config-provider'; import { withConfigConsumer, ConfigConsumerProps } from '../config-provider';

2
components/select/index.tsx

@ -4,7 +4,7 @@ import RcSelect, { Option, OptGroup } from 'rc-select';
import classNames from 'classnames'; import classNames from 'classnames';
import { ConfigConsumer, ConfigConsumerProps, RenderEmptyHandler } from '../config-provider'; import { ConfigConsumer, ConfigConsumerProps, RenderEmptyHandler } from '../config-provider';
import omit from 'omit.js'; import omit from 'omit.js';
import * as warning from 'warning'; import warning from '../_util/warning';
import Icon from '../icon'; import Icon from '../icon';
import { tuple } from '../_util/type'; import { tuple } from '../_util/type';

1
tsconfig.json

@ -2,6 +2,7 @@
"compilerOptions": { "compilerOptions": {
"strictNullChecks": true, "strictNullChecks": true,
"moduleResolution": "node", "moduleResolution": "node",
"esModuleInterop": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"jsx": "preserve", "jsx": "preserve",
"noUnusedParameters": true, "noUnusedParameters": true,

Loading…
Cancel
Save