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'm writing 3rd part TypeScript/Definition file that consumes Jimp (this part works marvelously):
importmergeImgfrom'merge-img';import{resolve}from'path';importJimpfrom'jimp';constfixturePath=resolve(__dirname,'fixtures');mergeImg(['image-1.png','image-2.jpg']).then(img=>{// Save image as fileimg.write('out.png',()=>console.log('done'));});
I cannot see the outcome of the adding TS support as the tsc tooling complains:
Error: Errors in typescript@next for external dependencies:
node_modules/@jimp/core/types/utils.d.ts(16,3): error TS2536: Type '"class"' cannot be used to index type'T'.
node_modules/@jimp/core/types/utils.d.ts(17,3): error TS2536: Type '"constants"' cannot be used to index type'T'.
I'm writing 3rd part TypeScript/Definition file that consumes Jimp (this part works marvelously):
I cannot see the outcome of the adding TS support as the tsc tooling complains:
Relevant
jimp
def type:https://www.google.com/search?q=typescript+TS2536&oq=typescript+TS2536&aqs=chrome..69i57.1779j0j1&sourceid=chrome&ie=UTF-8
Shoudl this one be changed by restructuring consuming code? Or there in the upstream source?
Thanks folks!
The text was updated successfully, but these errors were encountered: