Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: custom event payload type (#7498)
  • Loading branch information
patak-dev committed Mar 28, 2022
1 parent 01bc415 commit 28b0660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/types/customEvent.d.ts
Expand Up @@ -13,4 +13,4 @@ export interface CustomEventMap {
}

export type InferCustomEventPayload<T extends string> =
T extends keyof CustomEventMap ? CustomEventMap[T] : unknown
T extends keyof CustomEventMap ? CustomEventMap[T] : any

0 comments on commit 28b0660

Please sign in to comment.