diff --git a/.changeset/weak-cherries-beg.md b/.changeset/weak-cherries-beg.md new file mode 100644 index 000000000..d78a846f8 --- /dev/null +++ b/.changeset/weak-cherries-beg.md @@ -0,0 +1,5 @@ +--- +"@vanilla-extract/recipes": patch +--- + +Resolve recipe function input type to simplify hover type diff --git a/packages/recipes/src/types.ts b/packages/recipes/src/types.ts index 6206778c8..c244356d0 100644 --- a/packages/recipes/src/types.ts +++ b/packages/recipes/src/types.ts @@ -46,7 +46,7 @@ export type RecipeClassNames = { }; export type RuntimeFn = (( - options?: VariantSelection, + options?: Resolve>, ) => string) & { variants: () => (keyof Variants)[]; classNames: RecipeClassNames;