quicktype-core 23.0.166 → 23.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/TypeUtils.d.ts +1 -1
- package/dist/TypeUtils.js +4 -2
- package/package.json +1 -1
package/dist/TypeUtils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type StringTypes } from "./attributes/StringTypes";
|
|
2
1
|
import { type CombinationKind, type TypeAttributes } from "./attributes/TypeAttributes";
|
|
3
2
|
import { ArrayType, type ClassProperty, ClassType, EnumType, MapType, ObjectType, type PrimitiveType, type SetOperationType, type Type, UnionType } from "./Type";
|
|
3
|
+
import { type StringTypes } from "./attributes/StringTypes";
|
|
4
4
|
export declare function assertIsObject(t: Type): ObjectType;
|
|
5
5
|
export declare function assertIsClass(t: Type): ClassType;
|
|
6
6
|
export declare function setOperationMembersRecursively<T extends SetOperationType>(setOperations: T | T[], combinationKind: CombinationKind | undefined): [ReadonlySet<Type>, TypeAttributes];
|
package/dist/TypeUtils.js
CHANGED
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.matchCompoundType = exports.matchType = exports.matchTypeExhaustive = exports.stringTypesForType = exports.directlyReachableSingleNamedType = exports.directlyReachableTypes = exports.separateNamedTypes = exports.isNamedType = exports.getNullAsOptional = exports.nonNullTypeCases = exports.nullableFromUnion = exports.removeNullFromType = exports.removeNullFromUnion = exports.isAnyOrNull = exports.combineTypeAttributesOfTypes = exports.makeGroupsToFlatten = exports.setOperationMembersRecursively = exports.assertIsClass = exports.assertIsObject = void 0;
|
|
4
4
|
const collection_utils_1 = require("collection-utils");
|
|
5
|
-
// eslint-disable-next-line import/no-cycle
|
|
6
|
-
const StringTypes_1 = require("./attributes/StringTypes");
|
|
7
5
|
const TypeAttributes_1 = require("./attributes/TypeAttributes");
|
|
8
6
|
const Support_1 = require("./support/Support");
|
|
7
|
+
// eslint-disable-next-line import/no-cycle
|
|
9
8
|
const Type_1 = require("./Type");
|
|
9
|
+
// String types should be imported last to avoid circular dependency issues.
|
|
10
|
+
// eslint-disable-next-line import/order
|
|
11
|
+
const StringTypes_1 = require("./attributes/StringTypes");
|
|
10
12
|
function assertIsObject(t) {
|
|
11
13
|
if (t instanceof Type_1.ObjectType) {
|
|
12
14
|
return t;
|