UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

10 lines 497 B
import type { InternalHttpRequestContext } from './context'; import { Reply } from '../../../models'; export declare class InternalHttpReply<TOutgoing = unknown> extends Reply<InternalHttpRequestContext, TOutgoing> { ok(payload: TOutgoing): void; internalError(message?: string): void; validationError(reasons?: unknown[]): void; notFound(): void; static build<TResponse>(context: InternalHttpRequestContext): InternalHttpReply<TResponse>; } //# sourceMappingURL=reply.d.ts.map