flowchart.js icon indicating copy to clipboard operation
flowchart.js copied to clipboard

how to use this in typescript?

Open fogjoe opened this issue 2 years ago • 1 comments

Nowdays, i plan to use in vue3, typescript, vite, but when i install the flowchart, it tips me to install the type, so i install the type package, but the error occurs: image and my dependencies are as follows: image how can solve this problem? Or need i to use other chart libraries?

fogjoe avatar Aug 31 '23 02:08 fogjoe

flowchart.js has no types and since TypeScript is a superset of JavaScript, there should be no problem

adrai avatar Aug 31 '23 16:08 adrai

@liwei478 You installed wrong package: install flowchart.js instead of flowchart.

wirekang avatar Feb 01 '24 07:02 wirekang

@adrai Looks like you forgot that somebody added types for this awesome project(4 years ago 👍🏼). https://github.com/adrai/flowchart.js/blob/master/types/index.d.ts
https://github.com/adrai/flowchart.js/pull/212

wirekang avatar Feb 01 '24 07:02 wirekang

You're right... I forgot... too many open source projects 🤣

adrai avatar Feb 01 '24 07:02 adrai