global.d.ts 491 B

12345678910111213141516171819202122232425262728
  1. interface Window {
  2. existLoading: boolean
  3. lazy: number
  4. unique: number
  5. tokenRefreshing: boolean
  6. requests: Function[]
  7. eventSource: EventSource
  8. loadLangHandle: Record<string, any>
  9. }
  10. interface anyObj {
  11. [key: string]: any
  12. }
  13. interface TableDefaultData<T = any> {
  14. list: T
  15. remark: string
  16. total: number
  17. }
  18. interface ApiResponse<T = any> {
  19. code: number
  20. data: T
  21. msg: string
  22. time: number
  23. }
  24. type ApiPromise<T = any> = Promise<ApiResponse<T>>