Skip to content

Commit

Permalink
typings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicky1038 committed Aug 11, 2024
1 parent 4e5ce3c commit 688d353
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions packages/vite/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,6 @@ declare interface VitePreloadErrorEvent extends Event {
payload: Error
}

declare interface Window {
addEventListener(
type: 'vite:preloadError',
listener: (this: Window, ev: VitePreloadErrorEvent) => unknown,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener(
type: 'vite:preloadError',
listener: (this: Window, ev: VitePreloadErrorEvent) => unknown,
options?: boolean | EventListenerOptions,
): void
declare interface WindowEventMap {
'vite:preloadError': VitePreloadErrorEvent
}

0 comments on commit 688d353

Please sign in to comment.