typings.d.ts 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
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
12 13 14
declare module 'rc-animate';
declare module 'omit.js';
declare module 'react-copy-to-clipboard';
15
declare var APP_TYPE: string;
何乐's avatar
何乐 committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
declare module 'ant-design-pro' {
  import React from 'react';
  import { INoticeIconProps } from 'ant-design-pro/lib/NoticeIcon';
  import { INoticeIconTabProps } from 'ant-design-pro/lib/NoticeIcon/NoticeIconTab';

  type PartialNoticeIconProps = {
    [K in Exclude<keyof INoticeIconProps, 'locale'>]?: INoticeIconProps[K]
  };
  interface MixinNoticeIconProps extends PartialNoticeIconProps {
    locale?: {
      emptyText: string;
      clear: string;
      viewMore: string;
      [key: string]: string;
    };
    onViewMore?: (tabProps: INoticeIconProps) => void;
  }
  interface MixinNoticeIconTabProps extends Partial<INoticeIconTabProps> {
    showViewMore?: boolean;
  }
  class NoticeIconTab extends React.Component<MixinNoticeIconTabProps, any> {}
  export class NoticeIcon extends React.Component<MixinNoticeIconProps, any> {
    public static Tab: typeof NoticeIconTab;
  }
  export * from 'ant-design-pro/lib';
}