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
getBufferAsync(Jimp.AUTO) should be allowed as per package README
If Jimp.AUTO is passed as the MIME type then the original MIME type for the image (or "image/png") will be used. Alternatively, image.getMIME() will return the original MIME type of the image (or "image/png").
Current Behavior
VSCode will report problem and tsc will throw compile error
Failure Information (for bugs)
Compiler output:
error TS2345: Argument of type '-1' is not assignable to parameter of type 'string'.
Expected Behavior
getBufferAsync(Jimp.AUTO)
should be allowed as per package READMECurrent Behavior
VSCode will report problem and tsc will throw compile error
Failure Information (for bugs)
Compiler output:
Steps to Reproduce
npm install -g typescript
npm install --save jimp
npm install @types/node --save-dev
tsc -p tsconfig.json
Context
In the
jimp.d.ts
, these functions should be updated to allow number type formime
parameter.Failure Logs
The text was updated successfully, but these errors were encountered: