feat: Upgrade nodes-base package to use modern tsconfig.json (no-changelog) (#16884)

This commit is contained in:
Alex Grozav
2025-07-04 14:55:39 +03:00
committed by GitHub
parent 5733999de5
commit d754ce922d
37 changed files with 165 additions and 143 deletions

View File

@@ -207,7 +207,7 @@ export async function handleErrorPostReceive(
if (resource === 'file' && operation === 'download' && Buffer.isBuffer(response.body)) {
response.body = jsonParse((response.body as Buffer).toString());
}
const error = (response.body as IErrorResponse)?.error ?? {};
const error = (response.body as IErrorResponse)?.error ?? ({} as IErrorResponse['error']);
if (resource === 'file') {
if (operation === 'download') {