diff --git a/global.d.ts b/global.d.ts
new file mode 100644
index 00000000..b58a66d4
--- /dev/null
+++ b/global.d.ts
@@ -0,0 +1,13 @@
+///
+///
+///
+///
+
+import React from 'react'
+
+declare module 'react' {
+ interface StyleHTMLAttributes extends HTMLAttributes {
+ jsx?: boolean
+ global?: boolean
+ }
+}
diff --git a/index.d.ts b/index.d.ts
index 3024c42c..3d015b8e 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,12 +1,3 @@
-import React from 'react'
-
-declare module 'react' {
- interface StyleHTMLAttributes extends HTMLAttributes {
- jsx?: boolean
- global?: boolean
- }
-}
-
declare module 'styled-jsx' {
export type StyledJsxStyleRegistry = {
styles(options?: { nonce?: string }): JSX.Element[]
@@ -19,7 +10,7 @@ declare module 'styled-jsx' {
children,
registry
}: {
- children: JSX.Element | React.ReactNode
+ children: JSX.Element | import('react').ReactNode
registry?: StyledJsxStyleRegistry
}): JSX.Element
export function createStyleRegistry(): StyledJsxStyleRegistry
diff --git a/package.json b/package.json
index 6c2f1424..9eac8c7b 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
"files": [
"dist",
"lib",
+ "global.d.ts",
"index.d.ts",
"index.js",
"babel.js",