Skip to content

Commit

Permalink
Remove jsdoc typings from typescript file
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
Page- committed Jan 9, 2025
1 parent 6ba5871 commit c9a77da
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/data-server/sbvr-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
$select: 'id',
},
})
.then(async (/** @type { { [key: string]: any } } */ result) => {
.then(async (result) => {
if (result == null) {
// Add a model_area entry if it doesn't already exist.
return await uiApiTx.post({
Expand Down Expand Up @@ -144,7 +144,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
$select: 'text',
},
})
.then(async (/** @type { { [key: string]: any } } */ result) => {
.then(async (result) => {
if (result == null) {
throw new Error('Could not find the model to execute');
}
Expand Down Expand Up @@ -211,7 +211,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
await setupModels(tx);
});
res.status(200).end();
} catch (/** @type any */ err) {
} catch (err) {
console.error('Error clearing db', err);
res.status(503).end();
}
Expand Down Expand Up @@ -240,7 +240,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
}
});
res.status(200).end();
} catch (/** @type any */ err) {
} catch (err) {
console.error('Error importing db', err);
res.status(404).end();
}
Expand Down Expand Up @@ -284,7 +284,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
);
});
res.json(exported);
} catch (/** @type any */ err) {
} catch (err) {
console.error('Error exporting db', err);
res.status(503).end();
}
Expand Down Expand Up @@ -314,7 +314,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
);
});
res.status(200).end();
} catch (/** @type any */ err) {
} catch (err) {
console.error('Error backing up db', err);
res.status(404).end();
}
Expand Down Expand Up @@ -343,7 +343,7 @@ export const setup: SetupFunction = async (app, sbvrUtils, db) => {
);
});
res.status(200).end();
} catch (/** @type any */ err) {
} catch (err) {
console.error('Error restoring db', err);
res.status(404).end();
}
Expand Down

0 comments on commit c9a77da

Please sign in to comment.