You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With workers-types, CustomEventdoesn't appear to support this, so detail is always any | undefined. Attempting to pass a type in just errors with Expected 0 type arguments, but got 1. ts(2558).
The text was updated successfully, but these errors were encountered:
In other implementations of
CustomEvent
, it's a generic type that supports passing a type fordetails
property, like so:Reference: https://tsplay.dev/wXgvVW
With
workers-types
,CustomEvent
doesn't appear to support this, sodetail
is alwaysany | undefined
. Attempting to pass a type in just errors withExpected 0 type arguments, but got 1. ts(2558)
.The text was updated successfully, but these errors were encountered: