Skip to content

Commit

Permalink
Revert import order to fix imported class being not yet defined (#2599)
Browse files Browse the repository at this point in the history
  • Loading branch information
flovouin authored May 18, 2024
1 parent be6a937 commit 1ad532b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/quicktype-core/src/TypeUtils.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
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,
combineTypeAttributes,
emptyTypeAttributes
} from "./attributes/TypeAttributes";
import { assert, assertNever, defined, panic } from "./support/Support";
// eslint-disable-next-line import/no-cycle
import {
ArrayType,
type ClassProperty,
Expand All @@ -22,6 +21,9 @@ 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) {
Expand Down

0 comments on commit 1ad532b

Please sign in to comment.