observable-membrane
Version:
A Javascript Membrane implementation using Proxies to observe mutation on an object graph
17 lines (16 loc) • 1.39 kB
TypeScript
declare const isArray: (arg: any) => arg is any[];
declare const ObjectDotPrototype: Object, getPrototypeOf: (o: any) => any, ObjectCreate: {
(o: object | null): any;
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
}, ObjectDefineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T, isExtensible: (o: any) => boolean, getOwnPropertyDescriptor: (o: any, p: PropertyKey) => PropertyDescriptor | undefined, getOwnPropertyNames: (o: any) => string[], getOwnPropertySymbols: (o: any) => symbol[], preventExtensions: <T>(o: T) => T, hasOwnProperty: (v: PropertyKey) => boolean;
declare const ArrayPush: (...items: any[]) => number, ArrayConcat: {
(...items: ConcatArray<any>[]): any[];
(...items: any[]): any[];
};
export { ArrayPush, ArrayConcat, isArray, getPrototypeOf, ObjectCreate, ObjectDefineProperty, ObjectDotPrototype, isExtensible, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, preventExtensions, hasOwnProperty, };
export declare function toString(obj: any): string;
export declare function isUndefined(obj: any): obj is undefined;
export declare function isFunction(obj: any): obj is Function;
export declare function registerProxy(proxy: object, value: any): void;
export declare const unwrap: (replicaOrAny: any) => any;
export declare type ProxyPropertyKey = string | symbol;