create-client
create-client copied to clipboard
fix js identifiers containing dashes
| Q | A |
|---|---|
| Branch? | main |
| Tickets | |
| License | MIT |
| Doc PR |
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.