quicktype 18.0.6 → 19.0.4
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/README.md +1 -1
- package/dist/{cli/CompressedJSONFromStream.d.ts → CompressedJSONFromStream.d.ts} +1 -1
- package/dist/{cli/CompressedJSONFromStream.js → CompressedJSONFromStream.js} +2 -2
- package/dist/{cli/GraphQLIntrospection.d.ts → GraphQLIntrospection.d.ts} +0 -0
- package/dist/{cli/GraphQLIntrospection.js → GraphQLIntrospection.js} +1 -1
- package/dist/{cli/TypeSource.d.ts → TypeSource.d.ts} +2 -2
- package/dist/{cli/TypeSource.js → TypeSource.js} +0 -0
- package/dist/{cli/URLGrammar.d.ts → URLGrammar.d.ts} +0 -0
- package/dist/{cli/URLGrammar.js → URLGrammar.js} +1 -1
- package/dist/{cli/index.d.ts → index.d.ts} +1 -1
- package/dist/{cli/index.js → index.js} +4 -5
- package/package.json +61 -77
- package/dist/quicktype-core/Annotation.d.ts +0 -8
- package/dist/quicktype-core/Annotation.js +0 -16
- package/dist/quicktype-core/ConvenienceRenderer.d.ts +0 -138
- package/dist/quicktype-core/ConvenienceRenderer.js +0 -668
- package/dist/quicktype-core/DateTime.d.ts +0 -10
- package/dist/quicktype-core/DateTime.js +0 -57
- package/dist/quicktype-core/DeclarationIR.d.ts +0 -14
- package/dist/quicktype-core/DeclarationIR.js +0 -167
- package/dist/quicktype-core/EncodedMarkovChain.d.ts +0 -1
- package/dist/quicktype-core/EncodedMarkovChain.js +0 -4
- package/dist/quicktype-core/GatherNames.d.ts +0 -2
- package/dist/quicktype-core/GatherNames.js +0 -333
- package/dist/quicktype-core/Graph.d.ts +0 -12
- package/dist/quicktype-core/Graph.js +0 -220
- package/dist/quicktype-core/GraphRewriting.d.ts +0 -87
- package/dist/quicktype-core/GraphRewriting.js +0 -421
- package/dist/quicktype-core/MakeTransformations.d.ts +0 -4
- package/dist/quicktype-core/MakeTransformations.js +0 -193
- package/dist/quicktype-core/MarkovChain.d.ts +0 -15
- package/dist/quicktype-core/MarkovChain.js +0 -154
- package/dist/quicktype-core/Messages.d.ts +0 -294
- package/dist/quicktype-core/Messages.js +0 -105
- package/dist/quicktype-core/Naming.d.ts +0 -64
- package/dist/quicktype-core/Naming.js +0 -356
- package/dist/quicktype-core/Renderer.d.ts +0 -50
- package/dist/quicktype-core/Renderer.js +0 -274
- package/dist/quicktype-core/RendererOptions.d.ts +0 -71
- package/dist/quicktype-core/RendererOptions.js +0 -141
- package/dist/quicktype-core/Run.d.ts +0 -174
- package/dist/quicktype-core/Run.js +0 -393
- package/dist/quicktype-core/Source.d.ts +0 -65
- package/dist/quicktype-core/Source.js +0 -204
- package/dist/quicktype-core/TargetLanguage.d.ts +0 -34
- package/dist/quicktype-core/TargetLanguage.js +0 -66
- package/dist/quicktype-core/Transformers.d.ts +0 -209
- package/dist/quicktype-core/Transformers.js +0 -836
- package/dist/quicktype-core/Type.d.ts +0 -206
- package/dist/quicktype-core/Type.js +0 -716
- package/dist/quicktype-core/TypeBuilder.d.ts +0 -61
- package/dist/quicktype-core/TypeBuilder.js +0 -324
- package/dist/quicktype-core/TypeGraph.d.ts +0 -75
- package/dist/quicktype-core/TypeGraph.js +0 -420
- package/dist/quicktype-core/TypeUtils.d.ts +0 -33
- package/dist/quicktype-core/TypeUtils.js +0 -230
- package/dist/quicktype-core/UnifyClasses.d.ts +0 -16
- package/dist/quicktype-core/UnifyClasses.js +0 -159
- package/dist/quicktype-core/UnionBuilder.d.ts +0 -49
- package/dist/quicktype-core/UnionBuilder.js +0 -282
- package/dist/quicktype-core/attributes/AccessorNames.d.ts +0 -18
- package/dist/quicktype-core/attributes/AccessorNames.js +0 -182
- package/dist/quicktype-core/attributes/Constraints.d.ts +0 -38
- package/dist/quicktype-core/attributes/Constraints.js +0 -172
- package/dist/quicktype-core/attributes/Description.d.ts +0 -9
- package/dist/quicktype-core/attributes/Description.js +0 -97
- package/dist/quicktype-core/attributes/EnumValues.d.ts +0 -8
- package/dist/quicktype-core/attributes/EnumValues.js +0 -31
- package/dist/quicktype-core/attributes/StringTypes.d.ts +0 -28
- package/dist/quicktype-core/attributes/StringTypes.js +0 -189
- package/dist/quicktype-core/attributes/TypeAttributes.d.ts +0 -34
- package/dist/quicktype-core/attributes/TypeAttributes.js +0 -119
- package/dist/quicktype-core/attributes/TypeNames.d.ts +0 -46
- package/dist/quicktype-core/attributes/TypeNames.js +0 -274
- package/dist/quicktype-core/attributes/URIAttributes.d.ts +0 -8
- package/dist/quicktype-core/attributes/URIAttributes.js +0 -85
- package/dist/quicktype-core/index.d.ts +0 -48
- package/dist/quicktype-core/index.js +0 -180
- package/dist/quicktype-core/input/CompressedJSON.d.ts +0 -69
- package/dist/quicktype-core/input/CompressedJSON.js +0 -276
- package/dist/quicktype-core/input/FetchingJSONSchemaStore.d.ts +0 -6
- package/dist/quicktype-core/input/FetchingJSONSchemaStore.js +0 -18
- package/dist/quicktype-core/input/Inference.d.ts +0 -22
- package/dist/quicktype-core/input/Inference.js +0 -240
- package/dist/quicktype-core/input/Inputs.d.ts +0 -48
- package/dist/quicktype-core/input/Inputs.js +0 -145
- package/dist/quicktype-core/input/JSONSchemaInput.d.ts +0 -91
- package/dist/quicktype-core/input/JSONSchemaInput.js +0 -1041
- package/dist/quicktype-core/input/JSONSchemaStore.d.ts +0 -8
- package/dist/quicktype-core/input/JSONSchemaStore.js +0 -36
- package/dist/quicktype-core/input/PostmanCollection.d.ts +0 -5
- package/dist/quicktype-core/input/PostmanCollection.js +0 -60
- package/dist/quicktype-core/input/io/NodeIO.d.ts +0 -3
- package/dist/quicktype-core/input/io/NodeIO.js +0 -87
- package/dist/quicktype-core/input/io/get-stream/buffer-stream.d.ts +0 -2
- package/dist/quicktype-core/input/io/get-stream/buffer-stream.js +0 -45
- package/dist/quicktype-core/input/io/get-stream/index.d.ts +0 -9
- package/dist/quicktype-core/input/io/get-stream/index.js +0 -52
- package/dist/quicktype-core/language/All.d.ts +0 -3
- package/dist/quicktype-core/language/All.js +0 -57
- package/dist/quicktype-core/language/CPlusPlus.d.ts +0 -241
- package/dist/quicktype-core/language/CPlusPlus.js +0 -1847
- package/dist/quicktype-core/language/CSharp.d.ts +0 -201
- package/dist/quicktype-core/language/CSharp.js +0 -1850
- package/dist/quicktype-core/language/Crystal.d.ts +0 -37
- package/dist/quicktype-core/language/Crystal.js +0 -337
- package/dist/quicktype-core/language/Dart.d.ts +0 -66
- package/dist/quicktype-core/language/Dart.js +0 -576
- package/dist/quicktype-core/language/Elm.d.ts +0 -58
- package/dist/quicktype-core/language/Elm.js +0 -522
- package/dist/quicktype-core/language/Golang.d.ts +0 -51
- package/dist/quicktype-core/language/Golang.js +0 -460
- package/dist/quicktype-core/language/Haskell.d.ts +0 -56
- package/dist/quicktype-core/language/Haskell.js +0 -411
- package/dist/quicktype-core/language/JSONSchema.d.ts +0 -31
- package/dist/quicktype-core/language/JSONSchema.js +0 -169
- package/dist/quicktype-core/language/Java.d.ts +0 -125
- package/dist/quicktype-core/language/Java.js +0 -1081
- package/dist/quicktype-core/language/JavaScript.d.ts +0 -68
- package/dist/quicktype-core/language/JavaScript.js +0 -435
- package/dist/quicktype-core/language/JavaScriptPropTypes.d.ts +0 -40
- package/dist/quicktype-core/language/JavaScriptPropTypes.js +0 -213
- package/dist/quicktype-core/language/JavaScriptUnicodeMaps.d.ts +0 -2
- package/dist/quicktype-core/language/JavaScriptUnicodeMaps.js +0 -134
- package/dist/quicktype-core/language/Kotlin.d.ts +0 -109
- package/dist/quicktype-core/language/Kotlin.js +0 -832
- package/dist/quicktype-core/language/Objective-C.d.ts +0 -79
- package/dist/quicktype-core/language/Objective-C.js +0 -777
- package/dist/quicktype-core/language/Php.d.ts +0 -80
- package/dist/quicktype-core/language/Php.js +0 -702
- package/dist/quicktype-core/language/Pike.d.ts +0 -37
- package/dist/quicktype-core/language/Pike.js +0 -276
- package/dist/quicktype-core/language/Python.d.ts +0 -107
- package/dist/quicktype-core/language/Python.js +0 -969
- package/dist/quicktype-core/language/Rust.d.ts +0 -56
- package/dist/quicktype-core/language/Rust.js +0 -309
- package/dist/quicktype-core/language/Swift.d.ts +0 -96
- package/dist/quicktype-core/language/Swift.js +0 -1211
- package/dist/quicktype-core/language/TypeScriptFlow.d.ts +0 -77
- package/dist/quicktype-core/language/TypeScriptFlow.js +0 -286
- package/dist/quicktype-core/language/ruby/index.d.ts +0 -52
- package/dist/quicktype-core/language/ruby/index.js +0 -557
- package/dist/quicktype-core/language/ruby/keywords.d.ts +0 -3
- package/dist/quicktype-core/language/ruby/keywords.js +0 -358
- package/dist/quicktype-core/rewrites/CombineClasses.d.ts +0 -3
- package/dist/quicktype-core/rewrites/CombineClasses.js +0 -125
- package/dist/quicktype-core/rewrites/ExpandStrings.d.ts +0 -4
- package/dist/quicktype-core/rewrites/ExpandStrings.js +0 -143
- package/dist/quicktype-core/rewrites/FlattenStrings.d.ts +0 -3
- package/dist/quicktype-core/rewrites/FlattenStrings.js +0 -45
- package/dist/quicktype-core/rewrites/FlattenUnions.d.ts +0 -3
- package/dist/quicktype-core/rewrites/FlattenUnions.js +0 -47
- package/dist/quicktype-core/rewrites/InferMaps.d.ts +0 -3
- package/dist/quicktype-core/rewrites/InferMaps.js +0 -117
- package/dist/quicktype-core/rewrites/ReplaceObjectType.d.ts +0 -3
- package/dist/quicktype-core/rewrites/ReplaceObjectType.js +0 -60
- package/dist/quicktype-core/rewrites/ResolveIntersections.d.ts +0 -3
- package/dist/quicktype-core/rewrites/ResolveIntersections.js +0 -244
- package/dist/quicktype-core/support/Acronyms.d.ts +0 -10
- package/dist/quicktype-core/support/Acronyms.js +0 -1128
- package/dist/quicktype-core/support/Chance.d.ts +0 -38
- package/dist/quicktype-core/support/Chance.js +0 -2146
- package/dist/quicktype-core/support/Converters.d.ts +0 -6
- package/dist/quicktype-core/support/Converters.js +0 -16
- package/dist/quicktype-core/support/Strings.d.ts +0 -44
- package/dist/quicktype-core/support/Strings.js +0 -525
- package/dist/quicktype-core/support/Support.d.ts +0 -29
- package/dist/quicktype-core/support/Support.js +0 -162
- package/dist/quicktype-graphql-input/GraphQLSchema.d.ts +0 -645
- package/dist/quicktype-graphql-input/GraphQLSchema.js +0 -39
- package/dist/quicktype-graphql-input/index.d.ts +0 -17
- package/dist/quicktype-graphql-input/index.js +0 -407
- package/dist/quicktype-typescript-input/index.d.ts +0 -2
- package/dist/quicktype-typescript-input/index.js +0 -98
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import { TypeReconstituter, BaseGraphRewriteBuilder } from "./GraphRewriting";
|
|
2
|
-
import { TypeNames } from "./attributes/TypeNames";
|
|
3
|
-
import { TypeAttributes } from "./attributes/TypeAttributes";
|
|
4
|
-
import { TypeRef, TypeGraph } from "./TypeGraph";
|
|
5
|
-
import { uriInferenceAttributesProducer } from "./attributes/URIAttributes";
|
|
6
|
-
/**
|
|
7
|
-
* `jsonSchema` is the `format` to be used to represent this string type in
|
|
8
|
-
* JSON Schema. It's ok to "invent" a new one if the JSON Schema standard doesn't
|
|
9
|
-
* have that particular type yet.
|
|
10
|
-
*
|
|
11
|
-
* For transformed type kinds that map to an existing primitive type, `primitive`
|
|
12
|
-
* must specify that type kind.
|
|
13
|
-
*/
|
|
14
|
-
export type TransformedStringTypeTargets = {
|
|
15
|
-
jsonSchema: string;
|
|
16
|
-
primitive: PrimitiveNonStringTypeKind | undefined;
|
|
17
|
-
attributesProducer?: (s: string) => TypeAttributes;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* All the transformed string type kinds and the JSON Schema formats and
|
|
21
|
-
* primitive type kinds they map to. Not all transformed string types map to
|
|
22
|
-
* primitive types. Date-time types, for example, stand on their own, but
|
|
23
|
-
* stringified integers map to integers.
|
|
24
|
-
*/
|
|
25
|
-
declare const transformedStringTypeTargetTypeKinds: {
|
|
26
|
-
date: {
|
|
27
|
-
jsonSchema: string;
|
|
28
|
-
primitive: undefined;
|
|
29
|
-
};
|
|
30
|
-
time: {
|
|
31
|
-
jsonSchema: string;
|
|
32
|
-
primitive: undefined;
|
|
33
|
-
};
|
|
34
|
-
"date-time": {
|
|
35
|
-
jsonSchema: string;
|
|
36
|
-
primitive: undefined;
|
|
37
|
-
};
|
|
38
|
-
uuid: {
|
|
39
|
-
jsonSchema: string;
|
|
40
|
-
primitive: undefined;
|
|
41
|
-
};
|
|
42
|
-
uri: {
|
|
43
|
-
jsonSchema: string;
|
|
44
|
-
primitive: undefined;
|
|
45
|
-
attributesProducer: typeof uriInferenceAttributesProducer;
|
|
46
|
-
};
|
|
47
|
-
"integer-string": TransformedStringTypeTargets;
|
|
48
|
-
"bool-string": TransformedStringTypeTargets;
|
|
49
|
-
};
|
|
50
|
-
export declare const transformedStringTypeTargetTypeKindsMap: Map<string, TransformedStringTypeTargets>;
|
|
51
|
-
export type TransformedStringTypeKind = keyof typeof transformedStringTypeTargetTypeKinds;
|
|
52
|
-
export type PrimitiveStringTypeKind = "string" | TransformedStringTypeKind;
|
|
53
|
-
export type PrimitiveNonStringTypeKind = "none" | "any" | "null" | "bool" | "integer" | "double";
|
|
54
|
-
export type PrimitiveTypeKind = PrimitiveNonStringTypeKind | PrimitiveStringTypeKind;
|
|
55
|
-
export type NamedTypeKind = "class" | "enum" | "union";
|
|
56
|
-
export type TypeKind = PrimitiveTypeKind | NamedTypeKind | "array" | "object" | "map" | "intersection";
|
|
57
|
-
export type ObjectTypeKind = "object" | "map" | "class";
|
|
58
|
-
export declare const transformedStringTypeKinds: ReadonlySet<"date" | "time" | "date-time" | "uuid" | "uri" | "integer-string" | "bool-string">;
|
|
59
|
-
export declare function isPrimitiveStringTypeKind(kind: string): kind is PrimitiveStringTypeKind;
|
|
60
|
-
export declare function targetTypeKindForTransformedStringTypeKind(kind: PrimitiveStringTypeKind): PrimitiveNonStringTypeKind | undefined;
|
|
61
|
-
export declare function isNumberTypeKind(kind: TypeKind): kind is "integer" | "double";
|
|
62
|
-
export declare function isPrimitiveTypeKind(kind: TypeKind): kind is PrimitiveTypeKind;
|
|
63
|
-
export declare class TypeIdentity {
|
|
64
|
-
private readonly _kind;
|
|
65
|
-
private readonly _components;
|
|
66
|
-
private readonly _hashCode;
|
|
67
|
-
constructor(_kind: TypeKind, _components: ReadonlyArray<any>);
|
|
68
|
-
equals(other: any): boolean;
|
|
69
|
-
hashCode(): number;
|
|
70
|
-
}
|
|
71
|
-
export type MaybeTypeIdentity = TypeIdentity | undefined;
|
|
72
|
-
export declare abstract class Type {
|
|
73
|
-
readonly typeRef: TypeRef;
|
|
74
|
-
protected readonly graph: TypeGraph;
|
|
75
|
-
abstract readonly kind: TypeKind;
|
|
76
|
-
constructor(typeRef: TypeRef, graph: TypeGraph);
|
|
77
|
-
get index(): number;
|
|
78
|
-
abstract getNonAttributeChildren(): Set<Type>;
|
|
79
|
-
getChildren(): ReadonlySet<Type>;
|
|
80
|
-
getAttributes(): TypeAttributes;
|
|
81
|
-
get hasNames(): boolean;
|
|
82
|
-
getNames(): TypeNames;
|
|
83
|
-
getCombinedName(): string;
|
|
84
|
-
abstract get isNullable(): boolean;
|
|
85
|
-
abstract isPrimitive(): this is PrimitiveType;
|
|
86
|
-
abstract get identity(): MaybeTypeIdentity;
|
|
87
|
-
abstract reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>, canonicalOrder: boolean): void;
|
|
88
|
-
get debugPrintKind(): string;
|
|
89
|
-
equals(other: any): boolean;
|
|
90
|
-
hashCode(): number;
|
|
91
|
-
protected abstract structuralEqualityStep(other: Type, conflateNumbers: boolean, queue: (a: Type, b: Type) => boolean): boolean;
|
|
92
|
-
structurallyCompatible(other: Type, conflateNumbers?: boolean): boolean;
|
|
93
|
-
getParentTypes(): ReadonlySet<Type>;
|
|
94
|
-
getAncestorsNotInSet(set: ReadonlySet<TypeRef>): ReadonlySet<Type>;
|
|
95
|
-
}
|
|
96
|
-
export declare function primitiveTypeIdentity(kind: PrimitiveTypeKind, attributes: TypeAttributes): MaybeTypeIdentity;
|
|
97
|
-
export declare class PrimitiveType extends Type {
|
|
98
|
-
readonly kind: PrimitiveTypeKind;
|
|
99
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, kind: PrimitiveTypeKind);
|
|
100
|
-
get isNullable(): boolean;
|
|
101
|
-
isPrimitive(): this is PrimitiveType;
|
|
102
|
-
getNonAttributeChildren(): Set<Type>;
|
|
103
|
-
get identity(): MaybeTypeIdentity;
|
|
104
|
-
reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>): void;
|
|
105
|
-
protected structuralEqualityStep(_other: Type, _conflateNumbers: boolean, _queue: (a: Type, b: Type) => boolean): boolean;
|
|
106
|
-
}
|
|
107
|
-
export declare function arrayTypeIdentity(attributes: TypeAttributes, itemsRef: TypeRef): MaybeTypeIdentity;
|
|
108
|
-
export declare class ArrayType extends Type {
|
|
109
|
-
private _itemsRef?;
|
|
110
|
-
readonly kind = "array";
|
|
111
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, _itemsRef?: number | undefined);
|
|
112
|
-
setItems(itemsRef: TypeRef): undefined;
|
|
113
|
-
private getItemsRef;
|
|
114
|
-
get items(): Type;
|
|
115
|
-
getNonAttributeChildren(): Set<Type>;
|
|
116
|
-
get isNullable(): boolean;
|
|
117
|
-
isPrimitive(): this is PrimitiveType;
|
|
118
|
-
get identity(): MaybeTypeIdentity;
|
|
119
|
-
reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>): void;
|
|
120
|
-
protected structuralEqualityStep(other: ArrayType, _conflateNumbers: boolean, queue: (a: Type, b: Type) => boolean): boolean;
|
|
121
|
-
}
|
|
122
|
-
export declare class GenericClassProperty<T> {
|
|
123
|
-
readonly typeData: T;
|
|
124
|
-
readonly isOptional: boolean;
|
|
125
|
-
constructor(typeData: T, isOptional: boolean);
|
|
126
|
-
equals(other: any): boolean;
|
|
127
|
-
hashCode(): number;
|
|
128
|
-
}
|
|
129
|
-
export declare class ClassProperty extends GenericClassProperty<TypeRef> {
|
|
130
|
-
readonly graph: TypeGraph;
|
|
131
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, isOptional: boolean);
|
|
132
|
-
get typeRef(): TypeRef;
|
|
133
|
-
get type(): Type;
|
|
134
|
-
}
|
|
135
|
-
export declare function classTypeIdentity(attributes: TypeAttributes, properties: ReadonlyMap<string, ClassProperty>): MaybeTypeIdentity;
|
|
136
|
-
export declare function mapTypeIdentify(attributes: TypeAttributes, additionalPropertiesRef: TypeRef | undefined): MaybeTypeIdentity;
|
|
137
|
-
export declare class ObjectType extends Type {
|
|
138
|
-
readonly kind: ObjectTypeKind;
|
|
139
|
-
readonly isFixed: boolean;
|
|
140
|
-
private _properties;
|
|
141
|
-
private _additionalPropertiesRef;
|
|
142
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, kind: ObjectTypeKind, isFixed: boolean, _properties: ReadonlyMap<string, ClassProperty> | undefined, _additionalPropertiesRef: TypeRef | undefined);
|
|
143
|
-
setProperties(properties: ReadonlyMap<string, ClassProperty>, additionalPropertiesRef: TypeRef | undefined): void;
|
|
144
|
-
getProperties(): ReadonlyMap<string, ClassProperty>;
|
|
145
|
-
getSortedProperties(): ReadonlyMap<string, ClassProperty>;
|
|
146
|
-
private getAdditionalPropertiesRef;
|
|
147
|
-
getAdditionalProperties(): Type | undefined;
|
|
148
|
-
getNonAttributeChildren(): Set<Type>;
|
|
149
|
-
get isNullable(): boolean;
|
|
150
|
-
isPrimitive(): this is PrimitiveType;
|
|
151
|
-
get identity(): MaybeTypeIdentity;
|
|
152
|
-
reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>, canonicalOrder: boolean): void;
|
|
153
|
-
protected structuralEqualityStep(other: ObjectType, _conflateNumbers: boolean, queue: (a: Type, b: Type) => boolean): boolean;
|
|
154
|
-
}
|
|
155
|
-
export declare class ClassType extends ObjectType {
|
|
156
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, isFixed: boolean, properties: ReadonlyMap<string, ClassProperty> | undefined);
|
|
157
|
-
}
|
|
158
|
-
export declare class MapType extends ObjectType {
|
|
159
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, valuesRef: TypeRef | undefined);
|
|
160
|
-
get values(): Type;
|
|
161
|
-
}
|
|
162
|
-
export declare function enumTypeIdentity(attributes: TypeAttributes, cases: ReadonlySet<string>): MaybeTypeIdentity;
|
|
163
|
-
export declare class EnumType extends Type {
|
|
164
|
-
readonly cases: ReadonlySet<string>;
|
|
165
|
-
readonly kind = "enum";
|
|
166
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, cases: ReadonlySet<string>);
|
|
167
|
-
get isNullable(): boolean;
|
|
168
|
-
isPrimitive(): this is PrimitiveType;
|
|
169
|
-
get identity(): MaybeTypeIdentity;
|
|
170
|
-
getNonAttributeChildren(): Set<Type>;
|
|
171
|
-
reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>): void;
|
|
172
|
-
protected structuralEqualityStep(other: EnumType, _conflateNumbers: boolean, _queue: (a: Type, b: Type) => void): boolean;
|
|
173
|
-
}
|
|
174
|
-
export declare function setOperationCasesEqual(typesA: Iterable<Type>, typesB: Iterable<Type>, conflateNumbers: boolean, membersEqual: (a: Type, b: Type) => boolean): boolean;
|
|
175
|
-
export declare function setOperationTypeIdentity(kind: TypeKind, attributes: TypeAttributes, memberRefs: ReadonlySet<TypeRef>): MaybeTypeIdentity;
|
|
176
|
-
export declare function unionTypeIdentity(attributes: TypeAttributes, memberRefs: ReadonlySet<TypeRef>): MaybeTypeIdentity;
|
|
177
|
-
export declare function intersectionTypeIdentity(attributes: TypeAttributes, memberRefs: ReadonlySet<TypeRef>): MaybeTypeIdentity;
|
|
178
|
-
export declare abstract class SetOperationType extends Type {
|
|
179
|
-
readonly kind: TypeKind;
|
|
180
|
-
private _memberRefs?;
|
|
181
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, kind: TypeKind, _memberRefs?: ReadonlySet<number> | undefined);
|
|
182
|
-
setMembers(memberRefs: ReadonlySet<TypeRef>): void;
|
|
183
|
-
protected getMemberRefs(): ReadonlySet<TypeRef>;
|
|
184
|
-
get members(): ReadonlySet<Type>;
|
|
185
|
-
get sortedMembers(): ReadonlySet<Type>;
|
|
186
|
-
getNonAttributeChildren(): Set<Type>;
|
|
187
|
-
isPrimitive(): this is PrimitiveType;
|
|
188
|
-
get identity(): MaybeTypeIdentity;
|
|
189
|
-
protected reconstituteSetOperation<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>, canonicalOrder: boolean, getType: (members: ReadonlySet<TypeRef> | undefined) => void): void;
|
|
190
|
-
protected structuralEqualityStep(other: SetOperationType, conflateNumbers: boolean, queue: (a: Type, b: Type) => boolean): boolean;
|
|
191
|
-
}
|
|
192
|
-
export declare class IntersectionType extends SetOperationType {
|
|
193
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, memberRefs?: ReadonlySet<TypeRef>);
|
|
194
|
-
get isNullable(): boolean;
|
|
195
|
-
reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>, canonicalOrder: boolean): void;
|
|
196
|
-
}
|
|
197
|
-
export declare class UnionType extends SetOperationType {
|
|
198
|
-
constructor(typeRef: TypeRef, graph: TypeGraph, memberRefs?: ReadonlySet<TypeRef>);
|
|
199
|
-
setMembers(memberRefs: ReadonlySet<TypeRef>): void;
|
|
200
|
-
get stringTypeMembers(): ReadonlySet<Type>;
|
|
201
|
-
findMember(kind: TypeKind): Type | undefined;
|
|
202
|
-
get isNullable(): boolean;
|
|
203
|
-
get isCanonical(): boolean;
|
|
204
|
-
reconstitute<T extends BaseGraphRewriteBuilder>(builder: TypeReconstituter<T>, canonicalOrder: boolean): void;
|
|
205
|
-
}
|
|
206
|
-
export {};
|