Closed hatpick closed 6 years ago
@hatpick, If you want to use this lib for example with Angular and Typescript, please put .js file with this lib outside "src" folder, and then include it in .angular-cli.json in "scripts" section ex:
"scripts": ["../wordcloud.js"]
Details: https://stackoverflow.com/a/42001600
@masscrx I created a typing for it as the following:
declare module 'd3-cloud' {
let cloud: Function;
export = cloud;
}
then imported it:
import * as d3Cloud from 'd3-cloud';
btw, I'm using it in react+typescript.
Hello,
Can this lib be used with typescript? Is there any typing file?
Thanks,