@n1k1t/mock-server
Version:
The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations
19 lines • 705 B
TypeScript
import { History } from './model';
export declare class HistoryStorage extends Map<string, History> {
protected configuration: Pick<History, 'group'> & {
limit?: number;
};
private stack;
constructor(configuration: Pick<History, 'group'> & {
limit?: number;
});
/** Extends this storage with another */
extend(storage: HistoryStorage): this;
/** Registers history item */
register(predicate: History | Omit<History['configuration'], 'group'>): History;
/** Removes history item from storage and marks it as `unregistred` */
unregister(history?: History): this;
/** Clears storage */
clear(): void;
}
//# sourceMappingURL=storage.d.ts.map