Skip to content

Commit

Permalink
fix(types): fix bad css() type
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Mar 27, 2021
1 parent 8b7ed1a commit 662ccdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type Options = {}

export type Hypostyle = {
css(
props: ((tokens: Theme['tokens']) => Partial<HypostyleObject>) |
props: ((theme: Theme) => Partial<HypostyleObject>) |
Partial<HypostyleObject>
): string;
injectGlobal(props: Partial<HypostyleObject>): any;
Expand Down
4 changes: 2 additions & 2 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const o = hypostyle({
}
})

o.css(tokens => ({
c: tokens.color.primary,
o.css(theme => ({
c: theme.tokens.color.primary,
mx: [2, 4]
}))

0 comments on commit 662ccdd

Please sign in to comment.