Skip to content

Commit

Permalink
fix: return type for createTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-nz authored and jonathantneal committed Aug 10, 2021
1 parent 04bfc04 commit 340f21f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core/types/stitches.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ export default interface Stitches<
selector: string
}
& (
Argument0 extends {}
? ThemeTokens<Argument0, Prefix>
: Argument1 extends {}
Argument0 extends string
? ThemeTokens<Argument1, Prefix>
: {}
: ThemeTokens<Argument0, Prefix>
)
}
theme: string & {
Expand Down

0 comments on commit 340f21f

Please sign in to comment.