@thisisagile/easy-test
Version:
Straightforward library for testing microservices built with @thisisagile/easy
11 lines (7 loc) • 362 B
text/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 };