UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

22 lines 806 B
import { IExpectationSchemaContext, TExpectationOperatorLocation } from '../types'; type TBaseExtractedContext = { parent: object; key: string; }; type TExtractedContext = (TBaseExtractedContext & { value?: unknown; type: 'object'; }) | (TBaseExtractedContext & { value?: string; type: 'string'; }) | (TBaseExtractedContext & { value?: Buffer; type: 'buffer'; }) | (TBaseExtractedContext & { value?: number; type: 'number'; }); export declare const checkIsLocationInContext: (location: TExpectationOperatorLocation, context: IExpectationSchemaContext) => boolean; export declare const extractContextByLocation: (location: TExpectationOperatorLocation, context: IExpectationSchemaContext) => TExtractedContext | null; export {}; //# sourceMappingURL=location.d.ts.map