UNPKG

@n1k1t/mock-server

Version:

The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations

11 lines 487 B
import { TRequestPayloadType } from '../types'; export * from './validation'; export * from './rx'; /** Parses any payload into `type` and `data` */ export declare const parsePayload: (payload: unknown, expected?: TRequestPayloadType) => { type: TRequestPayloadType; data: unknown; }; /** Serializes any payload into `Buffer` by provided `type` */ export declare const serializePayload: (type: TRequestPayloadType, payload: unknown) => Buffer; //# sourceMappingURL=index.d.ts.map