Skip to content

Commit c3cbcae

Browse files
authored
fix:(type-checking): [email protected] Tprops error (#4390)
1 parent 50a521e commit c3cbcae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export type ShorthandRenderFunction<C extends React.ElementType, P> = (
7070
props: P,
7171
) => React.ReactNode
7272

73-
export type SemanticShorthandCollection<TProps> = SemanticShorthandItem<TProps>[]
73+
export type SemanticShorthandCollection<TProps extends Record<string, any>> = SemanticShorthandItem<TProps>[]
7474
export type SemanticShorthandContent = React.ReactNode
7575
export type SemanticShorthandItem<TProps extends Record<string, any>> =
7676
| React.ReactNode

0 commit comments

Comments
 (0)