Skip to content

fix: move @types/q to dependencies.#39

Open
b-steel wants to merge 2 commits intochargebee:masterfrom
b-steel:fix/typescript-compilation
Open

fix: move @types/q to dependencies.#39
b-steel wants to merge 2 commits intochargebee:masterfrom
b-steel:fix/typescript-compilation

Conversation

@b-steel
Copy link
Copy Markdown

@b-steel b-steel commented Aug 29, 2023

Since @types/q is listed in devDependencies then it is not installed when chargebee-typescript is installed. Projects that use chargebee-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 a Promise that is imported from the q package. Since chargebee-tyepscript is exporting this interface/type from the @types/q package it should be listed as a dependency, not a devDependency.

Ben Steel added 2 commits August 28, 2023 17:46
when `@types/q` is lited in `devDependencies` then it is not installed
when `chargebee-typescript` is installed.  Projects that use
`chargebee-typescript` can have problems with the typescript compilation
without this package and it can be very frustrating to debug.
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ihmpavel
Copy link
Copy Markdown

ihmpavel commented Jul 3, 2024

Looks like this has been added to 2.34.0 8a4e9fa#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R23-L27 and it totally breaks typings #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants