Y
/** @hidden */
export interface IMSTMap<IT extends IAnyType> {
clear(): void;
delete(key: string): boolean;
forEach(callbackfn: (value: IT["Type"], key: string, map: this) => void, thisArg?: any): void;
get(key: string): IT["Type"] | undefined;
has(key: string): boolean;
set(key: string, value: ExtractCSTWithSTN<IT>): this;
readonly size: number;
put(value: ExtractCSTWithSTN<IT>): IT["Type"];
keys(): IterableIterator<string>;
values(): IterableIterator<IT["Type"]>;
entries(): IterableIterator<[string, IT["Type"]]>;
[Symbol.iterator](): IterableIterator<[string, IT["Type"]]>;
/** Merge another object into this map, returns self. */
merge(other: IMSTMap<IType<any, any, IT["TypeWithoutSTN"]>> | IKeyValueMap<ExtractCSTWithSTN<IT>> | any): this;
replace(values: IMSTMap<IType<any, any, IT["TypeWithoutSTN"]>> | IKeyValueMap<ExtractCSTWithSTN<IT>> | any): this;
/**
* Returns a plain object that represents this map.
* Note that all the keys being stringified.
* If there are duplicating keys after converting them to strings, behaviour is undetermined.
*/
toPOJO(): IKeyValueMap<IT["SnapshotType"]>;
toJSON(): IKeyValueMap<IT["SnapshotType"]>;
/**
* Returns a shallow non observable object clone of this map.
* Note that the values might still be observable. For a deep clone use mobx.toJS.
*/
toJS(): Map<string, IT["Type"]>;
toString(): string;
[Symbol.toStringTag]: "Map";
/**
* Observes this object. Triggers for the events 'add', 'update' and 'delete'.
* See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/observe
* for callback details
*/
observe(listener: (changes: IMapDidChange<string, IT["Type"]>) => void, fireImmediately?: boolean): Lambda;
intercept(handler: IInterceptor<IMapWillChange<string, IT["Type"]>>): Lambda;
}
ось все що може мап в mst