UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

13 lines 651 B
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