Open b-steel opened 1 year ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Looks like this has been added to 2.34.0
https://github.com/chargebee/chargebee-typescript/commit/8a4e9fa1a886565705650ac72120aa0842a73dc0#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R23-L27 and it totally breaks typings https://github.com/chargebee/chargebee-typescript/issues/55
Since
@types/q
is listed indevDependencies
then it is not installed whenchargebee-typescript
is installed. Projects that usechargebee-typescript
can have problems with the typescript compilation without this package and it can be very frustrating to debug.The
RequestWrapper
components.request()
method returns aPromise
that is imported from theq
package. Sincechargebee-tyepscript
is exporting this interface/type from the@types/q
package it should be listed as a dependency, not a devDependency.