Skip to content

Commit 63040f6

Browse files
committed
Fix RenderExtension interface to support synchronous renders and make the clean up function optional
1 parent 1f1d9f6 commit 63040f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ui-extensions/src/surfaces/admin/registration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export interface RenderExtension<Api> {
2-
(root: HTMLElement, api: Api): Promise<void | (() => void)>;
2+
(root: HTMLElement, api: Api):
3+
| (void | (() => void))
4+
| Promise<void | (() => void)>;
35
}
46

57
export interface ExtensionRegistrationFunction<ExtensionTargets> {

0 commit comments

Comments
 (0)