Skip to content

Commit

Permalink
Export TS & Flow types for emotion/macro (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist authored and emmatown committed Oct 29, 2019
1 parent 9767309 commit 1ae9489
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
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"
}
}
}

0 comments on commit 1ae9489

Please sign in to comment.