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

Generate pure typings in different file #10

Closed
kfrancis opened this issue Apr 12, 2016 · 1 comment
Closed

Generate pure typings in different file #10

kfrancis opened this issue Apr 12, 2016 · 1 comment

Comments

@kfrancis
Copy link
Contributor

Hey,

One question - I'd like to generate the enum declaration in non-definition files (just .ts) while all the interfaces go into .d.ts files. Is that possible?

@pavel-b-novikov
Copy link
Member

Yes.

  • Enable RtDivideTypesAmongFiles in settings.xml
  • Use [TsFile] attribute or .ExportAs*() .ExportTo fluent call

Warning! You will have to manually specify .ExportTo or [TsFile] for all of your interfaces because by default it will split each class to separate file located in folders that corresponds to namespaces

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

2 participants