typings.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. declare module 'numeral'
  15. declare module '@antv/data-set'
  16. declare module 'mockjs'
  17. declare module 'react-fittext'
  18. declare module 'bizcharts-plugin-slider'
  19. // google analytics interface
  20. type GAFieldsObject = {
  21. eventCategory: string
  22. eventAction: string
  23. eventLabel?: string
  24. eventValue?: number
  25. nonInteraction?: boolean
  26. }
  27. type Window = {
  28. ga: (command: 'send', hitType: 'event' | 'pageview', fieldsObject: GAFieldsObject | string) => void
  29. reloadAuthorized: () => void
  30. routerBase: string
  31. }
  32. declare let ga: () => void
  33. // preview.pro.ant.design only do not use in your production ;
  34. // preview.pro.ant.design 专用环境变量,请不要在你的项目中使用它。
  35. declare let ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' | undefined
  36. declare const REACT_APP_ENV: 'test' | 'dev' | 'pre' | false
  37. declare type Nullable<T> = T | null
  38. declare type NonNullable<T> = T extends null | undefined ? never : T
  39. declare type Recordable<T = any> = Record<string, T>
  40. declare type ActionPayload = { main: string; target: string }
  41. declare type ResponseStructure<T> = {
  42. code: number
  43. data: T
  44. msg?: string
  45. showType: number
  46. }