Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add --namespace CLI option #22

Merged
merged 27 commits into from
Apr 16, 2020
Merged

Conversation

zernie
Copy link
Contributor

@zernie zernie commented Mar 27, 2020

Add --namespace N, -n Wrap types in namespace (disabled by default) option that will wrap the generated types in a namespace


Example:

$ npx contentful-typescript-codegen --output ./contentful.d.ts -n Codegen

declare namespace Codegen {
...
}

export as namespace Codegen
export = Codegen

This change is Reviewable

@zernie
Copy link
Contributor Author

zernie commented Mar 31, 2020

@stevenpetryk I've removed the dependence on #23

@stevenpetryk
Copy link
Contributor

Thanks again!

@stevenpetryk stevenpetryk merged commit b05c174 into intercom:master Apr 16, 2020
@stevenpetryk
Copy link
Contributor

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants