2021-09-06 22:02:27 +00:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
2018-09-19 15:35:38 +00:00
|
|
|
// Global compile-time constants
|
|
|
|
declare var __DEV__: boolean
|
2019-11-04 16:24:22 +00:00
|
|
|
declare var __TEST__: boolean
|
2019-09-17 15:57:25 +00:00
|
|
|
declare var __BROWSER__: boolean
|
2020-02-13 23:50:36 +00:00
|
|
|
declare var __GLOBAL__: boolean
|
2020-04-20 19:23:26 +00:00
|
|
|
declare var __ESM_BUNDLER__: boolean
|
|
|
|
declare var __ESM_BROWSER__: boolean
|
2020-01-29 14:49:17 +00:00
|
|
|
declare var __NODE_JS__: boolean
|
2021-09-23 19:02:19 +00:00
|
|
|
declare var __SSR__: boolean
|
2019-10-05 02:40:54 +00:00
|
|
|
declare var __COMMIT__: string
|
2019-10-14 19:31:43 +00:00
|
|
|
declare var __VERSION__: string
|
2021-04-03 15:55:44 +00:00
|
|
|
declare var __COMPAT__: boolean
|
2019-09-04 00:51:42 +00:00
|
|
|
|
|
|
|
// Feature flags
|
2020-07-21 01:51:30 +00:00
|
|
|
declare var __FEATURE_OPTIONS_API__: boolean
|
|
|
|
declare var __FEATURE_PROD_DEVTOOLS__: boolean
|
2019-09-09 20:28:32 +00:00
|
|
|
declare var __FEATURE_SUSPENSE__: boolean
|
2020-07-28 02:58:37 +00:00
|
|
|
|
|
|
|
// for tests
|
|
|
|
declare namespace jest {
|
|
|
|
interface Matchers<R, T> {
|
|
|
|
toHaveBeenWarned(): R
|
|
|
|
toHaveBeenWarnedLast(): R
|
|
|
|
toHaveBeenWarnedTimes(n: number): R
|
|
|
|
}
|
|
|
|
}
|
2021-03-28 05:35:45 +00:00
|
|
|
|
2021-07-19 22:24:18 +00:00
|
|
|
declare module '*.vue' {}
|
2021-03-28 05:35:45 +00:00
|
|
|
|
2021-03-29 03:36:36 +00:00
|
|
|
declare module 'file-saver' {
|
|
|
|
export function saveAs(blob: any, name: any): void
|
2021-03-28 05:35:45 +00:00
|
|
|
}
|
2021-07-29 17:12:50 +00:00
|
|
|
|
2021-09-06 22:02:27 +00:00
|
|
|
declare module '@vue/repl' {
|
|
|
|
import { ComponentOptions } from '@vue/runtime-core'
|
|
|
|
const Repl: ComponentOptions
|
|
|
|
const ReplStore: any
|
|
|
|
export { Repl, ReplStore }
|
|
|
|
}
|
2021-10-08 16:31:34 +00:00
|
|
|
|
|
|
|
declare interface String {
|
|
|
|
/**
|
|
|
|
* @deprecated Please use String.prototype.slice instead of String.prototype.substring in the repository.
|
|
|
|
*/
|
2021-12-12 02:12:09 +00:00
|
|
|
substring(start: number, end?: number): string
|
2021-10-08 16:31:34 +00:00
|
|
|
}
|