fix ambiguous args for typechecker

This commit is contained in:
RealBeepMcJeep 2023-08-30 12:49:07 -07:00
parent 77c9744878
commit 2e3ddd16d5
1 changed files with 4 additions and 0 deletions

View File

@ -1248,6 +1248,10 @@ app.post("/deletecharacter", jsonParser, async function (request, response) {
return response.sendStatus(200);
});
/**
* @param {express.Response | undefined} response
* @param {{file_name: string} | string} mes
*/
async function charaWrite(img_url, data, target_img, response = undefined, mes = 'ok', crop = undefined) {
try {
// Read the image, resize, and save it as a PNG into the buffer