Skip to content

Commit

Permalink
Fix RenderExtension interface to support synchronous renders and make…
Browse files Browse the repository at this point in the history
… the clean up function optional
  • Loading branch information
vividviolet committed Nov 18, 2024
1 parent 1f1d9f6 commit 63040f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui-extensions/src/surfaces/admin/registration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export interface RenderExtension<Api> {
(root: HTMLElement, api: Api): Promise<void | (() => void)>;
(root: HTMLElement, api: Api):
| (void | (() => void))
| Promise<void | (() => void)>;
}

export interface ExtensionRegistrationFunction<ExtensionTargets> {
Expand Down

0 comments on commit 63040f6

Please sign in to comment.