@formily/reactive
Version:
> Web Reactive Library Like Mobx
26 lines (25 loc) • 786 B
TypeScript
import { PropertyKey, IOperation } from './types';
export declare class DataChange {
node: DataNode;
key: PropertyKey;
object: object;
type: string;
value: any;
oldValue: any;
constructor(operation: IOperation, node: DataNode);
get path(): any;
}
export declare class DataNode {
target: any;
key: PropertyKey;
value: any;
constructor(target: any, key: PropertyKey, value: any);
get path(): any;
get targetRaw(): any;
get parent(): any;
isEqual(node: DataNode): boolean;
contains(node: DataNode): boolean;
}
export declare const getDataNode: (raw: any) => any;
export declare const setDataNode: (raw: any, node: DataNode) => void;
export declare const buildDataTree: (target: any, key: PropertyKey, value: any) => any;