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
I am trying to correctly type events to use them in both channel.sendEvent({ type: 'HERE' }) and in channel.on('HERE')
I am following the docs written about typescript, extending the ExtendableGenerics with UR (Record<string, unkown>)
But I keep getting channel.sendEvent({ type: 'HERE' }) to type being not defined.
I see that EventType has no way of extend it or make it generic, and is typed by the keys of EVENT_MAP.
What is the proper way to update EventType to my needs? for Custom Events`
The text was updated successfully, but these errors were encountered:
I am trying to correctly type events to use them in both
channel.sendEvent({ type: 'HERE' })
and inchannel.on('HERE')
I am following the docs written about typescript, extending the
ExtendableGenerics
withUR
(Record<string, unkown>
)But I keep getting
channel.sendEvent({ type: 'HERE' })
totype
being not defined.I see that
EventType
has no way of extend it or make it generic, and is typed by the keys ofEVENT_MAP
.What is the proper way to update
EventType
to my needs? for Custom Events`The text was updated successfully, but these errors were encountered: