Skip to content

Commit 1ae9489

Browse files
Andaristemmatown
authored andcommitted
Export TS & Flow types for emotion/macro (#1583)
1 parent 9767309 commit 1ae9489

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.changeset/warm-kings-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'emotion': patch
3+
---
4+
5+
Export TS & Flow types for emotion/macro

packages/emotion/macro.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare module 'emotion/macro' {
2+
export * from 'emotion'
3+
}

packages/emotion/macro.js.flow

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// @flow
2+
export * from './src/index.js'

packages/emotion/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"files": [
99
"src",
1010
"dist",
11+
"types",
1112
"macro.js",
12-
"types"
13+
"macro.d.ts",
14+
"macro.js.flow"
1315
],
1416
"scripts": {
1517
"test:typescript": "dtslint types"
@@ -43,4 +45,4 @@
4345
"preconstruct": {
4446
"umdName": "emotion"
4547
}
46-
}
48+
}

0 commit comments

Comments
 (0)