integreat
Version:
Node.js integration layer
6 lines (5 loc) • 511 B
TypeScript
import type { Response } from '../types.js';
export declare function createErrorResponse(error: unknown, origin?: string, status?: string, reason?: string): Response;
export declare function createUnknownServiceError(type: string | string[] | undefined, serviceId: string | undefined, actionType: string): Response;
export declare function combineResponses(responses: Response[]): Response<unknown>;
export declare const setOrigin: (response: Response, origin: string, doPrefix?: boolean) => Response<unknown>;