Skip to main content
Version: 2.x

Observable variable

@microsoft/fast-element > Observable

Observable variable

Common Observable APIs.

Signature:

Observable: Readonly<&#123;
setArrayObserverFactory(factory: (collection: any[]) => Notifier): void;
getNotifier: <T extends Notifier = Notifier>(source: any) => T;
track(source: unknown, propertyName: string): void;
trackVolatile(): void;
notify(source: unknown, args: any): void;
defineProperty(target: &#123;&#125;, nameOrAccessor: string | Accessor): void;
getAccessors: (target: &#123;&#125;) => Accessor[];
binding<TSource = any, TReturn = any>(expression: Expression<TSource, TReturn, any>, initialSubscriber?: Subscriber, isVolatileBinding?: boolean): ExpressionNotifier<TSource, TReturn, any>;
isVolatileBinding<TSource_1 = any, TReturn_1 = any>(expression: Expression<TSource_1, TReturn_1, any>): boolean;
&#125;>