Importing java-parser from a typescript project fails to build
import { type CstElement, type CstNode, parse } from 'java-parser';
error TS7016: Could not find a declaration file for module 'java-parser'. '/Volumes/T7/git/java-lint/node_modules/java-parser/src/index.js' implicitly has an 'any' type.
There are types at '/Volumes/T7/git/java-lint/node_modules/java-parser/api.d.ts', but this result could not be resolved when respecting package.json "exports". The 'java-parser' library may need to update its package.json or typings.
Importing
java-parser
from a typescript project fails to build