UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

23 lines 1.26 kB
import { ExpectationOperator } from '../models/operator'; import { TFunction } from '../../../types'; import { CompileExpectationOperatorValue, CompileExpectationOperatorValueWithPredicate, IExpectationSchemaContext, IExpectationExecUtils, TExpectationMetaTag, TExpectationOperatorLocation } from '../types'; export default class SetExpectationOperator<TContext extends IExpectationSchemaContext, TLocation extends TExpectationOperatorLocation = TExpectationOperatorLocation, TValue = void> extends ExpectationOperator<TContext, { [K in TLocation]: { $location: K; $value?: CompileExpectationOperatorValueWithPredicate<TContext, K, TValue>; $exec?: string | TFunction<CompileExpectationOperatorValueWithPredicate<TContext, K, TValue>, [ CompileExpectationOperatorValue<TContext, K, TValue>, IExpectationExecUtils<TContext> ]>; $path?: string; $jsonPath?: string; }; }[TLocation]> { compiled: { exec?: ((mode: import("../types").IExpectationExecMode, context: TContext, ...args: unknown[]) => any) | undefined; }; get tags(): TExpectationMetaTag[]; match(): boolean; manipulate<T extends TContext>(context: T): T; } //# sourceMappingURL=set.operator.d.ts.map