@xcons/widget
Version:
XCon Studio widget utilities with advanced template rendering, reactive binding system and registry pattern support
24 lines (23 loc) • 821 B
TypeScript
import { ReactiveModel } from "./reactive-core";
export interface ComputedOptions {
dependencies?: string[];
autoDetectDependencies?: boolean;
}
export interface ComputedPropertyInfo {
dependencies: string[];
autoDetectDependencies: boolean;
originalGetter: Function;
}
/**
* Computed property decorator - creates cached getter based on dependencies
* Renamed from 'computed' to 'xcomputed' for consistency with xproperty
*/
export declare function xcomputed(options?: ComputedOptions): MethodDecorator;
/**
* Manual computed property invalidation
*/
export declare function invalidateComputed(model: ReactiveModel, propertyKey: string): void;
/**
* Manual computed property invalidation for all computed properties
*/
export declare function invalidateAllComputed(model: ReactiveModel): void;