Skip to content

Commit

Permalink
fix: export Hypostyle type
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Dec 23, 2021
1 parent e627ee2 commit 3f0e32a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ export type Theme = {
properties?: CSSPropertyMapping
} & UserTheme

export type Hypostyle = ReturnType<typeof hypostyle>

function obj(o: HypostyleObjectOrFunction, theme: Theme): HypostyleObject {
return typeof o === 'function' ? o(theme) : o
}
Expand Down

0 comments on commit 3f0e32a

Please sign in to comment.