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

Use literal types for constants #478

Merged

Conversation

OndrejSpanel
Copy link
Contributor

Why

To make constants.d.ts consistent. All other constant values use literal types, only SRGBAFormat and DisplayP3ColorSpace use constant values, most likely by mistake.

What

I have changed the declarations to use literal types.

Checklist

  • Checked the target branch (current goes master, next goes dev)
  • Added myself to contributors table
  • Ready to be merged

Note

I have run yarn contributors:add as required. It seems to have updated readme file fine, but .allcontributorsrc seems broken after running the change.

I have no idea what is going on - I am not doing much JS or TS development, I have little experience with npm or yarn.

Someone please advise what to do.

Copy link
Contributor

@Methuselah96 Methuselah96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Methuselah96 Methuselah96 merged commit c1ebc57 into three-types:master Jun 29, 2023
1 check passed
@OndrejSpanel OndrejSpanel deleted the literal_types_for_constants branch June 29, 2023 12:33
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.

2 participants