Skip to content

Commit

Permalink
fix:(type-checking): [email protected] Tprops error (#4390)
Browse files Browse the repository at this point in the history
  • Loading branch information
timduffin authored Oct 19, 2022
1 parent 50a521e commit c3cbcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type ShorthandRenderFunction<C extends React.ElementType, P> = (
props: P,
) => React.ReactNode

export type SemanticShorthandCollection<TProps> = SemanticShorthandItem<TProps>[]
export type SemanticShorthandCollection<TProps extends Record<string, any>> = SemanticShorthandItem<TProps>[]
export type SemanticShorthandContent = React.ReactNode
export type SemanticShorthandItem<TProps extends Record<string, any>> =
| React.ReactNode
Expand Down

0 comments on commit c3cbcae

Please sign in to comment.