Skip to content

Commit 3ddcadf

Browse files
authored
Revert "Revert "Revert import order to fix imported class being not yet defin…" (#2603)
This reverts commit 02d860f.
1 parent 8521c65 commit 3ddcadf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/quicktype-core/src/TypeUtils.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import { EqualityMap, iterableFirst, setFilter, setSortBy, setUnion } from "collection-utils";
22

3-
// eslint-disable-next-line import/no-cycle
4-
import { type StringTypes, stringTypesTypeAttributeKind } from "./attributes/StringTypes";
53
import {
64
type CombinationKind,
75
type TypeAttributes,
86
combineTypeAttributes,
97
emptyTypeAttributes
108
} from "./attributes/TypeAttributes";
119
import { assert, assertNever, defined, panic } from "./support/Support";
10+
// eslint-disable-next-line import/no-cycle
1211
import {
1312
ArrayType,
1413
type ClassProperty,
@@ -22,6 +21,9 @@ import {
2221
UnionType,
2322
isPrimitiveStringTypeKind
2423
} from "./Type";
24+
// String types should be imported last to avoid circular dependency issues.
25+
// eslint-disable-next-line import/order
26+
import { type StringTypes, stringTypesTypeAttributeKind } from "./attributes/StringTypes";
2527

2628
export function assertIsObject(t: Type): ObjectType {
2729
if (t instanceof ObjectType) {

0 commit comments

Comments
 (0)