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);
|
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) {
|
async function charaWrite(img_url, data, target_img, response = undefined, mes = 'ok', crop = undefined) {
|
||||||
try {
|
try {
|
||||||
// Read the image, resize, and save it as a PNG into the buffer
|
// Read the image, resize, and save it as a PNG into the buffer
|
||||||
|
|
Loading…
Reference in New Issue