ant-design/typings/custom-typings.d.ts

90 lines
1.7 KiB
TypeScript
Raw Normal View History

// https://github.com/facebook/create-react-app/blob/f09d3d3a52c1b938cecc977c2bbc0942ea0a7e70/packages/react-scripts/lib/react-app.d.ts#L42-L49
declare module '*.svg' {
import * as React from 'react';
export const ReactComponent: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
const src: string;
export default src;
}
2018-12-26 16:01:00 +08:00
2016-10-20 20:12:46 +08:00
declare module 'rc-calendar*';
declare module 'rc-time-picker*';
declare module 'rc-pagination/*';
2016-10-20 20:12:46 +08:00
2018-12-07 20:02:01 +08:00
declare module 'omit.js';
2016-10-20 20:12:46 +08:00
declare module 'rc-animate';
declare module 'rc-util*';
declare module 'css-animation*';
2016-10-20 20:12:46 +08:00
declare module 'rc-select';
declare module 'rc-cascader';
declare module 'rc-checkbox';
declare module 'rc-dropdown';
declare module 'rc-editor-mention';
declare module 'rc-tabs*';
declare module 'rc-tree';
declare module 'rc-tree/lib/util';
2016-10-20 20:12:46 +08:00
declare module 'rc-tooltip*';
declare module 'rc-calendar';
declare module 'rc-input-number';
declare module 'rc-collapse';
2016-10-20 20:12:46 +08:00
declare module 'rc-notification';
declare module 'rc-dialog';
declare module 'rc-rate';
declare module 'rc-queue-anim';
declare module 'rc-slider';
declare module 'rc-slider/lib/Slider';
declare module 'rc-slider/lib/Range';
declare module 'rc-slider/lib/Handle';
2016-10-20 20:12:46 +08:00
declare module 'rc-steps';
declare module 'rc-switch';
declare module 'rc-table';
declare module 'rc-tree-select';
declare module 'rc-upload';
declare module 'rc-form*';
declare module 'react-lazy-load';
2017-11-21 13:48:37 +08:00
declare module 'dom-closest';
2018-12-07 20:02:01 +08:00
declare module '*.json' {
const value: any;
2017-02-13 14:57:04 +08:00
export const version: string;
export default value;
}
2017-04-28 01:22:30 +08:00
2018-12-07 20:02:01 +08:00
declare module 'react-copy-to-clipboard';
// https://github.com/ant-design/ant-design/pull/19254
declare module 'react-lifecycles-compat';