Skip to content

Commit 3f8b653

Browse files
levrikaskoufis
andauthored
Improve type hint of recipe's runtime fn (#1341)
Co-authored-by: Adam Skoufis <[email protected]>
1 parent 003467f commit 3f8b653

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/weak-cherries-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vanilla-extract/recipes": patch
3+
---
4+
5+
Resolve recipe function input type to simplify hover type

packages/recipes/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type RecipeClassNames<Variants extends VariantGroups> = {
4646
};
4747

4848
export type RuntimeFn<Variants extends VariantGroups> = ((
49-
options?: VariantSelection<Variants>,
49+
options?: Resolve<VariantSelection<Variants>>,
5050
) => string) & {
5151
variants: () => (keyof Variants)[];
5252
classNames: RecipeClassNames<Variants>;

0 commit comments

Comments
 (0)