@n1k1t/mock-server
Version:
The ultimate toolkit to intercept, transform, and simulate HTTP/WS traffic with type-safe expectations
10 lines • 487 B
TypeScript
import type { SystemHttpRequestContext } from './context';
import { Reply } from '../../../models';
export declare class SystemHttpReply<TOutgoing = unknown> extends Reply<SystemHttpRequestContext, TOutgoing> {
ok(payload: TOutgoing): void;
internalError(message?: string): void;
validationError(reasons?: unknown[]): void;
notFound(): void;
static build<TResponse>(context: SystemHttpRequestContext): SystemHttpReply<TResponse>;
}
//# sourceMappingURL=reply.d.ts.map