liquidjs
liquidjs copied to clipboard
Typescript types missing in v10.16.5
TS7016: Could not find a declaration file for module 'liquidjs'. '/Users/theycallmeswift/dev/foo/node_modules/liquidjs/dist/liquid.node.mjs' implicitly has an 'any' type.
Try `npm i --save-dev @types/liquidjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'liquidjs';`
Works in 10.16.4, but breaks when the packages is upgraded. Likely related to the ESM changes.
I cannot reproduce using this project: https://github.com/harttle/liquidjs/tree/master/demo/typescript
Could you provide a runnable case, maybe a temporary repo, or create a PR to add a repo under /demo?
can confirm that the most recent version didn't have types, downgraded to 10.16.1 (the version I was using before) which worked. Don't have a case to reproduce unfortunately
I realize this is an old issue, but FWIW I had no issue with types in 10.22.0
TS7016: Could not find a declaration file for module 'liquidjs'. '/Users/theycallmeswift/dev/foo/node_modules/liquidjs/dist/liquid.node.mjs' implicitly has an 'any' type. Try `npm i --save-dev @types/liquidjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'liquidjs';`Works in 10.16.4, but breaks when the packages is upgraded. Likely related to the ESM changes.