Skip to content

Commit

Permalink
Revert "Revert "Revert import order to fix imported class being not y…
Browse files Browse the repository at this point in the history
…et defin…" (#2603)

This reverts commit 02d860f.
  • Loading branch information
dvdsgl committed May 18, 2024
1 parent 8521c65 commit 3ddcadf
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 3ddcadf

Please sign in to comment.