cumulus icon indicating copy to clipboard operation
cumulus copied to clipboard

Import Error: Typescript Support

Open Ikalli opened this issue 3 years ago • 2 comments

  • [x] Review the documentation: https://cumulus.tophat.cloud/dashboard/documents
  • [x] Search for existing issues: https://github.com/tophat-cloud/cumulus/issues
  • [x] Use the latest release: https://github.com/tophat-cloud/cumulus/releases
  • [ ] Provide a link to the affected event from your Cumulus account

Type + Version

  • [ ] xss
  • [ ] sqlinjection
  • [ ] core
  • [ ] other:

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!🙏

Ikalli avatar Oct 20 '21 12:10 Ikalli

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 avatar Oct 20 '21 14:10 tinyjin

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

tinyjin avatar Oct 20 '21 16:10 tinyjin