@ima/core
Version:
IMA.js framework for isomorphic javascript application
46 lines • 921 B
TypeScript
import { Storage } from './Storage';
import { Dependencies } from '../oc/ObjectContainer';
/**
* Implementation of the `link Storage` interface that relies on the
* native `Map` for storage.
*/
export declare class MapStorage<V> extends Storage<V> {
/**
* The internal storage of entries.
*/
private _storage;
static get $dependencies(): Dependencies;
/**
* @inheritDoc
*/
init(): this;
/**
* @inheritDoc
*/
has(key: string): boolean;
/**
* @inheritDoc
*/
get(key: string): V | undefined;
/**
* @inheritDoc
*/
set(key: string, value: V): this;
/**
* @inheritDoc
*/
delete(key: string): this;
/**
* @inheritDoc
*/
clear(): this;
/**
* @inheritDoc
*/
keys(): Iterable<string>;
/**
* @override
*/
size(): number;
}
//# sourceMappingURL=MapStorage.d.ts.map