[Pkg-javascript-devel] Bug#930267: provide type definitions for node-ast-types

Pirate Praveen praveen at onenetbeyond.org
Sun Jun 9 15:10:58 BST 2019


package: node-ast-types
version: 0.11.7-1
severity: wishlist
Control: block 930266 by -1

While trying to update node-recast to 0.18, tsc throws this error

lib/comments.ts(2,24): error TS7016: Could not find a declaration file 
for module 'ast-types'. '/usr/lib/nodejs/ast-types/main.js' implicitly 
has an 'any' type.
  Try `npm install @types/ast-types` if it exists or add a new 
declaration (.d.ts) file containing `declare module 'ast-types';`



More information about the Pkg-javascript-devel mailing list