mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
18 lines
404 B
TypeScript
18 lines
404 B
TypeScript
import 'vite/types/customEvent'
|
|
|
|
declare module 'vite/types/customEvent' {
|
|
interface CustomEventMap {
|
|
'custom:foo': { msg: string }
|
|
'custom:remote-add': { a: number; b: number }
|
|
'custom:remote-add-result': { result: string }
|
|
}
|
|
}
|
|
|
|
declare global {
|
|
let log: (...msg: unknown[]) => void
|
|
let logger: {
|
|
error: (msg: string | Error) => void
|
|
debug: (...msg: unknown[]) => void
|
|
}
|
|
}
|