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

Add type definition for useTheme from emotion-theming #1509

Merged
merged 1 commit into from
Sep 17, 2019

Conversation

XeeD
Copy link
Contributor

@XeeD XeeD commented Sep 17, 2019

What:
This PR is adding TypeScript type definition for useThemehook.

Why:
The type definition was completely missing which prevents us from using useTheme in a TypeScript project.

How:
Added the definition + attempted to write a test for it. Let me know if it looks OK.

Checklist:

  • Documentation
  • Tests
  • Code complete
  • Changeset

@changeset-bot
Copy link

changeset-bot bot commented Sep 17, 2019

🦋 Changeset is good to go

Latest commit: 25ea11d

We got this.

Not sure what this means? Click here to learn what changesets are.

@@ -0,0 +1 @@
Add type for useTheme hook in emotion-theming
Copy link
Member

Choose a reason for hiding this comment

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

could you mention here that this is about TS types?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I've rephrased this to be clearer. Can you take a look?

@Andarist Andarist merged commit ffc7c58 into emotion-js:master Sep 17, 2019
@github-actions github-actions bot mentioned this pull request Sep 17, 2019
louisgv pushed a commit to louisgv/emotion that referenced this pull request Sep 6, 2020
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.

None yet

2 participants