Skip to content

Commit

Permalink
Support for sync getApiMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeckem committed Aug 9, 2024
1 parent 477bdd4 commit 6cc7fcd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/shaggy-queens-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@open-pioneer/runtime": patch
"@open-pioneer/integration": patch
---

Allow synchronous `getApiMethods()` when implementing an `ApiExtension`.
2 changes: 1 addition & 1 deletion src/packages/runtime/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface ApiExtension {
/**
* Returns a set of methods that will be added to the web component's API.
*/
getApiMethods(): Promise<ApiMethods>;
getApiMethods(): Promise<ApiMethods> | ApiMethods;
}

/**
Expand Down

0 comments on commit 6cc7fcd

Please sign in to comment.