Skip to content

Commit 7ec22ae

Browse files
ingvere1emeb0t
authored andcommitted
fixed type of TooltipProps.content
1 parent 5bb6434 commit 7ec22ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ declare namespace ElementReact {
530530
// Tooltip
531531
interface TooltipProps extends ElementReactLibs.ComponentProps<{}> {
532532
effect?: 'dark' | 'light'
533-
content?: 'string' | React.ReactElement<any>
533+
content?: string | React.ReactElement<any>
534534
placement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end'
535535
disabled?: boolean
536536
transition?: string

0 commit comments

Comments
 (0)