tophat-cloud / cumulus

Cumulus is web application weakness monitoring, works with just 3 code lines
https://cumulus.tophat.cloud
BSD 3-Clause "New" or "Revised" License
41 stars 3 forks source link

Import Error: Typescript Support #2

Open Ikalli opened 2 years ago

Ikalli commented 2 years ago

Type + Version

Version:

0.0.1

Description

Nice module, but it doesn't seem to support TypeScript

Could not find a declaration file for module 'cumulus'. 'p:/next-test/test-for-cumulus/node_modules/cumulus/src/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/cumulus` if it exists or add a new declaration (.d.ts) file containing `declare module 'cumulus';

Please make type modules if you can!🙏

tinyjin commented 2 years ago

oh, yeah! Its great point.

we never thought about support to typescript based project. I love typescript, too.

actually, this version I used only javascript because of our team had the deadline, you know lol.

alright, Im gonna make it support typescript ASAP.

tinyjin commented 2 years ago

For suggestion @Ikalli There is one way to use cumulus SDK with typescript.

you can use with @ts-ignore. plz reference this one!

https://github.com/tophat-cloud/cumulus/tree/main/examples/angular