UNPKG

@compas/code-gen

Version:

Generate various boring parts of your server

16 lines (15 loc) 416 B
/** * Combine the messages of the provided errors and throw a new error. * * Early returns if an empty array is provided. * * Other supported properties: * - messages: expected to be a string[] * * @param {import("@compas/stdlib").AppError[]} errors * @returns {void} */ export function errorsThrowCombinedError( errors: import("@compas/stdlib").AppError[], ): void; //# sourceMappingURL=errors.d.ts.map