typings.d.ts 998 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. declare module 'slash2';
  2. declare module '*.css';
  3. declare module '*.less';
  4. declare module '*.scss';
  5. declare module '*.sass';
  6. declare module '*.svg';
  7. declare module '*.png';
  8. declare module '*.jpg';
  9. declare module '*.jpeg';
  10. declare module '*.gif';
  11. declare module '*.bmp';
  12. declare module '*.tiff';
  13. declare module 'omit.js';
  14. // google analytics interface
  15. interface GAFieldsObject {
  16. eventCategory: string;
  17. eventAction: string;
  18. eventLabel?: string;
  19. eventValue?: number;
  20. nonInteraction?: boolean;
  21. }
  22. interface Window {
  23. ga: (
  24. command: 'send',
  25. hitType: 'event' | 'pageview',
  26. fieldsObject: GAFieldsObject | string,
  27. ) => void;
  28. reloadAuthorized: () => void;
  29. }
  30. declare let ga: Function;
  31. // preview.pro.ant.design only do not use in your production ;
  32. // preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
  33. declare let ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' | undefined;
  34. declare const REACT_APP_ENV: 'test' | 'dev' | 'pre' | false;