Skip to content

Commit

Permalink
Add a .d.ts file that can be included in pragma-less projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 27, 2020
1 parent 3e27ca3 commit 472eda6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
9 changes: 9 additions & 0 deletions packages/react/types/css-prop.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {} from 'react'
import { Interpolation } from '@emotion/serialize'
import { Theme } from '.'

declare module 'react' {
interface Attributes {
css?: Interpolation<Theme>
}
}
15 changes: 4 additions & 11 deletions packages/react/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"baseUrl": "../",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": [
"es6",
"dom"
],
"lib": ["es6", "dom"],
"module": "commonjs",
"noEmit": true,
"noImplicitAny": true,
Expand All @@ -15,13 +12,9 @@
"strictNullChecks": true,
"strictFunctionTypes": true,
"target": "es5",
"typeRoots": [
"../"
],
"typeRoots": ["../"],
"types": []
},
"include": [
"./*.ts",
"./*.tsx"
]
"include": ["./*.ts", "./*.tsx"],
"exclude": ["./css-prop.d.ts"]
}

0 comments on commit 472eda6

Please sign in to comment.