-
Notifications
You must be signed in to change notification settings - Fork 132
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 ts files that import dependent classes? #326
Comments
you can check my solution if it will help |
Thanks, I'm trying to tweak that to work with the minor modifications I had. It is generating .ts files but it's not importing anything. I had tried removing the bits for IncludeClass/IncludeEnums since my model classes didn't end with Model, but even when I renamed one to end with Model and retained those it still didn't produce any import statements. |
I believe I wasn't actually triggering the correct code to run. When I changed that, it is giving me the error 10:40:35.168 ERROR: Error rendering template. Cannot get identifier 'GenerateTypeInit'. Source path: CollectionModel.cs That class just looks like
|
hi I will try to dig into this on the weekend and I will get back to you |
hi - sorry for long delay on last line please add finishing } you can start from here |
Perhaps I'm just doing something incorrectly, but if I have a cs class like
Similarly there is a .cs file for Collections.
then the generated code is like so
The Collections.ts is generated but not imported. Is it wrong to think it should be? Is there a way to configure this?
The text was updated successfully, but these errors were encountered: