UNPKG

@cfcs/core

Version:

Write once, create framework components that supports React, Vue, Svelte, and more.

18 lines (17 loc) 607 B
import { Observer } from "./Observer"; /** * @category Reactive * @hidden */ export declare class ComputedObserver<T> extends Observer<T> { private _computedCallback; private _registered; /** * @description Creates a new computed observer from the values of other observers. * It is read-only and if you change the value of the observer used inside the callback, its value will be automatically updated. * @param _computedCallback A function for observers to be computed. */ constructor(_computedCallback: () => T); get current(): T; private _onCheckUpdate; }