Merge pull request #33138 from backstage/rugvip/fix-dialog-api-jsx-type-inconsistency

Fix JSX type reference inconsistency in DialogApiDialog
This commit is contained in:
Patrik Oldsberg
2026-03-05 13:50:34 +01:00
committed by GitHub
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-plugin-api': patch
---
Fixed inconsistent `JSX.Element` type reference in the `DialogApiDialog.update` method signature.
+1 -1
View File
@@ -866,7 +866,7 @@ export interface DialogApiDialog<TResult = void> {
result(): Promise<TResult>;
update(
elementOrComponent:
| React.JSX.Element
| JSX.Element
| ((props: { dialog: DialogApiDialog<TResult> }) => JSX.Element),
): void;
}
@@ -42,7 +42,7 @@ export interface DialogApiDialog<TResult = void> {
*/
update(
elementOrComponent:
| React.JSX.Element
| JSX.Element
| ((props: { dialog: DialogApiDialog<TResult> }) => JSX.Element),
): void;