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

17 lines 777 B
import { ISerializedRequest } from "../interfaces"; import { HTTPMethod, IService, IServiceInput, IStateInput, MatcherResponse, OpenAPIObject } from "./interfaces"; export declare class Service implements IService { readonly name: string; private hasPaths; private readonly oasSchema; private readonly matcher; private readonly state; constructor(opts: IServiceInput); readonly schema: OpenAPIObject; readonly hasDefinedPaths: boolean; match(sreq: ISerializedRequest): MatcherResponse; resetState(): void; updateState(stateInput: IStateInput): void; getState(method: HTTPMethod, endpoint: string): Record<string, Record<string, import("loas3/dist/src/generated/full").Schema>> | undefined; } //# sourceMappingURL=service.d.ts.map