-
In the TypeScript Guide you show how to use the helper For some reason this helper has a much looser type locally for me than the example docs and the playground: Playground (link): I'm using panda v0.6.0 and typescript v5.1.3 and I couldn't find any interesting differences in panda or typescript's configs so I'm not sure what is causing the difference. I think it boils down to the fact that Any idea what might be different between the documentation and the playground and my local environment? The workaround is simple: I have to wrap my type in type ButtonVariants = Required<NonNullable<RecipeVariantProps<typeof buttonStyle>>>;
...
size: ButtonVariants["size"]; |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
FWIW, the behavior I'm seeing locally is actually what I'd expect, because of these types which clearly make the props argument and all its keys optional. The real mystery is why the playground works as desired? |
Beta Was this translation helpful? Give feedback.
-
@altano check this type if they're the same The playground uses dev version of panda, so it's possible the types are changed but unreleased |
Beta Was this translation helpful? Give feedback.
-
This issue also doesn't allow the storybook stories to render its controls |
Beta Was this translation helpful? Give feedback.
@altano check this type if they're the same
The playground uses dev version of panda, so it's possible the types are changed but unreleased