-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TypeScript definition of EmotionCache
has stylis
function but no insert
function
#1990
Comments
Good catch - this was available in some v10 betas ( emotion/packages/cache/src/index.js Line 88 in 2a9a1b8
|
I thought I was going to need to use I'll chuck a PR together for this little change. |
Replaced `stylis` function with `insert` function, following the Flow definition.
…n-existent `stylis` method with `insert` that is available at runtime (#1999) * Update TypeScript definition of EmotionCache (#1990) Replaced `stylis` function with `insert` function, following the Flow definition. * Update .changeset/honest-terms-mate.md Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Got fixed in #1999 |
…n-existent `stylis` method with `insert` that is available at runtime (emotion-js#1999) * Update TypeScript definition of EmotionCache (emotion-js#1990) Replaced `stylis` function with `insert` function, following the Flow definition. * Update .changeset/honest-terms-mate.md Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Current behavior:
The TypeScript typings for
EmotionCache
contain a method (stylis
) that isn't actually present, and are missing an important one (insert
) that is.To reproduce:
Flow typings: https://github.com/emotion-js/emotion/blob/next/packages/utils/src/types.js#L22
TypeScript typings: https://github.com/emotion-js/emotion/blob/next/packages/utils/types/index.d.ts#L18
Expected behavior:
The TypeScript typings should match the Flow ones and reality.
Environment information:
emotion
version:@emotion/utils 1.0.0-next.0
The text was updated successfully, but these errors were encountered: