You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect standard string as datatype of path input parameter of Jimp.write function.
Current Behavior
Used complicated (and on many places incompatible) data type${string}.${Extension} for input parameter path.
Need to explicitly retype by ugly as '${string}.${string}'
Failure Information (for bugs)
N/A
Steps to Reproduce
const icon = await Jimp.read(sourceImgPath);
const writePath = path.join(__dirname, 'myfile.png');
await icon.write(writePath); // Error: Argument of type 'string' is not assignable to parameter of type '`${string}.${string}`'.ts(2345)
Screenshots
N/A
Context
Jimp Version: 1.6.0
Operating System: MaOS
Node version: 20.x
Failure Logs
Error: Argument of type 'string' is not assignable to parameter of type '`${string}.${string}`'.ts(2345)
The text was updated successfully, but these errors were encountered:
Expected Behavior
I expect standard
string
as datatype ofpath
input parameter ofJimp.write
function.Current Behavior
Used complicated (and on many places incompatible) data type
${string}.${Extension}
for input parameterpath
.Need to explicitly retype by ugly
as '${string}.${string}'
Failure Information (for bugs)
N/A
Steps to Reproduce
Screenshots
N/A
Context
Failure Logs
The text was updated successfully, but these errors were encountered: