Update Types
This commit is contained in:
@@ -94,7 +94,7 @@ module.exports = async function imageInputFileToBase64({ imageInputFile, maxWidt
|
||||
imageName: imageName,
|
||||
imageSize: imageSize,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("Image Processing Error! =>", error.message);
|
||||
|
||||
return {
|
||||
|
||||
@@ -85,7 +85,7 @@ module.exports = async function imageInputToBase64({ imageInput, maxWidth, mimeT
|
||||
imageBase64Full: imageDataBase64,
|
||||
imageName: imageName,
|
||||
};
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("Image Processing Error! =>", error.message);
|
||||
|
||||
return {
|
||||
|
||||
@@ -58,7 +58,7 @@ module.exports = async function inputFileToBase64({ inputFile, allowedRegex }) {
|
||||
reader.onload = function () {
|
||||
resolve(reader.result);
|
||||
};
|
||||
reader.onerror = function (error) {
|
||||
reader.onerror = function (/** @type {*} */ error) {
|
||||
console.log("Error: ", error.message);
|
||||
};
|
||||
});
|
||||
@@ -78,7 +78,7 @@ module.exports = async function inputFileToBase64({ inputFile, allowedRegex }) {
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
////////////////////////////////////////
|
||||
} catch (error) {
|
||||
} catch (/** @type {*} */ error) {
|
||||
console.log("File Processing Error! =>", error.message);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user