2020-08-24 11:35:32 +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}}
|
|
|
|
|
|
|
|
{{!-- 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}}
|
2020-08-25 08:21:55 +00:00
|
|
|
{{name}}{{#if isOptional}}?{{/if}}: {{{simplifiedType}}}
|
2020-08-24 11:35:32 +00:00
|
|
|
{{/unless}}
|
|
|
|
{{/each}}
|
|
|
|
}
|
|
|
|
|
2020-08-24 21:09:57 +00:00
|
|
|
{{#if hasReturnType}}
|
2020-08-24 11:35:32 +00:00
|
|
|
export type {{name}}Output = {{{returnType.simplifiedSubType}}}
|
2020-08-24 21:09:57 +00:00
|
|
|
{{/if}}
|
2020-08-24 11:35:32 +00:00
|
|
|
|
|
|
|
{{/each}}
|