-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add speedy method to the TS type declaration of the sheet object available on Emotion instances #1848
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
Conversation
🦋 Changeset is good to goLatest commit: 1d3ff39 We got this. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report
|
This method is only available when access
|
@Andarist Not sure I follow - are you saying it works when importing from |
Yes, the sheet object is being mutated (receives a new method) when emotion instance is being created |
Then does this update work for you @Andarist ? |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1d3ff39:
|
…lable on Emotion instance
@osdiab sorry for the lack of response for quite some time. I've adjusted your PR - so you can take a look at what I have meant as this method only being available on Emotion's sheets and how this should be typed. @mitchellhamilton could you review this? I'm mostly interested in the approval of the chosen type name ( |
…lable on Emotion instances (emotion-js#1848) * Add sheet.speedy() type to StyleSheet * Stylesheet.speedy is optional * No semicolon for consistency * Add speedy method to the TS type declaration of the sheet object available on Emotion instance * Add changeset Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
What:
Adds
speedy()
type toStyleSheet
typeWhy:
speedy()
when rendering with Puppeteersheet.speedy()
How: Added a function to the
StyleSheet
definitionsChecklist:
Documentation N/A
Tests N/A
Code complete N/A
Changeset Not sure?
Idk if anything needs to be done for Flow