nope/lib/templates/functionSchema.handlebars

23 lines
578 B
Handlebars
Raw Permalink Normal View History

2020-09-07 21:22:49 +00:00
// Automatic Genearted Interface Description for Backendclass: "{{className}}"
// To update run `npm run build:backend`
{{!-- Import the External Types --}}
{{#if imports.required}}
{{{imports.content}}}
{{/if}}
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}}