slonik
Version:
A Node.js PostgreSQL client with strict types, detailed logging and assertions.
11 lines • 382 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createErrorWithCode = void 0;
const createErrorWithCode = (code) => {
const error = new Error('foo');
// @ts-expect-error - This is a test helper.
error.code = code;
return error;
};
exports.createErrorWithCode = createErrorWithCode;
//# sourceMappingURL=createErrorWithCode.js.map