forked from loafle/openapi-generator-original
Type import for oneOf models in ts-fetch template (#16828)
Required for some compilation modes of TS, specifically for use with SvelteKit.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{#hasImports}}
|
||||
{{#oneOf}}
|
||||
import type { {{{.}}} } from './{{.}}{{importFileExtension}}';
|
||||
import {
|
||||
{{{.}}},
|
||||
instanceOf{{{.}}},
|
||||
{{{.}}}FromJSON,
|
||||
{{{.}}}FromJSONTyped,
|
||||
|
||||
Reference in New Issue
Block a user