
I’m currently trying to build a Javascript library which builds on bokehjs. I’ve added the bokehjs npm package as a dependency in my package.json file and am importing trying to import from the bokehJS modules, e.g.:
import {Document} from "bokehjs/build/js/bokeh/document"
The problem I’m facing is that when compiling the code it cannot find the typing files, so I get errors like:
Could not find a declaration file for module 'bokehjs/build/js/lib/document'. '
./node_modules/bokehjs/build/js/lib/document/index.js' implicitly has an 'any' type.
Try `npm install @types/bokehjs` if it exists or add a new declaration (.d.ts) file containing `declare module 'bokehjs/build/js
I realize the types are shipped in bokehjs/build/js/types but I can’t figure out how to make nodejs find them. Am I importing from the wrong place or is there a way to make nodejs discover the types? Alternatively is the bokehjs npm package simply not set up to export all of bokehjs?


)