Closed 4rthem closed 2 years ago
With the following entity:
resources: App\Entity\FooBar: shortName: foo-bar
typescript template outputs invalid JS:
type foo-bar { // ... }
The following PR replaces dashes to underscores to produce valid JS code.
Thanks for this PR. I've made a little change: when the field name is an invalid identifier, it will be quoted instead.
With the following entity:
typescript template outputs invalid JS:
The following PR replaces dashes to underscores to produce valid JS code.