Skip to content

MetaData.data is optional #63

Open
@Noah-Martinez

Description

@Noah-Martinez

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions