UNPKG

@xcons/widget

Version:

XCon Studio widget utilities with advanced template rendering, reactive binding system and registry pattern support

36 lines (35 loc) 1.12 kB
export interface PropertyOptions { reflect?: boolean; attribute?: string; hasChanged?: (value: any, oldValue: any) => boolean; } export declare class ReactivePropertyUtils { /** * Default change detection function */ static defaultHasChanged(value: any, oldValue: any): boolean; /** * Check if property should be skipped from dependency detection */ static shouldSkipProperty(propertyPath: string): boolean; /** * Check if property exists on instance (including nested) */ static hasProperty(obj: any, propertyPath: string): boolean; /** * Get nested property value safely */ static getNestedProperty(obj: any, propertyPath: string): any; /** * Auto-detect dependencies by analyzing getter function */ static detectDependencies(getter: Function, context: any): string[]; /** * Apply shared reactive update method to target */ static applyReactiveUpdateMethod(target: any): void; /** * Apply reflect to attribute method */ static applyReflectToAttributeMethod(target: any): void; }