mirror of
https://github.com/ferdikoomen/openapi-typescript-codegen.git
synced 2025-12-08 20:16:21 +00:00
- Simplified template
This commit is contained in:
parent
949f6513da
commit
610ef03639
@ -1,7 +1,7 @@
|
||||
{{~#equals this 'File'~}}
|
||||
{{~#equals base 'File'~}}
|
||||
{{~#equals @root.httpClient 'fetch'}}Blob{{/equals~}}
|
||||
{{~#equals @root.httpClient 'xhr'}}Blob{{/equals~}}
|
||||
{{~#equals @root.httpClient 'node'}}Buffer | ArrayBuffer | ArrayBufferView{{/equals~}}
|
||||
{{~else~}}
|
||||
{{this}}
|
||||
{{base}}
|
||||
{{~/equals~}}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{{~#if link~}}
|
||||
Array<{{>type link}}>{{>isNullable}}
|
||||
{{~else~}}
|
||||
Array<{{>base base}}>{{>isNullable}}
|
||||
Array<{{>base}}>{{>isNullable}}
|
||||
{{~/if~}}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
{{~#if link~}}
|
||||
Record<string, {{>type link}}>{{>isNullable}}
|
||||
{{~else~}}
|
||||
Record<string, {{>base base}}>{{>isNullable}}
|
||||
Record<string, {{>base}}>{{>isNullable}}
|
||||
{{~/if~}}
|
||||
|
||||
@ -1 +1 @@
|
||||
{{>base base}}{{>isNullable}}
|
||||
{{>base}}{{>isNullable}}
|
||||
|
||||
@ -1 +1 @@
|
||||
{{>base base}}{{>isNullable}}
|
||||
{{>base}}{{>isNullable}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user