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

Export TS & Flow types for emotion/macro #1583

Merged
merged 1 commit into from Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/warm-kings-sleep.md
@@ -0,0 +1,5 @@
---
'emotion': patch
---

Export TS & Flow types for emotion/macro
3 changes: 3 additions & 0 deletions packages/emotion/macro.d.ts
@@ -0,0 +1,3 @@
declare module 'emotion/macro' {
export * from 'emotion'
}
2 changes: 2 additions & 0 deletions packages/emotion/macro.js.flow
@@ -0,0 +1,2 @@
// @flow
export * from './src/index.js'
6 changes: 4 additions & 2 deletions packages/emotion/package.json
Expand Up @@ -8,8 +8,10 @@
"files": [
"src",
"dist",
"types",
"macro.js",
"types"
"macro.d.ts",
"macro.js.flow"
],
"scripts": {
"test:typescript": "dtslint types"
Expand Down Expand Up @@ -43,4 +45,4 @@
"preconstruct": {
"umdName": "emotion"
}
}
}