From bf117c4a7620269dd22f4fbec146229bc333b5da Mon Sep 17 00:00:00 2001 From: David Siegel Date: Sat, 18 May 2024 10:58:53 -0700 Subject: [PATCH] Revert "Revert import order to fix imported class being not yet defined (#2599)" This reverts commit 1ad532b5b34d7bd4e6ceb87985a9e79275fb563b. --- packages/quicktype-core/src/TypeUtils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/quicktype-core/src/TypeUtils.ts b/packages/quicktype-core/src/TypeUtils.ts index cc150de8e..b2ae456f7 100644 --- a/packages/quicktype-core/src/TypeUtils.ts +++ b/packages/quicktype-core/src/TypeUtils.ts @@ -1,5 +1,7 @@ import { EqualityMap, iterableFirst, setFilter, setSortBy, setUnion } from "collection-utils"; +// eslint-disable-next-line import/no-cycle +import { type StringTypes, stringTypesTypeAttributeKind } from "./attributes/StringTypes"; import { type CombinationKind, type TypeAttributes, @@ -7,7 +9,6 @@ import { emptyTypeAttributes } from "./attributes/TypeAttributes"; import { assert, assertNever, defined, panic } from "./support/Support"; -// eslint-disable-next-line import/no-cycle import { ArrayType, type ClassProperty, @@ -21,9 +22,6 @@ import { UnionType, isPrimitiveStringTypeKind } from "./Type"; -// String types should be imported last to avoid circular dependency issues. -// eslint-disable-next-line import/order -import { type StringTypes, stringTypesTypeAttributeKind } from "./attributes/StringTypes"; export function assertIsObject(t: Type): ObjectType { if (t instanceof ObjectType) {