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

fix: tweak types #806

Merged
merged 2 commits into from Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
13 changes: 13 additions & 0 deletions global.d.ts
@@ -0,0 +1,13 @@
/// <reference types="./css" />
/// <reference types="./index" />
/// <reference types="./macro" />
/// <reference types="./style" />

import React from 'react'

declare module 'react' {
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
jsx?: boolean
global?: boolean
}
}
11 changes: 2 additions & 9 deletions index.d.ts
@@ -1,13 +1,6 @@
import React from 'react'

declare module 'react' {
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
jsx?: boolean
global?: boolean
}
}

declare module 'styled-jsx' {
import React from 'react'
ijjk marked this conversation as resolved.
Show resolved Hide resolved

export type StyledJsxStyleRegistry = {
styles(options?: { nonce?: string }): JSX.Element[]
flush(): void
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -7,6 +7,7 @@
"files": [
"dist",
"lib",
"global.d.ts",
"index.d.ts",
"index.js",
"babel.js",
Expand Down