Skip to content

Commit f1858a3

Browse files
stby4wuweiweiwu
authored andcommitted
fix: allow React.ReactNode as imageTitle and imageCaption in TypeScript projects (frontend-collective#158)
1 parent 604b076 commit f1858a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export interface ILightBoxProps {
2020
animationDuration?: number;
2121
keyRepeatLimit?: number;
2222
keyRepeatKeyupBonus?: number;
23-
imageTitle?: string;
24-
imageCaption?: string;
23+
imageTitle?: React.ReactNode | string;
24+
imageCaption?: React.ReactNode | string;
2525
imageCrossOrigin?: string;
2626
toolbarButtons?: React.ReactNode[];
2727
reactModalStyle?: any;

0 commit comments

Comments
 (0)