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

have option to add namespace and own commenting to generated types #96

Open
maapteh opened this issue Aug 23, 2021 · 0 comments
Open

have option to add namespace and own commenting to generated types #96

maapteh opened this issue Aug 23, 2021 · 0 comments

Comments

@maapteh
Copy link

maapteh commented Aug 23, 2021

Hi, i now do post processing with your generated file. But it would be nice to have a namespace option with this tooling itself. There are multiple routes to it, so im giving two examples:

With a prefix and suffix option i would be able to add my own comments, and wrap it all in a namespace :)

Rationale: i export directly into a .d.ts file and i just like to be able to use: ContentfullRaw.IComponentBanner with no need to import anything in my application. Also when not in a 'd.ts' file a namespace would still be nice!

/* eslint-disable */
/* AUTO GENERATED DO NOT TOUCH, see tooling/xx/xx */
declare namespace ContentfullRaw {
  export interface IComponentBanner {
    sys: {
      id: string;
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

No branches or pull requests

1 participant