Skip to content

Commit

Permalink
fix missing file, add new types
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Aug 31, 2021
1 parent 1a4e35e commit 8df01c5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
15 changes: 11 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
// Definitions by: @types/styled-jsx <https://www.npmjs.com/package/@types/styled-jsx>

import 'react'

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

export type StyleRegistry = {
styles(): JSX.Element[]
flush(): void
}
export function useStyleRegistry(): StyleRegistry
export function StyleRegistry({
children
}: {
children: JSX.Element
}): JSX.Element
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"dist",
"lib",
"index.d.ts",
"server.js",
"server.d.ts",
"index.js",
"babel.js",
"babel-test.js",
"style.js",
Expand Down
11 changes: 0 additions & 11 deletions server.d.ts

This file was deleted.

0 comments on commit 8df01c5

Please sign in to comment.