update interface

This commit is contained in:
Niels Lyngsø
2023-01-02 16:22:37 +01:00
parent c072db596e
commit c5b92d50d9

View File

@@ -13,7 +13,9 @@ interface ResolvedContexts {
}
export declare class UmbElementMixinInterface extends UmbControllerHostInterface {
consumeContext(alias: string, callback: (_instance: any) => void): void;
observe<Y = any>(source: Observable<any>, 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;
}