bumbeishvili / d3-v6-tip

A famous d3-tip lib adapted to the latest - d3.v6 version.
MIT License
33 stars 9 forks source link

Could not find a declaration file for module 'd3-v6-tip' #8

Open chlumpchatkupt opened 3 years ago

chlumpchatkupt commented 3 years ago

Expected behavior: no errors when importing:

import { tip as d3tip } from 'd3-v6-tip';

Actual behavior: error:

Could not find a declaration file for module 'd3-v6-tip'. '/usr/src/app/node_modules/d3-v6-tip/build/d3-v6-tip.js' implicitly has an 'any' type.
web_1  |   Try `npm i --save-dev @types/d3-v6-tip` if it exists or add a new declaration (.d.ts) file containing `declare module 'd3-v6-tip';`
bumbeishvili commented 3 years ago

Can you provide reproducible example? You can use stackblitz to create sample application. I am not sure if this is a typescript issue or issue with d3-v6-tip itself