d3-funnel
d3-funnel copied to clipboard
TypeScript type is any
Hi,
I get this error:
Error: src/app/runDashboard/custom-items/funnel.ts:10:26 - error TS7016: Could not find a declaration file for module 'd3-funnel'. '../node_modules/d3-funnel/dist/d3-funnel.js' implicitly has an 'any' type.
Try npm i --save-dev @types/d3-funnel
if it exists or add a new declaration (.d.ts) file containing declare module 'd3-funnel';
How to fix it?
I am not very familiar with TypeScript as I do not use it. I merged in a TypeScript index file at the request of another contributor but if anyone else has an idea of what may be causing this issue I am open to merging a fix.
Can you release a new version? The file was added in July but the last release was in June
I released a new version with the TypeScript index file. Do not know if this will resolve things for TypeScript users.
Thank you! That silenced the error but unfortunately that still has no types. It'd be great to see this library typed.
I am open to any pull request makes the project more accessible to TypeScript users. As I do not use TypeScript myself, I am not exactly familiar with the process.