File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 1+ /// <reference types="./css" />
2+ /// <reference types="./index" />
3+ /// <reference types="./macro" />
4+ /// <reference types="./style" />
5+
6+ import React from 'react'
7+
8+ declare module 'react' {
9+ interface StyleHTMLAttributes < T > extends HTMLAttributes < T > {
10+ jsx ?: boolean
11+ global ?: boolean
12+ }
13+ }
Original file line number Diff line number Diff line change 1- import React from 'react'
2-
3- declare module 'react' {
4- interface StyleHTMLAttributes < T > extends HTMLAttributes < T > {
5- jsx ?: boolean
6- global ?: boolean
7- }
8- }
9-
101declare module 'styled-jsx' {
112 export type StyledJsxStyleRegistry = {
123 styles ( options ?: { nonce ?: string } ) : JSX . Element [ ]
@@ -19,7 +10,7 @@ declare module 'styled-jsx' {
1910 children,
2011 registry
2112 } : {
22- children : JSX . Element | React . ReactNode
13+ children : JSX . Element | import ( 'react' ) . ReactNode
2314 registry ?: StyledJsxStyleRegistry
2415 } ) : JSX . Element
2516 export function createStyleRegistry ( ) : StyledJsxStyleRegistry
Original file line number Diff line number Diff line change 77 "files" : [
88 " dist" ,
99 " lib" ,
10+ " global.d.ts" ,
1011 " index.d.ts" ,
1112 " index.js" ,
1213 " babel.js" ,
You can’t perform that action at this time.
0 commit comments