diff --git a/server.js b/server.js index 60e77b98a..52c677cbd 100644 --- a/server.js +++ b/server.js @@ -4978,6 +4978,7 @@ async function getManifest(extensionPath) { } async function checkIfRepoIsUpToDate(extensionPath) { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); await git.cwd(extensionPath).fetch('origin'); const currentBranch = await git.cwd(extensionPath).branch(); @@ -5008,6 +5009,7 @@ async function checkIfRepoIsUpToDate(extensionPath) { * @returns {void} */ app.post('/get_extension', jsonParser, async (request, response) => { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); if (!request.body.url) { return response.status(400).send('Bad Request: URL is required in the request body.'); @@ -5053,6 +5055,7 @@ app.post('/get_extension', jsonParser, async (request, response) => { * @returns {void} */ app.post('/update_extension', jsonParser, async (request, response) => { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); if (!request.body.extensionName) { return response.status(400).send('Bad Request: extensionName is required in the request body.'); @@ -5098,6 +5101,7 @@ app.post('/update_extension', jsonParser, async (request, response) => { * @returns {void} */ app.post('/get_extension_version', jsonParser, async (request, response) => { + // @ts-ignore - simple-git types are incorrect, this is apparently callable but no call signature const git = simpleGit(); if (!request.body.extensionName) { return response.status(400).send('Bad Request: extensionName is required in the request body.');