nope/lib/templates/classSchema.handlebars
Martin Karkowski 9b6885b796 rename file
2020-09-07 23:22:36 +02:00

28 lines
681 B
Handlebars

// Automatic Genearted Interface Description for Backendclass: "{{className}}"
// To update run `npm run build:backend`
{{!-- Import the External Types --}}
{{#if imports.required}}
{{{imports.content}}}
{{/if}}
{{!-- Iterate over the Methods to define the input and Return Types --}}
{{#each methods}}
export interface {{name}}Input {
{{#each params}}
{{authorDescription}}
{{#if isBaseType}}
{{name}}{{#if isOptional}}?{{/if}}: {{{originalCode}}}
{{/if}}
{{#unless isBaseType}}
{{name}}{{#if isOptional}}?{{/if}}: {{{simplifiedType}}}
{{/unless}}
{{/each}}
}
{{#if hasReturnType}}
export type {{name}}Output = {{{returnType.simplifiedSubType}}}
{{/if}}
{{/each}}