jin-qu/jinqu-odata-cli

Generating interfaces not working

Opened this issue · 0 comments

The value of 'useInterfaces' inside #each EntityType loop is undefined.
Handlebars requires using ../useInterfaces or @root.useInterfaces to reference parent (root) context scope inside #each, so
{{getClassDecorator entityType}}export {{#if @root.useInterfaces}}interface{{else}}class{{/if}} {{$.Name}} {