diff --git a/.changeset/shaggy-queens-brake.md b/.changeset/shaggy-queens-brake.md new file mode 100644 index 0000000..e74c20b --- /dev/null +++ b/.changeset/shaggy-queens-brake.md @@ -0,0 +1,6 @@ +--- +"@open-pioneer/runtime": patch +"@open-pioneer/integration": patch +--- + +Allow synchronous `getApiMethods()` when implementing an `ApiExtension`. diff --git a/src/packages/runtime/api.ts b/src/packages/runtime/api.ts index dda7d97..74cdcc5 100644 --- a/src/packages/runtime/api.ts +++ b/src/packages/runtime/api.ts @@ -17,7 +17,7 @@ export interface ApiExtension { /** * Returns a set of methods that will be added to the web component's API. */ - getApiMethods(): Promise; + getApiMethods(): Promise | ApiMethods; } /**