object-observer
Advanced tools
Comparing version 4.7.1 to 4.7.2
@@ -1,8 +0,2 @@ | ||
export enum ChangeType { | ||
INSERT = 'insert', | ||
UPDATE = 'update', | ||
DELETE = 'delete', | ||
REVERSE = 'reverse', | ||
SHUFFLE = 'shuffle' | ||
} | ||
export type ChangeType = 'insert' | 'update' | 'delete' | 'reverse' | 'shuffle'; | ||
@@ -31,3 +25,3 @@ /** | ||
abstract unobserve<T>(...observer: Observer[]): T; | ||
abstract unobserve(...observer: Observer[]): void; | ||
} | ||
@@ -73,15 +67,15 @@ | ||
* create `Observable` from the target and starts observation | ||
* - important: the type `T` is NOT preserved, except its shape | ||
* - important: the type `T` is NOT preserved, beside its shape | ||
* @param target target to be observed, turned into `Observable` via cloning | ||
* @param options `ObserverOptions` options | ||
*/ | ||
observe<T>(target: T, options: ObserverOptions): Observable & T; | ||
observe<T>(target: T, options?: ObserverOptions): Observable & T; | ||
/** | ||
* un-observes the `Observable`, if any, returning the original undelying plain object | ||
* un-observes the `Observable`, returning the original undelying plain object | ||
* @param target target to be un-observed | ||
*/ | ||
unobserve<T>(target: (Observable & T) | unknown): T; | ||
unobserve(target: Observable): void; | ||
disconnect(): void; | ||
} |
{ | ||
"name": "object-observer", | ||
"version": "4.7.1", | ||
"version": "4.7.2", | ||
"description": "object-observer utility provides simple means to (deeply) observe specified object/array changes; implemented via native Proxy; changes delivered in a synchronous way", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69915
1322