We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50a521e commit c3cbcaeCopy full SHA for c3cbcae
1 file changed
src/generic.d.ts
@@ -70,7 +70,7 @@ export type ShorthandRenderFunction<C extends React.ElementType, P> = (
70
props: P,
71
) => React.ReactNode
72
73
-export type SemanticShorthandCollection<TProps> = SemanticShorthandItem<TProps>[]
+export type SemanticShorthandCollection<TProps extends Record<string, any>> = SemanticShorthandItem<TProps>[]
74
export type SemanticShorthandContent = React.ReactNode
75
export type SemanticShorthandItem<TProps extends Record<string, any>> =
76
| React.ReactNode
0 commit comments