[typescript-fetch] Remove a cycle in the discriminator dependency graph. (#18503)

This commit is contained in:
Jeffrey Yasskin 2024-05-03 06:07:02 -07:00 committed by GitHub
parent 8cb23db8c0
commit 67a504a2f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 18 deletions

View File

@ -11,12 +11,9 @@ import {
{{/hasImports}} {{/hasImports}}
{{#discriminator}} {{#discriminator}}
import {
{{#discriminator.mappedModels}} {{#discriminator.mappedModels}}
{{modelName}}FromJSONTyped{{^-last}},{{/-last}} import { {{modelName}}FromJSONTyped } from './{{modelName}}{{importFileExtension}}';
{{/discriminator.mappedModels}} {{/discriminator.mappedModels}}
} from './index{{importFileExtension}}';
{{/discriminator}} {{/discriminator}}
{{>modelGenericInterfaces}} {{>modelGenericInterfaces}}

View File

@ -13,11 +13,8 @@
*/ */
import { mapValues } from '../runtime'; import { mapValues } from '../runtime';
import { import { CatFromJSONTyped } from './Cat';
CatFromJSONTyped, import { DogFromJSONTyped } from './Dog';
DogFromJSONTyped
} from './index';
/** /**
* *
* @export * @export

View File

@ -13,10 +13,7 @@
*/ */
import { mapValues } from '../runtime'; import { mapValues } from '../runtime';
import { import { ChildWithNullableFromJSONTyped } from './ChildWithNullable';
ChildWithNullableFromJSONTyped
} from './index';
/** /**
* *
* @export * @export

View File

@ -13,11 +13,8 @@
*/ */
import { mapValues } from '../runtime'; import { mapValues } from '../runtime';
import { import { CatFromJSONTyped } from './Cat';
CatFromJSONTyped, import { DogFromJSONTyped } from './Dog';
DogFromJSONTyped
} from './index';
/** /**
* *
* @export * @export