Skip to content

Commit 5681036

Browse files
committed
fix: correct import formatting in mustache templates and TypeScript files
1 parent e80b263 commit 5681036

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

modules/openapi-generator/src/main/resources/typescript-fetch/modelOneOf.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{{#hasImports}}
22
{{#oneOfArrays}}
3-
import type { {{{.}}} } from './{{.}}{{importFileExtension}}';
4-
import {
3+
import type { {{{.}}} } from './{{.}}{{importFileExtension}}';
4+
import {
55
instanceOf{{{.}}},
66
{{{.}}}FromJSON,
77
{{{.}}}FromJSONTyped,
88
{{{.}}}ToJSON,
9-
} from './{{.}}{{importFileExtension}}';
9+
} from './{{.}}{{importFileExtension}}';
1010
{{/oneOfArrays}}
1111
{{#oneOfModels}}
1212
import type { {{{.}}} } from './{{.}}{{importFileExtension}}';

samples/client/petstore/typescript-fetch/builds/oneOf/models/TestArrayResponse.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
* Do not edit the class manually.
1313
*/
1414

15-
import type { TestA } from './TestA';
16-
import {
15+
import type { TestA } from './TestA';
16+
import {
1717
instanceOfTestA,
1818
TestAFromJSON,
1919
TestAFromJSONTyped,
2020
TestAToJSON,
21-
} from './TestA';
22-
import type { TestB } from './TestB';
23-
import {
21+
} from './TestA';
22+
import type { TestB } from './TestB';
23+
import {
2424
instanceOfTestB,
2525
TestBFromJSON,
2626
TestBFromJSONTyped,
2727
TestBToJSON,
28-
} from './TestB';
28+
} from './TestB';
2929

3030
/**
3131
* @type TestArrayResponse

0 commit comments

Comments
 (0)