typia 4.0.0 → 4.0.1
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/lib/programmers/ApplicationProgrammer.js +1 -1
- package/lib/programmers/internal/application_array.js +19 -41
- package/lib/programmers/internal/application_array.js.map +1 -1
- package/lib/programmers/internal/application_definition.d.ts +1 -1
- package/lib/programmers/internal/application_definition.js +8 -8
- package/lib/programmers/internal/application_definition.js.map +1 -1
- package/lib/programmers/internal/application_native.js +3 -3
- package/lib/programmers/internal/application_object.js +4 -4
- package/lib/programmers/internal/application_schema.js +3 -3
- package/lib/programmers/internal/application_schema.js.map +1 -1
- package/lib/programmers/internal/application_tuple.js +8 -30
- package/lib/programmers/internal/application_tuple.js.map +1 -1
- package/lib/schemas/IJsonComponents.d.ts +1 -12
- package/lib/schemas/IJsonSchema.d.ts +1 -1
- package/package.json +1 -1
- package/src/IRandomGenerator.ts +34 -34
- package/src/factories/IdentifierFactory.ts +65 -65
- package/src/factories/MetadataCollection.ts +254 -254
- package/src/factories/MetadataFactory.ts +40 -40
- package/src/factories/MetadataTagFactory.ts +300 -300
- package/src/factories/internal/metadata/emplace_metadata_array.ts +34 -34
- package/src/factories/internal/metadata/emplace_metadata_definition.ts +35 -35
- package/src/factories/internal/metadata/emplace_metadata_object.ts +142 -142
- package/src/factories/internal/metadata/emplace_metadata_tuple.ts +50 -50
- package/src/factories/internal/metadata/explore_metadata.ts +66 -66
- package/src/factories/internal/metadata/iterate_metadata.ts +77 -77
- package/src/factories/internal/metadata/iterate_metadata_array.ts +25 -25
- package/src/factories/internal/metadata/iterate_metadata_collection.ts +130 -130
- package/src/factories/internal/metadata/iterate_metadata_definition.ts +30 -30
- package/src/factories/internal/metadata/iterate_metadata_object.ts +49 -49
- package/src/factories/internal/metadata/iterate_metadata_sort.ts +68 -68
- package/src/factories/internal/metadata/iterate_metadata_tuple.ts +24 -24
- package/src/factories/internal/metadata/iterate_metadata_union.ts +68 -68
- package/src/metadata/IMetadata.ts +27 -27
- package/src/metadata/IMetadataAlias.ts +12 -12
- package/src/metadata/IMetadataApplication.ts +7 -7
- package/src/metadata/IMetadataArray.ts +10 -10
- package/src/metadata/IMetadataCollection.ts +11 -11
- package/src/metadata/IMetadataDictionary.ts +14 -14
- package/src/metadata/IMetadataObject.ts +18 -18
- package/src/metadata/IMetadataProperty.ts +11 -11
- package/src/metadata/IMetadataTuple.ts +10 -10
- package/src/metadata/Metadata.ts +585 -585
- package/src/metadata/MetadataAlias.ts +61 -61
- package/src/metadata/MetadataArray.ts +52 -52
- package/src/metadata/MetadataObject.ts +114 -114
- package/src/metadata/MetadataProperty.ts +64 -64
- package/src/metadata/MetadataTuple.ts +53 -53
- package/src/programmers/ApplicationProgrammer.ts +55 -55
- package/src/programmers/AssertProgrammer.ts +291 -291
- package/src/programmers/CheckerProgrammer.ts +1182 -1182
- package/src/programmers/CloneProgrammer.ts +595 -595
- package/src/programmers/FeatureProgrammer.ts +495 -495
- package/src/programmers/IsProgrammer.ts +250 -250
- package/src/programmers/LiteralsProgrammer.ts +66 -66
- package/src/programmers/PruneProgrammer.ts +550 -550
- package/src/programmers/RandomProgrammer.ts +589 -589
- package/src/programmers/StringifyProgrammer.ts +990 -990
- package/src/programmers/ValidateProgrammer.ts +313 -313
- package/src/programmers/helpers/FunctionImporeter.ts +78 -78
- package/src/programmers/helpers/RandomJoiner.ts +173 -173
- package/src/programmers/helpers/UnionExplorer.ts +301 -301
- package/src/programmers/helpers/UnionPredicator.ts +81 -81
- package/src/programmers/helpers/disable_function_importer_declare.ts +26 -26
- package/src/programmers/internal/JSON_SCHEMA_PREFIX.ts +1 -1
- package/src/programmers/internal/application_array.ts +30 -64
- package/src/programmers/internal/application_boolean.ts +15 -15
- package/src/programmers/internal/application_constant.ts +26 -26
- package/src/programmers/internal/application_default.ts +17 -17
- package/src/programmers/internal/application_definition.ts +45 -45
- package/src/programmers/internal/application_native.ts +39 -39
- package/src/programmers/internal/application_number.ts +74 -74
- package/src/programmers/internal/application_object.ts +167 -167
- package/src/programmers/internal/application_schema.ts +156 -164
- package/src/programmers/internal/application_tuple.ts +47 -77
- package/src/programmers/internal/check_union_array_like.ts +329 -329
- package/src/programmers/internal/feature_object_entries.ts +63 -63
- package/src/programmers/internal/wrap_metadata_rest_tuple.ts +16 -16
- package/src/schemas/IJsonApplication.ts +8 -8
- package/src/schemas/IJsonComponents.ts +34 -45
- package/src/schemas/IJsonSchema.ts +134 -134
- package/src/transformers/CallExpressionTransformer.ts +179 -179
- package/src/transformers/FileTransformer.ts +47 -47
- package/src/transformers/features/miscellaneous/ApplicationTransformer.ts +104 -104
- package/src/transformers/features/miscellaneous/MetadataTransformer.ts +53 -53
- package/src/utils/ArrayUtil.ts +45 -45
- package/src/utils/RandomGenerator.ts +81 -81
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import { Metadata } from "../../../metadata/Metadata";
|
|
2
|
-
import { MetadataObject } from "../../../metadata/MetadataObject";
|
|
3
|
-
|
|
4
|
-
import { MetadataCollection } from "../../MetadataCollection";
|
|
5
|
-
|
|
6
|
-
export const iterate_metadata_sort =
|
|
7
|
-
(collection: MetadataCollection) => (meta: Metadata) => {
|
|
8
|
-
const visited: Set<Metadata> = new Set();
|
|
9
|
-
for (const array of collection.arrays())
|
|
10
|
-
iterate(visited)(collection)(array.value);
|
|
11
|
-
for (const tuple of collection.tuples())
|
|
12
|
-
for (const element of tuple.elements)
|
|
13
|
-
iterate(visited)(collection)(element);
|
|
14
|
-
for (const object of collection.objects())
|
|
15
|
-
for (const property of object.properties)
|
|
16
|
-
iterate(visited)(collection)(property.value);
|
|
17
|
-
iterate(visited)(collection)(meta);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const iterate =
|
|
21
|
-
(visited: Set<Metadata>) =>
|
|
22
|
-
(collection: MetadataCollection) =>
|
|
23
|
-
(meta: Metadata) => {
|
|
24
|
-
if (visited.has(meta)) return;
|
|
25
|
-
visited.add(meta);
|
|
26
|
-
|
|
27
|
-
// ITERATE CHILDREN
|
|
28
|
-
for (const map of meta.maps) iterate(visited)(collection)(map.value);
|
|
29
|
-
for (const set of meta.sets) iterate(visited)(collection)(set);
|
|
30
|
-
if (meta.resolved !== null) iterate(visited)(collection)(meta.resolved);
|
|
31
|
-
if (meta.rest !== null) iterate(visited)(collection)(meta.rest);
|
|
32
|
-
|
|
33
|
-
// SORT OBJECTS
|
|
34
|
-
if (meta.objects.length > 1) {
|
|
35
|
-
meta.objects.sort((x, y) =>
|
|
36
|
-
MetadataObject.covers(x, y)
|
|
37
|
-
? -1
|
|
38
|
-
: MetadataObject.covers(y, x)
|
|
39
|
-
? 1
|
|
40
|
-
: 0,
|
|
41
|
-
);
|
|
42
|
-
meta.union_index = collection.getUnionIndex(meta);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// SORT ARRAYS AND TUPLES
|
|
46
|
-
if (meta.arrays.length > 1)
|
|
47
|
-
meta.arrays.sort((x, y) =>
|
|
48
|
-
Metadata.covers(x.value, y.value)
|
|
49
|
-
? -1
|
|
50
|
-
: Metadata.covers(y.value, x.value)
|
|
51
|
-
? 1
|
|
52
|
-
: 0,
|
|
53
|
-
);
|
|
54
|
-
if (meta.tuples.length > 1)
|
|
55
|
-
meta.tuples.sort((x, y) => {
|
|
56
|
-
const xt = Metadata.initialize();
|
|
57
|
-
const yt = Metadata.initialize();
|
|
58
|
-
|
|
59
|
-
xt.tuples.push(x);
|
|
60
|
-
yt.tuples.push(y);
|
|
61
|
-
|
|
62
|
-
return Metadata.covers(xt, yt)
|
|
63
|
-
? -1
|
|
64
|
-
: Metadata.covers(yt, xt)
|
|
65
|
-
? 1
|
|
66
|
-
: 0;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
1
|
+
import { Metadata } from "../../../metadata/Metadata";
|
|
2
|
+
import { MetadataObject } from "../../../metadata/MetadataObject";
|
|
3
|
+
|
|
4
|
+
import { MetadataCollection } from "../../MetadataCollection";
|
|
5
|
+
|
|
6
|
+
export const iterate_metadata_sort =
|
|
7
|
+
(collection: MetadataCollection) => (meta: Metadata) => {
|
|
8
|
+
const visited: Set<Metadata> = new Set();
|
|
9
|
+
for (const array of collection.arrays())
|
|
10
|
+
iterate(visited)(collection)(array.value);
|
|
11
|
+
for (const tuple of collection.tuples())
|
|
12
|
+
for (const element of tuple.elements)
|
|
13
|
+
iterate(visited)(collection)(element);
|
|
14
|
+
for (const object of collection.objects())
|
|
15
|
+
for (const property of object.properties)
|
|
16
|
+
iterate(visited)(collection)(property.value);
|
|
17
|
+
iterate(visited)(collection)(meta);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const iterate =
|
|
21
|
+
(visited: Set<Metadata>) =>
|
|
22
|
+
(collection: MetadataCollection) =>
|
|
23
|
+
(meta: Metadata) => {
|
|
24
|
+
if (visited.has(meta)) return;
|
|
25
|
+
visited.add(meta);
|
|
26
|
+
|
|
27
|
+
// ITERATE CHILDREN
|
|
28
|
+
for (const map of meta.maps) iterate(visited)(collection)(map.value);
|
|
29
|
+
for (const set of meta.sets) iterate(visited)(collection)(set);
|
|
30
|
+
if (meta.resolved !== null) iterate(visited)(collection)(meta.resolved);
|
|
31
|
+
if (meta.rest !== null) iterate(visited)(collection)(meta.rest);
|
|
32
|
+
|
|
33
|
+
// SORT OBJECTS
|
|
34
|
+
if (meta.objects.length > 1) {
|
|
35
|
+
meta.objects.sort((x, y) =>
|
|
36
|
+
MetadataObject.covers(x, y)
|
|
37
|
+
? -1
|
|
38
|
+
: MetadataObject.covers(y, x)
|
|
39
|
+
? 1
|
|
40
|
+
: 0,
|
|
41
|
+
);
|
|
42
|
+
meta.union_index = collection.getUnionIndex(meta);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// SORT ARRAYS AND TUPLES
|
|
46
|
+
if (meta.arrays.length > 1)
|
|
47
|
+
meta.arrays.sort((x, y) =>
|
|
48
|
+
Metadata.covers(x.value, y.value)
|
|
49
|
+
? -1
|
|
50
|
+
: Metadata.covers(y.value, x.value)
|
|
51
|
+
? 1
|
|
52
|
+
: 0,
|
|
53
|
+
);
|
|
54
|
+
if (meta.tuples.length > 1)
|
|
55
|
+
meta.tuples.sort((x, y) => {
|
|
56
|
+
const xt = Metadata.initialize();
|
|
57
|
+
const yt = Metadata.initialize();
|
|
58
|
+
|
|
59
|
+
xt.tuples.push(x);
|
|
60
|
+
yt.tuples.push(y);
|
|
61
|
+
|
|
62
|
+
return Metadata.covers(xt, yt)
|
|
63
|
+
? -1
|
|
64
|
+
: Metadata.covers(yt, xt)
|
|
65
|
+
? 1
|
|
66
|
+
: 0;
|
|
67
|
+
});
|
|
68
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
|
|
3
|
-
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
-
import { MetadataTuple } from "../../../metadata/MetadataTuple";
|
|
5
|
-
|
|
6
|
-
import { ArrayUtil } from "../../../utils/ArrayUtil";
|
|
7
|
-
|
|
8
|
-
import { MetadataCollection } from "../../MetadataCollection";
|
|
9
|
-
import { MetadataFactory } from "../../MetadataFactory";
|
|
10
|
-
import { emplace_metadata_tuple } from "./emplace_metadata_tuple";
|
|
11
|
-
|
|
12
|
-
export const iterate_metadata_tuple =
|
|
13
|
-
(checker: ts.TypeChecker) =>
|
|
14
|
-
(options: MetadataFactory.IOptions) =>
|
|
15
|
-
(collection: MetadataCollection) =>
|
|
16
|
-
(meta: Metadata, type: ts.TupleType): boolean => {
|
|
17
|
-
if (!checker.isTupleType(type)) return false;
|
|
18
|
-
|
|
19
|
-
const tuple: MetadataTuple = emplace_metadata_tuple(checker)(options)(
|
|
20
|
-
collection,
|
|
21
|
-
)(type, meta.nullable);
|
|
22
|
-
ArrayUtil.add(meta.tuples, tuple, (elem) => elem.name === tuple.name);
|
|
23
|
-
return true;
|
|
24
|
-
};
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
+
import { MetadataTuple } from "../../../metadata/MetadataTuple";
|
|
5
|
+
|
|
6
|
+
import { ArrayUtil } from "../../../utils/ArrayUtil";
|
|
7
|
+
|
|
8
|
+
import { MetadataCollection } from "../../MetadataCollection";
|
|
9
|
+
import { MetadataFactory } from "../../MetadataFactory";
|
|
10
|
+
import { emplace_metadata_tuple } from "./emplace_metadata_tuple";
|
|
11
|
+
|
|
12
|
+
export const iterate_metadata_tuple =
|
|
13
|
+
(checker: ts.TypeChecker) =>
|
|
14
|
+
(options: MetadataFactory.IOptions) =>
|
|
15
|
+
(collection: MetadataCollection) =>
|
|
16
|
+
(meta: Metadata, type: ts.TupleType): boolean => {
|
|
17
|
+
if (!checker.isTupleType(type)) return false;
|
|
18
|
+
|
|
19
|
+
const tuple: MetadataTuple = emplace_metadata_tuple(checker)(options)(
|
|
20
|
+
collection,
|
|
21
|
+
)(type, meta.nullable);
|
|
22
|
+
ArrayUtil.add(meta.tuples, tuple, (elem) => elem.name === tuple.name);
|
|
23
|
+
return true;
|
|
24
|
+
};
|
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
|
|
3
|
-
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
-
|
|
5
|
-
import { Writable } from "../../../typings/Writable";
|
|
6
|
-
|
|
7
|
-
import { MetadataCollection } from "../../MetadataCollection";
|
|
8
|
-
import { MetadataFactory } from "../../MetadataFactory";
|
|
9
|
-
import { TypeFactory } from "../../TypeFactory";
|
|
10
|
-
import { iterate_metadata } from "./iterate_metadata";
|
|
11
|
-
|
|
12
|
-
export const iterate_metadata_union =
|
|
13
|
-
(checker: ts.TypeChecker) =>
|
|
14
|
-
(options: MetadataFactory.IOptions) =>
|
|
15
|
-
(collection: MetadataCollection) =>
|
|
16
|
-
(meta: Metadata, type: ts.Type, parentResolved: boolean): boolean => {
|
|
17
|
-
if (!type.isUnion()) return false;
|
|
18
|
-
else if (options.resolve === false || parentResolved === true) {
|
|
19
|
-
type.types.forEach((t) =>
|
|
20
|
-
iterate_metadata(checker)(options)(collection)(
|
|
21
|
-
meta,
|
|
22
|
-
t,
|
|
23
|
-
false,
|
|
24
|
-
false,
|
|
25
|
-
),
|
|
26
|
-
);
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const filter = (flag: ts.TypeFlags, t: ts.Type) =>
|
|
31
|
-
(t.getFlags() & flag) !== 0;
|
|
32
|
-
const normals: ts.Type[] = [];
|
|
33
|
-
const toJsons: ts.Type[] = [];
|
|
34
|
-
|
|
35
|
-
for (const individual of type.types) {
|
|
36
|
-
if (filter(ts.TypeFlags.Object, individual)) {
|
|
37
|
-
const resolved: ts.Type | null =
|
|
38
|
-
TypeFactory.resolve(checker)(individual);
|
|
39
|
-
if (resolved !== null) toJsons.push(resolved);
|
|
40
|
-
else normals.push(individual);
|
|
41
|
-
} else normals.push(individual);
|
|
42
|
-
}
|
|
43
|
-
if (toJsons.length !== 0) {
|
|
44
|
-
Writable(meta).resolved = (() => {
|
|
45
|
-
const union: Metadata = Metadata.initialize();
|
|
46
|
-
toJsons.forEach((t) =>
|
|
47
|
-
iterate_metadata(checker)(options)(collection)(
|
|
48
|
-
meta,
|
|
49
|
-
t,
|
|
50
|
-
true,
|
|
51
|
-
false,
|
|
52
|
-
),
|
|
53
|
-
);
|
|
54
|
-
if (union.objects.length > 1)
|
|
55
|
-
union.union_index = collection.getUnionIndex(union);
|
|
56
|
-
return union;
|
|
57
|
-
})();
|
|
58
|
-
}
|
|
59
|
-
normals.forEach((t) =>
|
|
60
|
-
iterate_metadata(checker)(options)(collection)(
|
|
61
|
-
meta,
|
|
62
|
-
t,
|
|
63
|
-
false,
|
|
64
|
-
false,
|
|
65
|
-
),
|
|
66
|
-
);
|
|
67
|
-
return true;
|
|
68
|
-
};
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
+
|
|
5
|
+
import { Writable } from "../../../typings/Writable";
|
|
6
|
+
|
|
7
|
+
import { MetadataCollection } from "../../MetadataCollection";
|
|
8
|
+
import { MetadataFactory } from "../../MetadataFactory";
|
|
9
|
+
import { TypeFactory } from "../../TypeFactory";
|
|
10
|
+
import { iterate_metadata } from "./iterate_metadata";
|
|
11
|
+
|
|
12
|
+
export const iterate_metadata_union =
|
|
13
|
+
(checker: ts.TypeChecker) =>
|
|
14
|
+
(options: MetadataFactory.IOptions) =>
|
|
15
|
+
(collection: MetadataCollection) =>
|
|
16
|
+
(meta: Metadata, type: ts.Type, parentResolved: boolean): boolean => {
|
|
17
|
+
if (!type.isUnion()) return false;
|
|
18
|
+
else if (options.resolve === false || parentResolved === true) {
|
|
19
|
+
type.types.forEach((t) =>
|
|
20
|
+
iterate_metadata(checker)(options)(collection)(
|
|
21
|
+
meta,
|
|
22
|
+
t,
|
|
23
|
+
false,
|
|
24
|
+
false,
|
|
25
|
+
),
|
|
26
|
+
);
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const filter = (flag: ts.TypeFlags, t: ts.Type) =>
|
|
31
|
+
(t.getFlags() & flag) !== 0;
|
|
32
|
+
const normals: ts.Type[] = [];
|
|
33
|
+
const toJsons: ts.Type[] = [];
|
|
34
|
+
|
|
35
|
+
for (const individual of type.types) {
|
|
36
|
+
if (filter(ts.TypeFlags.Object, individual)) {
|
|
37
|
+
const resolved: ts.Type | null =
|
|
38
|
+
TypeFactory.resolve(checker)(individual);
|
|
39
|
+
if (resolved !== null) toJsons.push(resolved);
|
|
40
|
+
else normals.push(individual);
|
|
41
|
+
} else normals.push(individual);
|
|
42
|
+
}
|
|
43
|
+
if (toJsons.length !== 0) {
|
|
44
|
+
Writable(meta).resolved = (() => {
|
|
45
|
+
const union: Metadata = Metadata.initialize();
|
|
46
|
+
toJsons.forEach((t) =>
|
|
47
|
+
iterate_metadata(checker)(options)(collection)(
|
|
48
|
+
meta,
|
|
49
|
+
t,
|
|
50
|
+
true,
|
|
51
|
+
false,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
if (union.objects.length > 1)
|
|
55
|
+
union.union_index = collection.getUnionIndex(union);
|
|
56
|
+
return union;
|
|
57
|
+
})();
|
|
58
|
+
}
|
|
59
|
+
normals.forEach((t) =>
|
|
60
|
+
iterate_metadata(checker)(options)(collection)(
|
|
61
|
+
meta,
|
|
62
|
+
t,
|
|
63
|
+
false,
|
|
64
|
+
false,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
return true;
|
|
68
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { Atomic } from "../typings/Atomic";
|
|
2
|
-
|
|
3
|
-
import { IMetadataConstant } from "./IMetadataConstant";
|
|
4
|
-
import { IMetadataEntry } from "./IMetadataEntry";
|
|
5
|
-
|
|
6
|
-
export interface IMetadata {
|
|
7
|
-
any: boolean;
|
|
8
|
-
required: boolean;
|
|
9
|
-
optional: boolean;
|
|
10
|
-
nullable: boolean;
|
|
11
|
-
functional: boolean;
|
|
12
|
-
|
|
13
|
-
atomics: Atomic.Literal[];
|
|
14
|
-
constants: IMetadataConstant[];
|
|
15
|
-
templates: IMetadata[][];
|
|
16
|
-
resolved: IMetadata | null;
|
|
17
|
-
|
|
18
|
-
rest: IMetadata | null;
|
|
19
|
-
arrays: string[];
|
|
20
|
-
tuples: string[];
|
|
21
|
-
objects: string[];
|
|
22
|
-
aliases: string[];
|
|
23
|
-
|
|
24
|
-
natives: string[];
|
|
25
|
-
sets: IMetadata[];
|
|
26
|
-
maps: IMetadataEntry[];
|
|
27
|
-
}
|
|
1
|
+
import { Atomic } from "../typings/Atomic";
|
|
2
|
+
|
|
3
|
+
import { IMetadataConstant } from "./IMetadataConstant";
|
|
4
|
+
import { IMetadataEntry } from "./IMetadataEntry";
|
|
5
|
+
|
|
6
|
+
export interface IMetadata {
|
|
7
|
+
any: boolean;
|
|
8
|
+
required: boolean;
|
|
9
|
+
optional: boolean;
|
|
10
|
+
nullable: boolean;
|
|
11
|
+
functional: boolean;
|
|
12
|
+
|
|
13
|
+
atomics: Atomic.Literal[];
|
|
14
|
+
constants: IMetadataConstant[];
|
|
15
|
+
templates: IMetadata[][];
|
|
16
|
+
resolved: IMetadata | null;
|
|
17
|
+
|
|
18
|
+
rest: IMetadata | null;
|
|
19
|
+
arrays: string[];
|
|
20
|
+
tuples: string[];
|
|
21
|
+
objects: string[];
|
|
22
|
+
aliases: string[];
|
|
23
|
+
|
|
24
|
+
natives: string[];
|
|
25
|
+
sets: IMetadata[];
|
|
26
|
+
maps: IMetadataEntry[];
|
|
27
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IJsDocTagInfo } from "./IJsDocTagInfo";
|
|
2
|
-
import { IMetadata } from "./IMetadata";
|
|
3
|
-
|
|
4
|
-
export interface IMetadataAlias {
|
|
5
|
-
name: string;
|
|
6
|
-
value: IMetadata;
|
|
7
|
-
|
|
8
|
-
description: string | null;
|
|
9
|
-
jsDocTags: IJsDocTagInfo[];
|
|
10
|
-
recursive: boolean;
|
|
11
|
-
nullables: boolean[];
|
|
12
|
-
}
|
|
1
|
+
import { IJsDocTagInfo } from "./IJsDocTagInfo";
|
|
2
|
+
import { IMetadata } from "./IMetadata";
|
|
3
|
+
|
|
4
|
+
export interface IMetadataAlias {
|
|
5
|
+
name: string;
|
|
6
|
+
value: IMetadata;
|
|
7
|
+
|
|
8
|
+
description: string | null;
|
|
9
|
+
jsDocTags: IJsDocTagInfo[];
|
|
10
|
+
recursive: boolean;
|
|
11
|
+
nullables: boolean[];
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IMetadata } from "./IMetadata";
|
|
2
|
-
import { IMetadataCollection } from "./IMetadataCollection";
|
|
3
|
-
|
|
4
|
-
export interface IMetadataApplication {
|
|
5
|
-
metadatas: IMetadata[];
|
|
6
|
-
collection: IMetadataCollection;
|
|
7
|
-
}
|
|
1
|
+
import { IMetadata } from "./IMetadata";
|
|
2
|
+
import { IMetadataCollection } from "./IMetadataCollection";
|
|
3
|
+
|
|
4
|
+
export interface IMetadataApplication {
|
|
5
|
+
metadatas: IMetadata[];
|
|
6
|
+
collection: IMetadataCollection;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IMetadata } from "./IMetadata";
|
|
2
|
-
|
|
3
|
-
export interface IMetadataArray {
|
|
4
|
-
name: string;
|
|
5
|
-
value: IMetadata;
|
|
6
|
-
|
|
7
|
-
nullables: boolean[];
|
|
8
|
-
recursive: boolean;
|
|
9
|
-
index: number | null;
|
|
10
|
-
}
|
|
1
|
+
import { IMetadata } from "./IMetadata";
|
|
2
|
+
|
|
3
|
+
export interface IMetadataArray {
|
|
4
|
+
name: string;
|
|
5
|
+
value: IMetadata;
|
|
6
|
+
|
|
7
|
+
nullables: boolean[];
|
|
8
|
+
recursive: boolean;
|
|
9
|
+
index: number | null;
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IMetadataAlias } from "./IMetadataAlias";
|
|
2
|
-
import { IMetadataArray } from "./IMetadataArray";
|
|
3
|
-
import { IMetadataObject } from "./IMetadataObject";
|
|
4
|
-
import { IMetadataTuple } from "./IMetadataTuple";
|
|
5
|
-
|
|
6
|
-
export interface IMetadataCollection {
|
|
7
|
-
objects: IMetadataObject[];
|
|
8
|
-
aliases: IMetadataAlias[];
|
|
9
|
-
arrays: IMetadataArray[];
|
|
10
|
-
tuples: IMetadataTuple[];
|
|
11
|
-
}
|
|
1
|
+
import { IMetadataAlias } from "./IMetadataAlias";
|
|
2
|
+
import { IMetadataArray } from "./IMetadataArray";
|
|
3
|
+
import { IMetadataObject } from "./IMetadataObject";
|
|
4
|
+
import { IMetadataTuple } from "./IMetadataTuple";
|
|
5
|
+
|
|
6
|
+
export interface IMetadataCollection {
|
|
7
|
+
objects: IMetadataObject[];
|
|
8
|
+
aliases: IMetadataAlias[];
|
|
9
|
+
arrays: IMetadataArray[];
|
|
10
|
+
tuples: IMetadataTuple[];
|
|
11
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { MetadataAlias } from "./MetadataAlias";
|
|
2
|
-
import { MetadataArray } from "./MetadataArray";
|
|
3
|
-
import { MetadataObject } from "./MetadataObject";
|
|
4
|
-
import { MetadataTuple } from "./MetadataTuple";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export interface IMetadataDictionary {
|
|
10
|
-
objects: Map<string, MetadataObject>;
|
|
11
|
-
aliases: Map<string, MetadataAlias>;
|
|
12
|
-
arrays: Map<string, MetadataArray>;
|
|
13
|
-
tuples: Map<string, MetadataTuple>;
|
|
14
|
-
}
|
|
1
|
+
import { MetadataAlias } from "./MetadataAlias";
|
|
2
|
+
import { MetadataArray } from "./MetadataArray";
|
|
3
|
+
import { MetadataObject } from "./MetadataObject";
|
|
4
|
+
import { MetadataTuple } from "./MetadataTuple";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface IMetadataDictionary {
|
|
10
|
+
objects: Map<string, MetadataObject>;
|
|
11
|
+
aliases: Map<string, MetadataAlias>;
|
|
12
|
+
arrays: Map<string, MetadataArray>;
|
|
13
|
+
tuples: Map<string, MetadataTuple>;
|
|
14
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IJsDocTagInfo } from "./IJsDocTagInfo";
|
|
2
|
-
import { IMetadataProperty } from "./IMetadataProperty";
|
|
3
|
-
|
|
4
|
-
export interface IMetadataObject {
|
|
5
|
-
name: string;
|
|
6
|
-
properties: IMetadataProperty[];
|
|
7
|
-
description?: string;
|
|
8
|
-
jsDocTags: IJsDocTagInfo[];
|
|
9
|
-
|
|
10
|
-
index: number;
|
|
11
|
-
recursive: boolean;
|
|
12
|
-
nullables: boolean[];
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
validated: boolean;
|
|
18
|
-
}
|
|
1
|
+
import { IJsDocTagInfo } from "./IJsDocTagInfo";
|
|
2
|
+
import { IMetadataProperty } from "./IMetadataProperty";
|
|
3
|
+
|
|
4
|
+
export interface IMetadataObject {
|
|
5
|
+
name: string;
|
|
6
|
+
properties: IMetadataProperty[];
|
|
7
|
+
description?: string;
|
|
8
|
+
jsDocTags: IJsDocTagInfo[];
|
|
9
|
+
|
|
10
|
+
index: number;
|
|
11
|
+
recursive: boolean;
|
|
12
|
+
nullables: boolean[];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
validated: boolean;
|
|
18
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IJsDocTagInfo } from "./IJsDocTagInfo";
|
|
2
|
-
import { IMetadata } from "./IMetadata";
|
|
3
|
-
import { IMetadataTag } from "./IMetadataTag";
|
|
4
|
-
|
|
5
|
-
export interface IMetadataProperty {
|
|
6
|
-
key: IMetadata;
|
|
7
|
-
value: IMetadata;
|
|
8
|
-
description: string | null;
|
|
9
|
-
tags: IMetadataTag[];
|
|
10
|
-
jsDocTags: IJsDocTagInfo[];
|
|
11
|
-
}
|
|
1
|
+
import { IJsDocTagInfo } from "./IJsDocTagInfo";
|
|
2
|
+
import { IMetadata } from "./IMetadata";
|
|
3
|
+
import { IMetadataTag } from "./IMetadataTag";
|
|
4
|
+
|
|
5
|
+
export interface IMetadataProperty {
|
|
6
|
+
key: IMetadata;
|
|
7
|
+
value: IMetadata;
|
|
8
|
+
description: string | null;
|
|
9
|
+
tags: IMetadataTag[];
|
|
10
|
+
jsDocTags: IJsDocTagInfo[];
|
|
11
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IMetadata } from "./IMetadata";
|
|
2
|
-
|
|
3
|
-
export interface IMetadataTuple {
|
|
4
|
-
name: string;
|
|
5
|
-
elements: IMetadata[];
|
|
6
|
-
|
|
7
|
-
index: number | null;
|
|
8
|
-
recursive: boolean;
|
|
9
|
-
nullables: boolean[];
|
|
10
|
-
}
|
|
1
|
+
import { IMetadata } from "./IMetadata";
|
|
2
|
+
|
|
3
|
+
export interface IMetadataTuple {
|
|
4
|
+
name: string;
|
|
5
|
+
elements: IMetadata[];
|
|
6
|
+
|
|
7
|
+
index: number | null;
|
|
8
|
+
recursive: boolean;
|
|
9
|
+
nullables: boolean[];
|
|
10
|
+
}
|