Skip to content

Commit

Permalink
replace undefined with null
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanhofer committed Feb 5, 2022
1 parent 22aa51d commit 5491871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/internal/lifecycle.ts
Expand Up @@ -34,9 +34,9 @@ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (
type ExtractObjectValues<Object extends Record<any, any>> = Object[keyof Object]

type ConstructDispatchFunction<EventMap extends Record<string, any>, EventKey extends keyof EventMap> =
EventMap[EventKey] extends never
EventMap[EventKey] extends never | null
? (type: EventKey) => void
: undefined extends EventMap[EventKey]
: null extends EventMap[EventKey]
? (type: EventKey, detail?: EventMap[EventKey]) => void
: (type: EventKey, detail: EventMap[EventKey]) => void

Expand Down

0 comments on commit 5491871

Please sign in to comment.