UNPKG

unmock-core

Version:

[![npm](https://img.shields.io/npm/v/unmock-core.svg)][npmjs] [![CircleCI](https://circleci.com/gh/unmock/unmock-js.svg?style=svg)](https://circleci.com/gh/unmock/unmock-js) [![codecov](https://codecov.io/gh/unmock/unmock-js/branch/dev/graph/badge.svg)](h

15 lines 671 B
import { ISerializedRequest } from "../interfaces"; import { ExtendedHTTPMethod, IService, IStateInputGenerator, MatcherResponse, UnmockServiceState } from "./interfaces"; export declare class ServiceStore { private readonly serviceMapping; constructor(services: IService[]); match(sreq: ISerializedRequest): MatcherResponse; resetState(serviceName: string | undefined): void; saveState({ serviceName, method, endpoint, state, }: { serviceName: string; endpoint: string; method: ExtendedHTTPMethod; state: IStateInputGenerator | UnmockServiceState | undefined; }): void; } //# sourceMappingURL=serviceStore.d.ts.map