global.d.ts 576 B

1234567891011121314151617
  1. declare const __DEV__: boolean
  2. declare const __TEST__: boolean
  3. declare const __GLOBAL__: boolean
  4. interface Window {
  5. __VUE_DEVTOOLS_GLOBAL_HOOK__: DevtoolsHook
  6. }
  7. // from https://github.com/vuejs/vue-devtools/blob/bc719c95a744614f5c3693460b64dc21dfa339a8/packages/app-backend-api/src/global-hook.ts#L3
  8. interface DevtoolsHook {
  9. emit: (event: string, ...payload: any[]) => void
  10. on: (event: string, handler: Function) => void
  11. once: (event: string, handler: Function) => void
  12. off: (event?: string, handler?: Function) => void
  13. Vue?: any
  14. // apps: AppRecordOptions[]
  15. }