Open
Description
It works great so far, but I have a little nitpick: data
in MetaData<T>
is optional.
Even when I explicitly pass a type to on<T>()
, the emitted metadata still has:
data: T | undefined;
This is unexpected in my opinion and forces unnecessary null checks in TypeScript, even when T should always be defined.
Metadata
Metadata
Assignees
Labels
No labels