Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define precise type for Event.annot #101

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

not-my-profile
Copy link
Contributor

This enables API users to identify the events returned by parseEvents in a type-safe manner.

Note that the last commit which stops the encoding of the list styles into annot does constitute a breaking change.

In the next commit I introduce a precise union type for `Event.annot`
and I want to avoid having to specify `as` type assertions.
This enables API users to identify the events returned
by `parseEvents` in a type-safe manner.
This makes the Event type easier to work with.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant