typings.d.ts 933 Bytes
Newer Older
ycjcl868's avatar
ycjcl868 committed
1 2
import zh_CN from './locales/zh-CN';

3 4 5 6 7 8 9 10 11 12 13
declare module '*.css';
declare module '*.less';
declare module '*.scss';
declare module '*.sass';
declare module '*.svg';
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.gif';
declare module '*.bmp';
declare module '*.tiff';
何乐's avatar
何乐 committed
14 15 16
declare module 'rc-animate';
declare module 'omit.js';
declare module 'react-copy-to-clipboard';
17 18 19
declare module 'react-fittext';
declare module '@antv/data-set';
declare module 'nzh/cn';
20
declare var APP_TYPE: string;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
21

22 23 24 25 26 27 28
declare module 'memoize-one' {
  function memoizeOne<T extends (...args: any[]) => any>(
    resultFn: T,
    isEqual?: (a: any, b: any, index: number) => boolean,
  ): T;
  export default memoizeOne;
}
ycjcl868's avatar
ycjcl868 committed
29 30 31 32 33 34 35 36

declare module 'umi-plugin-react/locale' {
  export default interface MessageDescriptor {
    id: keyof (typeof zh_CN); // default using zh_CN
    description?: string;
    defaultMessage?: string;
  }
}