mobx-keystone
Advanced tools
Comparing version 0.26.4 to 0.26.5
@@ -71,3 +71,3 @@ import { ActionMiddlewareDisposer } from "../action/middleware"; | ||
*/ | ||
readonly undoQueue: ReadonlyArray<UndoEvent>; | ||
get undoQueue(): ReadonlyArray<UndoEvent>; | ||
/** | ||
@@ -77,11 +77,11 @@ * The redo stack, where the first operation to redo will be the last of the array. | ||
*/ | ||
readonly redoQueue: ReadonlyArray<UndoEvent>; | ||
get redoQueue(): ReadonlyArray<UndoEvent>; | ||
/** | ||
* The number of undo actions available. | ||
*/ | ||
readonly undoLevels: number; | ||
get undoLevels(): number; | ||
/** | ||
* If undo can be performed (if there is at least one undo action available). | ||
*/ | ||
readonly canUndo: boolean; | ||
get canUndo(): boolean; | ||
/** | ||
@@ -94,7 +94,7 @@ * Clears the undo queue. | ||
*/ | ||
readonly redoLevels: number; | ||
get redoLevels(): number; | ||
/** | ||
* If redo can be performed (if there is at least one redo action available) | ||
*/ | ||
readonly canRedo: boolean; | ||
get canRedo(): boolean; | ||
/** | ||
@@ -101,0 +101,0 @@ * Clears the redo queue. |
@@ -1,2 +0,2 @@ | ||
import { ModelClass } from "./BaseModel"; | ||
import { AnyModel, ModelClass } from "./BaseModel"; | ||
/** | ||
@@ -9,2 +9,2 @@ * Decorator that marks this class (which MUST inherit from the `Model` abstract class) | ||
*/ | ||
export declare const model: (name: string) => (clazz: ModelClass<import("./BaseModel").BaseModel<any, any>>) => any; | ||
export declare const model: (name: string) => (clazz: ModelClass<AnyModel>) => any; |
@@ -16,3 +16,3 @@ import { AnyModel, ModelClass } from "./BaseModel"; | ||
*/ | ||
export declare const modelInfoByClass: Map<ModelClass<import("./BaseModel").BaseModel<any, any>>, ModelInfo>; | ||
export declare const modelInfoByClass: Map<ModelClass<AnyModel>, ModelInfo>; | ||
/** | ||
@@ -19,0 +19,0 @@ * @ignore |
@@ -6,3 +6,3 @@ import { AnyModel, ModelClass, ModelCreationData } from "./BaseModel"; | ||
*/ | ||
export declare const internalNewModel: (<M extends import("./BaseModel").BaseModel<any, any>>(origModelObj: M, modelClass: ModelClass<M>, initialData: (ModelCreationData<M> & { | ||
export declare const internalNewModel: (<M extends AnyModel>(origModelObj: M, modelClass: ModelClass<M>, initialData: (ModelCreationData<M> & { | ||
[modelIdKey]?: string | undefined; | ||
@@ -9,0 +9,0 @@ }) | undefined, snapshotInitialData: { |
@@ -17,11 +17,11 @@ import { ModelClass } from "../model/BaseModel"; | ||
*/ | ||
readonly maybeCurrent: T | undefined; | ||
get maybeCurrent(): T | undefined; | ||
/** | ||
* If the reference is currently valid. | ||
*/ | ||
readonly isValid: boolean; | ||
get isValid(): boolean; | ||
/** | ||
* The object this reference points to, or throws if invalid. | ||
*/ | ||
readonly current: T; | ||
get current(): T; | ||
} | ||
@@ -28,0 +28,0 @@ export declare const customRefTypeSymbol: unique symbol; |
@@ -14,3 +14,3 @@ declare const ArraySet_base: import("../model/Model")._Model<{ | ||
has(value: V): boolean; | ||
readonly size: number; | ||
get size(): number; | ||
keys(): IterableIterator<V>; | ||
@@ -20,3 +20,3 @@ values(): IterableIterator<V>; | ||
[Symbol.iterator](): IterableIterator<V>; | ||
readonly [Symbol.toStringTag]: string; | ||
get [Symbol.toStringTag](): string; | ||
} | ||
@@ -23,0 +23,0 @@ /** |
@@ -19,3 +19,3 @@ declare const ObjectMap_base: import("../model/Model")._Model<{ | ||
set(key: string, value: V): this; | ||
readonly size: number; | ||
get size(): number; | ||
keys(): IterableIterator<string>; | ||
@@ -25,3 +25,3 @@ values(): IterableIterator<V>; | ||
[Symbol.iterator](): IterableIterator<[string, V]>; | ||
readonly [Symbol.toStringTag]: string; | ||
get [Symbol.toStringTag](): string; | ||
} | ||
@@ -28,0 +28,0 @@ /** |
{ | ||
"name": "mobx-keystone", | ||
"version": "0.26.4", | ||
"version": "0.26.5", | ||
"description": "A MobX powered state management solution based on data trees with first class support for Typescript, snapshots, patches and much more", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3121744
137
25492