mobx 6.12.1 → 6.12.3

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.
@@ -1,4 +1,4 @@
1
- import { CreateObservableOptions, Annotation, ComputedValue, IAtom, IComputedValueOptions, IEnhancer, IInterceptable, IListenable, Lambda, ObservableValue } from "../internal";
1
+ import { CreateObservableOptions, $mobx, Annotation, ComputedValue, IAtom, IComputedValueOptions, IEnhancer, IInterceptable, IListenable, Lambda, ObservableValue } from "../internal";
2
2
  export type IObjectDidChange<T = any> = {
3
3
  observableKind: "object";
4
4
  name: PropertyKey;
@@ -87,11 +87,11 @@ export declare class ObservableObjectAdministration implements IInterceptable<IO
87
87
  observe_(callback: (changes: IObjectDidChange) => void, fireImmediately?: boolean): Lambda;
88
88
  intercept_(handler: any): Lambda;
89
89
  notifyPropertyAddition_(key: PropertyKey, value: any): void;
90
- ownKeys_(): ArrayLike<string | symbol>;
90
+ ownKeys_(): Array<string | symbol>;
91
91
  keys_(): PropertyKey[];
92
92
  }
93
93
  export interface IIsObservableObject {
94
- $mobx: ObservableObjectAdministration;
94
+ [$mobx]: ObservableObjectAdministration;
95
95
  }
96
96
  export declare function asObservableObject(target: any, options?: CreateObservableOptions): IIsObservableObject;
97
97
  export declare function isObservableObject(thing: any): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx",
3
- "version": "6.12.1",
3
+ "version": "6.12.3",
4
4
  "description": "Simple, scalable state management.",
5
5
  "source": "src/mobx.ts",
6
6
  "main": "dist/index.js",
@@ -18,7 +18,8 @@ import {
18
18
  spyReportStart,
19
19
  startBatch,
20
20
  trace,
21
- trackDerivedFunction, GenericAbortSignal
21
+ trackDerivedFunction,
22
+ GenericAbortSignal
22
23
  } from "../internal"
23
24
 
24
25
  /**
@@ -47,7 +48,7 @@ export interface IReactionPublic {
47
48
 
48
49
  export interface IReactionDisposer {
49
50
  (): void
50
- $mobx: Reaction
51
+ [$mobx]: Reaction
51
52
  }
52
53
 
53
54
  export class Reaction implements IDerivation, IReactionPublic {
@@ -629,7 +629,7 @@ export class ObservableObjectAdministration
629
629
  this.keysAtom_.reportChanged()
630
630
  }
631
631
 
632
- ownKeys_(): ArrayLike<string | symbol> {
632
+ ownKeys_(): Array<string | symbol> {
633
633
  this.keysAtom_.reportObserved()
634
634
  return ownKeys(this.target_)
635
635
  }
@@ -647,7 +647,7 @@ export class ObservableObjectAdministration
647
647
  }
648
648
 
649
649
  export interface IIsObservableObject {
650
- $mobx: ObservableObjectAdministration
650
+ [$mobx]: ObservableObjectAdministration
651
651
  }
652
652
 
653
653
  export function asObservableObject(