do not allow objects with method for observables

This commit is contained in:
Niels Lyngsø
2023-11-09 12:38:21 +01:00
parent 9b724e2b36
commit 7f2ca5f47b

View File

@@ -23,7 +23,7 @@ type UmbClassMixinConstructor = new (
declare class UmbClassMixinDeclaration implements UmbClassMixinInterface {
_host: UmbControllerHost;
observe<T>(
source: Observable<T> | { asObservable: () => Observable<T> },
source: Observable<T>,
callback: (_value: T) => void,
controllerAlias?: UmbControllerAlias
): UmbObserverController<T>;