UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

19 lines 720 B
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; }); /** 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; /** Injects and registers history items from plain */ inject(list: History['TPlain'][]): this; /** Clears storage */ clear(): void; } //# sourceMappingURL=storage.d.ts.map