From c5b92d50d9a7d8d6158c191ff735a2ab179027eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Mon, 2 Jan 2023 16:22:37 +0100 Subject: [PATCH] update interface --- src/Umbraco.Web.UI.Client/src/core/element/element.mixin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/core/element/element.mixin.ts b/src/Umbraco.Web.UI.Client/src/core/element/element.mixin.ts index c7e8ea145e..533d9c8e92 100644 --- a/src/Umbraco.Web.UI.Client/src/core/element/element.mixin.ts +++ b/src/Umbraco.Web.UI.Client/src/core/element/element.mixin.ts @@ -13,7 +13,9 @@ interface ResolvedContexts { } export declare class UmbElementMixinInterface extends UmbControllerHostInterface { - consumeContext(alias: string, callback: (_instance: any) => void): void; + observe(source: Observable, callback: (_value: Y) => void): UmbObserverController; + provideContext(alias: string, instance: unknown): UmbContextProviderController; + consumeContext(alias: string, callback: (_instance: any) => void): UmbContextConsumerController; consumeAllContexts(contextAliases: string[], callback: (_instances: ResolvedContexts) => void): void; }