Skip to content

Commit 3056302

Browse files
chrisandskof
authored andcommitted
Add TS types for css-jss packages (#1247)
* Add TS types for css-jss packages * Change type to import from jss * Add createCss export types * Update imports after rebase
1 parent a35ce5a commit 3056302

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

packages/css-jss/src/index.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import {Jss, JssStyle} from 'jss'
2+
3+
export {JssStyle}
4+
5+
export type StyleArg = JssStyle | Array<JssStyle>
6+
7+
export type Css = (...args: StyleArg[]) => string
8+
9+
type CreateCss = (jss?: Jss) => Css
10+
11+
declare const create: CreateCss
12+
export {create}
13+
14+
declare const createCss: ReturnType<CreateCss>
15+
export default createCss

0 commit comments

Comments
 (0)