mobx 6.4.2 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/mobx.cjs.development.js.map +1 -1
- package/dist/mobx.cjs.production.min.js.map +1 -1
- package/dist/mobx.esm.development.js.map +1 -1
- package/dist/mobx.esm.js.map +1 -1
- package/dist/mobx.esm.production.min.js.map +1 -1
- package/dist/mobx.umd.development.js.map +1 -1
- package/dist/mobx.umd.production.min.js.map +1 -1
- package/dist/types/observableset.d.ts +2 -2
- package/package.json +1 -1
- package/src/types/observableset.ts +2 -2
|
@@ -37,8 +37,8 @@ export declare class ObservableSet<T = any> implements Set<T>, IInterceptable<IS
|
|
|
37
37
|
forEach(callbackFn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
|
|
38
38
|
get size(): number;
|
|
39
39
|
add(value: T): this;
|
|
40
|
-
delete(value:
|
|
41
|
-
has(value:
|
|
40
|
+
delete(value: T): boolean;
|
|
41
|
+
has(value: T): boolean;
|
|
42
42
|
entries(): IterableIterator<[T, T]>;
|
|
43
43
|
keys(): IterableIterator<T>;
|
|
44
44
|
values(): IterableIterator<T>;
|
package/package.json
CHANGED
|
@@ -159,7 +159,7 @@ export class ObservableSet<T = any> implements Set<T>, IInterceptable<ISetWillCh
|
|
|
159
159
|
return this
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
delete(value:
|
|
162
|
+
delete(value: T) {
|
|
163
163
|
if (hasInterceptors(this)) {
|
|
164
164
|
const change = interceptChange<ISetWillChange<T>>(this, {
|
|
165
165
|
type: DELETE,
|
|
@@ -202,7 +202,7 @@ export class ObservableSet<T = any> implements Set<T>, IInterceptable<ISetWillCh
|
|
|
202
202
|
return false
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
has(value:
|
|
205
|
+
has(value: T) {
|
|
206
206
|
this.atom_.reportObserved()
|
|
207
207
|
return this.data_.has(this.dehanceValue_(value))
|
|
208
208
|
}
|