| Server IP : 159.69.118.108 / Your IP : 216.73.216.231 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-4gb-fsn1-1 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 13:53:54 UTC 2025 aarch64 User : root ( 0) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/node_modules/pm2/node_modules/fast-json-patch/commonjs/ |
Upload File : |
import { Operation } from './core.js';
export interface Observer<T> {
object: T;
patches: Operation[];
unobserve: () => void;
callback: (patches: Operation[]) => void;
}
/**
* Detach an observer from an object
*/
export declare function unobserve<T>(root: T, observer: Observer<T>): void;
/**
* Observes changes made to an object, which can then be retrieved using generate
*/
export declare function observe<T>(obj: Object | Array<T>, callback?: (patches: Operation[]) => void): Observer<T>;
/**
* Generate an array of patches from an observer
*/
export declare function generate<T>(observer: Observer<Object>, invertible?: boolean): Operation[];
/**
* Create an array of patches from the differences in two objects
*/
export declare function compare(tree1: Object | Array<any>, tree2: Object | Array<any>, invertible?: boolean): Operation[];