File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/fuselage/src/components Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- import type { ElementType , HTMLAttributes } from 'react' ;
1+ import type { ElementType , HTMLAttributes , ReactNode } from 'react' ;
22
33import { prependClassName } from '../../helpers/prependClassName' ;
44
@@ -8,8 +8,8 @@ export type BadgeProps = {
88 small ?: boolean ;
99 disabled ?: boolean ;
1010 className ?: string ;
11- children ?: any ;
12- title ?: any ;
11+ children ?: ReactNode ;
12+ title ?: string ;
1313} & HTMLAttributes < HTMLSpanElement > ;
1414
1515/**
Original file line number Diff line number Diff line change 1- import type { ElementType , HTMLAttributes } from 'react' ;
1+ import type { ElementType , HTMLAttributes , ReactNode } from 'react' ;
22
33import { prependClassName } from '../../helpers/prependClassName' ;
44
@@ -7,7 +7,7 @@ export type MessageHighlightProps = {
77 clickable ?: boolean ;
88 variant ?: 'critical' | 'relevant' | 'other' | 'link' ;
99 className ?: string ;
10- children : any ;
10+ children : ReactNode ;
1111 title ?: string ;
1212} & HTMLAttributes < HTMLElement > ;
1313
You can’t perform that action at this time.
0 commit comments