Mark event type as unknown
This commit is contained in:
parent
eb062c6b10
commit
14b5fb6460
1 changed files with 1 additions and 1 deletions
|
@ -53,4 +53,4 @@ export type PayloadOfEvent<
|
|||
TEventType extends EventType,
|
||||
TEvent extends Events = Events
|
||||
// @ts-ignore TODO - why this is not working with this tsconfig? Fixme
|
||||
> = TEvent extends Event<TEventType, any> ? TEvent["payload"] : never;
|
||||
> = TEvent extends Event<TEventType, unknown> ? TEvent["payload"] : never;
|
||||
|
|
Loading…
Reference in a new issue