@thisisagile/easy-test
Version:
Straightforward library for testing microservices built with @thisisagile/easy
26 lines (25 loc) • 464 B
TypeScript
import { Id } from './Types';
export type HttpStatus = {
name: string;
id: Id;
};
export type RestResult = {
data?: {
code: number;
items: unknown[];
itemCount: number;
};
error?: {
code: number;
message: string;
errorCount: number;
errors: unknown[];
};
};
export type Response = {
status: HttpStatus;
headers?: {
[key: string]: any;
};
body?: RestResult;
};