Skip to content

Commit

Permalink
fix: typings for vite:preloadError (#17868)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicky1038 authored Aug 12, 2024
1 parent d78d44b commit 6700594
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 6700594

Please sign in to comment.