typia 3.8.3-dev.20230429 → 3.8.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/lib/functional/$dictionary.js +3 -2
- package/lib/functional/$dictionary.js.map +1 -1
- package/package.json +1 -1
- package/src/Primitive.ts +123 -123
- package/src/factories/MetadataFactory.ts +62 -62
- package/src/factories/internal/metadata/emplace_metadata_object.ts +143 -143
- package/src/factories/internal/metadata/iterate_metadata_tuple.ts +48 -48
- package/src/functional/$dictionary.ts +7 -2
- package/src/metadata/IMetadata.ts +26 -26
- package/src/metadata/Metadata.ts +539 -539
- package/src/programmers/CheckerProgrammer.ts +901 -901
- package/src/programmers/internal/application_object.ts +155 -155
- package/src/programmers/internal/application_tuple.ts +31 -31
- package/src/schemas/IJsonSchema.ts +130 -130
|
@@ -1,143 +1,143 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
|
|
3
|
-
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
-
import { MetadataObject } from "../../../metadata/MetadataObject";
|
|
5
|
-
import { MetadataProperty } from "../../../metadata/MetadataProperty";
|
|
6
|
-
|
|
7
|
-
import { Writable } from "../../../typings/Writable";
|
|
8
|
-
|
|
9
|
-
import { ArrayUtil } from "../../../utils/ArrayUtil";
|
|
10
|
-
|
|
11
|
-
import { CommentFactory } from "../../CommentFactory";
|
|
12
|
-
import { MetadataCollection } from "../../MetadataCollection";
|
|
13
|
-
import { MetadataFactory } from "../../MetadataFactory";
|
|
14
|
-
import { MetadataTagFactory } from "../../MetadataTagFactory";
|
|
15
|
-
import { MetadataHelper } from "./MetadataHelper";
|
|
16
|
-
import { explore_metadata } from "./explore_metadata";
|
|
17
|
-
|
|
18
|
-
export const emplace_metadata_object =
|
|
19
|
-
(checker: ts.TypeChecker) =>
|
|
20
|
-
(options: MetadataFactory.IOptions) =>
|
|
21
|
-
(collection: MetadataCollection) =>
|
|
22
|
-
(parent: ts.Type, nullable: boolean): MetadataObject => {
|
|
23
|
-
// EMPLACE OBJECT
|
|
24
|
-
const [obj, newbie] = collection.emplace(checker, parent);
|
|
25
|
-
ArrayUtil.add(obj.nullables, nullable, (elem) => elem === nullable);
|
|
26
|
-
if (newbie === false) return obj;
|
|
27
|
-
|
|
28
|
-
// PREPARE ASSETS
|
|
29
|
-
const isClass: boolean = parent.isClass();
|
|
30
|
-
const pred: (node: ts.Declaration) => boolean = isClass
|
|
31
|
-
? (node) => {
|
|
32
|
-
const kind: ts.SyntaxKind | undefined = node
|
|
33
|
-
.getChildren()[0]
|
|
34
|
-
?.getChildren()[0]?.kind;
|
|
35
|
-
return (
|
|
36
|
-
kind !== ts.SyntaxKind.PrivateKeyword &&
|
|
37
|
-
kind !== ts.SyntaxKind.ProtectedKeyword &&
|
|
38
|
-
(ts.isParameter(node) || isProperty(node))
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
: (node) => isProperty(node);
|
|
42
|
-
|
|
43
|
-
const insert =
|
|
44
|
-
(key: Metadata) =>
|
|
45
|
-
(value: Metadata) =>
|
|
46
|
-
(identifier: () => string) =>
|
|
47
|
-
(
|
|
48
|
-
symbol: ts.Symbol | undefined,
|
|
49
|
-
filter?: (doc: ts.JSDocTagInfo) => boolean,
|
|
50
|
-
): MetadataProperty => {
|
|
51
|
-
// COMMENTS AND TAGS
|
|
52
|
-
const description: string | undefined =
|
|
53
|
-
CommentFactory.string(
|
|
54
|
-
symbol?.getDocumentationComment(checker) || [],
|
|
55
|
-
) || undefined;
|
|
56
|
-
const jsDocTags: ts.JSDocTagInfo[] = (
|
|
57
|
-
symbol?.getJsDocTags() || []
|
|
58
|
-
).filter(filter || (() => true));
|
|
59
|
-
|
|
60
|
-
// THE PROPERTY
|
|
61
|
-
const property = MetadataProperty.create({
|
|
62
|
-
key,
|
|
63
|
-
value,
|
|
64
|
-
description,
|
|
65
|
-
jsDocTags,
|
|
66
|
-
tags: MetadataTagFactory.generate(value)(jsDocTags)(() =>
|
|
67
|
-
identifier(),
|
|
68
|
-
),
|
|
69
|
-
});
|
|
70
|
-
obj.properties.push(property);
|
|
71
|
-
return property;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
//----
|
|
75
|
-
// REGULAR PROPERTIES
|
|
76
|
-
//----
|
|
77
|
-
for (const prop of parent.getApparentProperties()) {
|
|
78
|
-
// CHECK INTERNAL TAG
|
|
79
|
-
if (
|
|
80
|
-
(prop.getJsDocTags(checker) || []).find(
|
|
81
|
-
(tag) => tag.name === "internal",
|
|
82
|
-
) !== undefined
|
|
83
|
-
)
|
|
84
|
-
continue;
|
|
85
|
-
|
|
86
|
-
// CHECK NODE IS A FORMAL PROPERTY
|
|
87
|
-
const [node, type] = (() => {
|
|
88
|
-
const node = (prop.getDeclarations() || [])[0] as
|
|
89
|
-
| ts.PropertyDeclaration
|
|
90
|
-
| undefined;
|
|
91
|
-
const type: ts.Type | undefined = node
|
|
92
|
-
? checker.getTypeOfSymbolAtLocation(prop, node)
|
|
93
|
-
: "getTypeOfPropertyOfType" in checker
|
|
94
|
-
? (checker as any).getTypeOfPropertyOfType(
|
|
95
|
-
parent,
|
|
96
|
-
prop.name,
|
|
97
|
-
)
|
|
98
|
-
: undefined;
|
|
99
|
-
return [node, type];
|
|
100
|
-
})();
|
|
101
|
-
if ((node && pred(node) === false) || type === undefined) continue;
|
|
102
|
-
|
|
103
|
-
// GET EXACT TYPE
|
|
104
|
-
const key: Metadata = MetadataHelper.literal_to_metadata(prop.name);
|
|
105
|
-
const value: Metadata = explore_metadata(checker)(options)(
|
|
106
|
-
collection,
|
|
107
|
-
)(type, false);
|
|
108
|
-
|
|
109
|
-
// INSERT WITH REQUIRED CONFIGURATION
|
|
110
|
-
if (node?.questionToken) {
|
|
111
|
-
Writable(value).required = false;
|
|
112
|
-
Writable(value).optional = true;
|
|
113
|
-
}
|
|
114
|
-
insert(key)(value)(() => `${obj.name}.${prop.name}`)(prop);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
//----
|
|
118
|
-
// DYNAMIC PROPERTIES
|
|
119
|
-
//----
|
|
120
|
-
for (const index of checker.getIndexInfosOfType(parent)) {
|
|
121
|
-
// GET EXACT TYPE
|
|
122
|
-
const analyzer = (type: ts.Type) =>
|
|
123
|
-
explore_metadata(checker)(options)(collection)(type, false);
|
|
124
|
-
const key: Metadata = analyzer(index.keyType);
|
|
125
|
-
const value: Metadata = analyzer(index.type);
|
|
126
|
-
|
|
127
|
-
// INSERT WITH REQUIRED CONFIGURATION
|
|
128
|
-
insert(key)(value)(() => `${obj.name}[${key.getName()}]`)(
|
|
129
|
-
index.declaration?.parent
|
|
130
|
-
? checker.getSymbolAtLocation(index.declaration.parent)
|
|
131
|
-
: undefined,
|
|
132
|
-
(doc) => doc.name !== "default",
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return obj;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
const isProperty = (node: ts.Declaration) =>
|
|
140
|
-
ts.isPropertyDeclaration(node) ||
|
|
141
|
-
ts.isPropertyAssignment(node) ||
|
|
142
|
-
ts.isPropertySignature(node) ||
|
|
143
|
-
ts.isTypeLiteralNode(node);
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
+
import { MetadataObject } from "../../../metadata/MetadataObject";
|
|
5
|
+
import { MetadataProperty } from "../../../metadata/MetadataProperty";
|
|
6
|
+
|
|
7
|
+
import { Writable } from "../../../typings/Writable";
|
|
8
|
+
|
|
9
|
+
import { ArrayUtil } from "../../../utils/ArrayUtil";
|
|
10
|
+
|
|
11
|
+
import { CommentFactory } from "../../CommentFactory";
|
|
12
|
+
import { MetadataCollection } from "../../MetadataCollection";
|
|
13
|
+
import { MetadataFactory } from "../../MetadataFactory";
|
|
14
|
+
import { MetadataTagFactory } from "../../MetadataTagFactory";
|
|
15
|
+
import { MetadataHelper } from "./MetadataHelper";
|
|
16
|
+
import { explore_metadata } from "./explore_metadata";
|
|
17
|
+
|
|
18
|
+
export const emplace_metadata_object =
|
|
19
|
+
(checker: ts.TypeChecker) =>
|
|
20
|
+
(options: MetadataFactory.IOptions) =>
|
|
21
|
+
(collection: MetadataCollection) =>
|
|
22
|
+
(parent: ts.Type, nullable: boolean): MetadataObject => {
|
|
23
|
+
// EMPLACE OBJECT
|
|
24
|
+
const [obj, newbie] = collection.emplace(checker, parent);
|
|
25
|
+
ArrayUtil.add(obj.nullables, nullable, (elem) => elem === nullable);
|
|
26
|
+
if (newbie === false) return obj;
|
|
27
|
+
|
|
28
|
+
// PREPARE ASSETS
|
|
29
|
+
const isClass: boolean = parent.isClass();
|
|
30
|
+
const pred: (node: ts.Declaration) => boolean = isClass
|
|
31
|
+
? (node) => {
|
|
32
|
+
const kind: ts.SyntaxKind | undefined = node
|
|
33
|
+
.getChildren()[0]
|
|
34
|
+
?.getChildren()[0]?.kind;
|
|
35
|
+
return (
|
|
36
|
+
kind !== ts.SyntaxKind.PrivateKeyword &&
|
|
37
|
+
kind !== ts.SyntaxKind.ProtectedKeyword &&
|
|
38
|
+
(ts.isParameter(node) || isProperty(node))
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
: (node) => isProperty(node);
|
|
42
|
+
|
|
43
|
+
const insert =
|
|
44
|
+
(key: Metadata) =>
|
|
45
|
+
(value: Metadata) =>
|
|
46
|
+
(identifier: () => string) =>
|
|
47
|
+
(
|
|
48
|
+
symbol: ts.Symbol | undefined,
|
|
49
|
+
filter?: (doc: ts.JSDocTagInfo) => boolean,
|
|
50
|
+
): MetadataProperty => {
|
|
51
|
+
// COMMENTS AND TAGS
|
|
52
|
+
const description: string | undefined =
|
|
53
|
+
CommentFactory.string(
|
|
54
|
+
symbol?.getDocumentationComment(checker) || [],
|
|
55
|
+
) || undefined;
|
|
56
|
+
const jsDocTags: ts.JSDocTagInfo[] = (
|
|
57
|
+
symbol?.getJsDocTags() || []
|
|
58
|
+
).filter(filter || (() => true));
|
|
59
|
+
|
|
60
|
+
// THE PROPERTY
|
|
61
|
+
const property = MetadataProperty.create({
|
|
62
|
+
key,
|
|
63
|
+
value,
|
|
64
|
+
description,
|
|
65
|
+
jsDocTags,
|
|
66
|
+
tags: MetadataTagFactory.generate(value)(jsDocTags)(() =>
|
|
67
|
+
identifier(),
|
|
68
|
+
),
|
|
69
|
+
});
|
|
70
|
+
obj.properties.push(property);
|
|
71
|
+
return property;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
//----
|
|
75
|
+
// REGULAR PROPERTIES
|
|
76
|
+
//----
|
|
77
|
+
for (const prop of parent.getApparentProperties()) {
|
|
78
|
+
// CHECK INTERNAL TAG
|
|
79
|
+
if (
|
|
80
|
+
(prop.getJsDocTags(checker) || []).find(
|
|
81
|
+
(tag) => tag.name === "internal",
|
|
82
|
+
) !== undefined
|
|
83
|
+
)
|
|
84
|
+
continue;
|
|
85
|
+
|
|
86
|
+
// CHECK NODE IS A FORMAL PROPERTY
|
|
87
|
+
const [node, type] = (() => {
|
|
88
|
+
const node = (prop.getDeclarations() || [])[0] as
|
|
89
|
+
| ts.PropertyDeclaration
|
|
90
|
+
| undefined;
|
|
91
|
+
const type: ts.Type | undefined = node
|
|
92
|
+
? checker.getTypeOfSymbolAtLocation(prop, node)
|
|
93
|
+
: "getTypeOfPropertyOfType" in checker
|
|
94
|
+
? (checker as any).getTypeOfPropertyOfType(
|
|
95
|
+
parent,
|
|
96
|
+
prop.name,
|
|
97
|
+
)
|
|
98
|
+
: undefined;
|
|
99
|
+
return [node, type];
|
|
100
|
+
})();
|
|
101
|
+
if ((node && pred(node) === false) || type === undefined) continue;
|
|
102
|
+
|
|
103
|
+
// GET EXACT TYPE
|
|
104
|
+
const key: Metadata = MetadataHelper.literal_to_metadata(prop.name);
|
|
105
|
+
const value: Metadata = explore_metadata(checker)(options)(
|
|
106
|
+
collection,
|
|
107
|
+
)(type, false);
|
|
108
|
+
|
|
109
|
+
// INSERT WITH REQUIRED CONFIGURATION
|
|
110
|
+
if (node?.questionToken) {
|
|
111
|
+
Writable(value).required = false;
|
|
112
|
+
Writable(value).optional = true;
|
|
113
|
+
}
|
|
114
|
+
insert(key)(value)(() => `${obj.name}.${prop.name}`)(prop);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
//----
|
|
118
|
+
// DYNAMIC PROPERTIES
|
|
119
|
+
//----
|
|
120
|
+
for (const index of checker.getIndexInfosOfType(parent)) {
|
|
121
|
+
// GET EXACT TYPE
|
|
122
|
+
const analyzer = (type: ts.Type) =>
|
|
123
|
+
explore_metadata(checker)(options)(collection)(type, false);
|
|
124
|
+
const key: Metadata = analyzer(index.keyType);
|
|
125
|
+
const value: Metadata = analyzer(index.type);
|
|
126
|
+
|
|
127
|
+
// INSERT WITH REQUIRED CONFIGURATION
|
|
128
|
+
insert(key)(value)(() => `${obj.name}[${key.getName()}]`)(
|
|
129
|
+
index.declaration?.parent
|
|
130
|
+
? checker.getSymbolAtLocation(index.declaration.parent)
|
|
131
|
+
: undefined,
|
|
132
|
+
(doc) => doc.name !== "default",
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
return obj;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const isProperty = (node: ts.Declaration) =>
|
|
140
|
+
ts.isPropertyDeclaration(node) ||
|
|
141
|
+
ts.isPropertyAssignment(node) ||
|
|
142
|
+
ts.isPropertySignature(node) ||
|
|
143
|
+
ts.isTypeLiteralNode(node);
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import ts from "typescript";
|
|
2
|
-
|
|
3
|
-
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
-
|
|
5
|
-
import { Writable } from "../../../typings/Writable";
|
|
6
|
-
|
|
7
|
-
import { ArrayUtil } from "../../../utils/ArrayUtil";
|
|
8
|
-
|
|
9
|
-
import { MetadataCollection } from "../../MetadataCollection";
|
|
10
|
-
import { MetadataFactory } from "../../MetadataFactory";
|
|
11
|
-
import { explore_metadata } from "./explore_metadata";
|
|
12
|
-
|
|
13
|
-
export const iterate_metadata_tuple =
|
|
14
|
-
(checker: ts.TypeChecker) =>
|
|
15
|
-
(options: MetadataFactory.IOptions) =>
|
|
16
|
-
(collection: MetadataCollection) =>
|
|
17
|
-
(meta: Metadata, type: ts.TupleType): boolean => {
|
|
18
|
-
if (!(checker as any).isTupleType(type)) return false;
|
|
19
|
-
|
|
20
|
-
const elementFlags: readonly ts.ElementFlags[] =
|
|
21
|
-
type.elementFlags ??
|
|
22
|
-
(type.target as ts.TupleType)?.elementFlags ??
|
|
23
|
-
[];
|
|
24
|
-
|
|
25
|
-
const children: Metadata[] = checker
|
|
26
|
-
.getTypeArguments(type as ts.TypeReference)
|
|
27
|
-
.map((elem, i) => {
|
|
28
|
-
const child: Metadata = explore_metadata(checker)(options)(
|
|
29
|
-
collection,
|
|
30
|
-
)(elem, false);
|
|
31
|
-
|
|
32
|
-
// CHECK OPTIONAL
|
|
33
|
-
const flag: ts.ElementFlags | undefined = elementFlags[i];
|
|
34
|
-
if (flag === ts.ElementFlags.Optional)
|
|
35
|
-
Writable(child).optional = true;
|
|
36
|
-
|
|
37
|
-
// REST TYPE
|
|
38
|
-
if (flag !== ts.ElementFlags.Rest) return child;
|
|
39
|
-
const wrapper: Metadata = Metadata.initialize();
|
|
40
|
-
Writable(wrapper).rest = child;
|
|
41
|
-
return wrapper;
|
|
42
|
-
});
|
|
43
|
-
ArrayUtil.set(meta.tuples, children, join_tuple_names);
|
|
44
|
-
return true;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const join_tuple_names = (metas: Metadata[]): string =>
|
|
48
|
-
`[${metas.map((m) => m.getName).join(", ")}]`;
|
|
1
|
+
import ts from "typescript";
|
|
2
|
+
|
|
3
|
+
import { Metadata } from "../../../metadata/Metadata";
|
|
4
|
+
|
|
5
|
+
import { Writable } from "../../../typings/Writable";
|
|
6
|
+
|
|
7
|
+
import { ArrayUtil } from "../../../utils/ArrayUtil";
|
|
8
|
+
|
|
9
|
+
import { MetadataCollection } from "../../MetadataCollection";
|
|
10
|
+
import { MetadataFactory } from "../../MetadataFactory";
|
|
11
|
+
import { explore_metadata } from "./explore_metadata";
|
|
12
|
+
|
|
13
|
+
export const iterate_metadata_tuple =
|
|
14
|
+
(checker: ts.TypeChecker) =>
|
|
15
|
+
(options: MetadataFactory.IOptions) =>
|
|
16
|
+
(collection: MetadataCollection) =>
|
|
17
|
+
(meta: Metadata, type: ts.TupleType): boolean => {
|
|
18
|
+
if (!(checker as any).isTupleType(type)) return false;
|
|
19
|
+
|
|
20
|
+
const elementFlags: readonly ts.ElementFlags[] =
|
|
21
|
+
type.elementFlags ??
|
|
22
|
+
(type.target as ts.TupleType)?.elementFlags ??
|
|
23
|
+
[];
|
|
24
|
+
|
|
25
|
+
const children: Metadata[] = checker
|
|
26
|
+
.getTypeArguments(type as ts.TypeReference)
|
|
27
|
+
.map((elem, i) => {
|
|
28
|
+
const child: Metadata = explore_metadata(checker)(options)(
|
|
29
|
+
collection,
|
|
30
|
+
)(elem, false);
|
|
31
|
+
|
|
32
|
+
// CHECK OPTIONAL
|
|
33
|
+
const flag: ts.ElementFlags | undefined = elementFlags[i];
|
|
34
|
+
if (flag === ts.ElementFlags.Optional)
|
|
35
|
+
Writable(child).optional = true;
|
|
36
|
+
|
|
37
|
+
// REST TYPE
|
|
38
|
+
if (flag !== ts.ElementFlags.Rest) return child;
|
|
39
|
+
const wrapper: Metadata = Metadata.initialize();
|
|
40
|
+
Writable(wrapper).rest = child;
|
|
41
|
+
return wrapper;
|
|
42
|
+
});
|
|
43
|
+
ArrayUtil.set(meta.tuples, children, join_tuple_names);
|
|
44
|
+
return true;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const join_tuple_names = (metas: Metadata[]): string =>
|
|
48
|
+
`[${metas.map((m) => m.getName).join(", ")}]`;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Customizable } from "../typings/Customizable";
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
const blackhole: any = {};
|
|
7
|
+
|
|
3
8
|
export const $dictionary = (() => {
|
|
4
9
|
const glob: {
|
|
5
10
|
__typia_custom_validator: Map<
|
|
@@ -14,7 +19,7 @@ export const $dictionary = (() => {
|
|
|
14
19
|
typeof global.process === "object" &&
|
|
15
20
|
typeof global.process.versions === "object" &&
|
|
16
21
|
typeof global.process.versions.node !== "undefined"
|
|
17
|
-
? (global as any)
|
|
18
|
-
: (
|
|
22
|
+
? ((global ?? blackhole) as any)
|
|
23
|
+
: ((self ?? blackhole) as any);
|
|
19
24
|
return (glob.__typia_custom_validator ??= new Map());
|
|
20
25
|
})();
|
|
@@ -1,26 +1,26 @@
|
|
|
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: IMetadata[];
|
|
20
|
-
tuples: IMetadata[][];
|
|
21
|
-
objects: string[];
|
|
22
|
-
|
|
23
|
-
natives: string[];
|
|
24
|
-
sets: IMetadata[];
|
|
25
|
-
maps: IMetadataEntry[];
|
|
26
|
-
}
|
|
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: IMetadata[];
|
|
20
|
+
tuples: IMetadata[][];
|
|
21
|
+
objects: string[];
|
|
22
|
+
|
|
23
|
+
natives: string[];
|
|
24
|
+
sets: IMetadata[];
|
|
25
|
+
maps: IMetadataEntry[];
|
|
26
|
+
}
|