@n1k1t/mock-server
Version:
The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations
13 lines • 651 B
TypeScript
import type { PickWithType } from '../../types';
export type TMetaContext = Partial<PickWithType<MetaContext, string | number | boolean>>;
export declare class MetaContext {
requestId: string;
operationId: string;
merge(context: TMetaContext): this & Partial<PickWithType<MetaContext, string | number | boolean>>;
pick<K extends keyof TMetaContext>(keys: K[]): Pick<this, K>;
static build(context?: Partial<Pick<MetaContext, 'operationId' | 'requestId'>>): MetaContext & {
requestId: string;
operationId: string;
} & Partial<Pick<MetaContext, "requestId" | "operationId">>;
}
//# sourceMappingURL=model.d.ts.map