Skip to content

Commit 40008f8

Browse files
authored
fix(types): make PopupModal content accept JSXElement (#3728)
1 parent 404bb10 commit 40008f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

globals.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,9 +1294,10 @@ declare namespace Spicetify {
12941294
title: string;
12951295
/**
12961296
* You can specify a string for simple text display
1297-
* or a HTML element for interactive config/setting menu
1297+
* or a HTML element for interactive config/setting menu,
1298+
* or a React JSX element for React-based components
12981299
*/
1299-
content: string | Element;
1300+
content: string | Element | React.JSX.Element;
13001301
/**
13011302
* Bigger window
13021303
*/

0 commit comments

Comments
 (0)