fix ambiguous args for typechecker
This commit is contained in:
parent
77c9744878
commit
2e3ddd16d5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue