You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<TsInfo src="./Button.tsx" name="ButtonProps"/> should expand ButtonProps only no heritage types
` should expand inherited props too
<TsInfo src="./Button.tsx" name="ButtonProps" heritage="AsProp"/> should expand inherited props from AsProp and not all (can be comma separated names).
// only local props
<TsInfo src="./Button.tsx" name="ButtonProps"/>
// with all inherited props
<TsInfo src="./Button.tsx" name="ButtonProps:*"/>
// only local props & props from AsProp
<TsInfo src="./Button.tsx" name="ButtonProps:AsProp"/>
cristatus
added a commit
to cristatus/vite-plugin-react-pages
that referenced
this issue
Jun 23, 2021
Consider the following case:
The
TsInfo
should show following output:"primary" | "secondary" | "link"
"sm" | "md" | "lg"
{ w: number, h: number }
any
What I am getting:
Variant | "link"
Suggested improvements:
Examples:
<TsInfo src="./Button.tsx" name="ButtonProps"/>
should expandButtonProps
only no heritage types<TsInfo src="./Button.tsx" name="ButtonProps" heritage="AsProp"/>
should expand inherited props fromAsProp
and not all (can be comma separated names).And the jsx api should be like:
The text was updated successfully, but these errors were encountered: