typings.d.ts 734 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * @Author: your name
  3. * @Date: 2021-11-19 16:31:19
  4. * @LastEditTime: 2021-12-21 17:50:45
  5. * @LastEditors: Please set LastEditors
  6. * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  7. * @FilePath: /KC-MiddlePlatform/src/typings.d.ts
  8. */
  9. type SystemListItem = {
  10. //平台列表项
  11. icon: string;
  12. id: string;
  13. name: string;
  14. url: string;
  15. };
  16. declare interface PostMessageData {
  17. type:'LOGOUT'|'REFRESH'|'DATA'|'LOGIN',
  18. data?:any
  19. }
  20. declare interface Window {
  21. stateFromTop: any,
  22. postMessageToChild:(data:PostMessageData)=>Promise<any>,
  23. removeListenner:(name:string)=>Promise<any>,
  24. }
  25. declare interface Iframe {
  26. contentWindow:any
  27. }