@angular/compiler-cli 21.0.0-rc.1 → 21.0.0-rc.3
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/bundles/{chunk-5UJIUEKT.js → chunk-3UWOVJPM.js} +20 -3
- package/bundles/{chunk-VBBJY6IR.js → chunk-67N3I5R2.js} +1675 -1523
- package/bundles/{chunk-DBAV4W4V.js → chunk-EZPRBQ4S.js} +2 -2
- package/bundles/{chunk-YVYYMXOI.js → chunk-IUWOX36C.js} +1 -1
- package/bundles/{chunk-DT6FD4OE.js → chunk-ZJZNLTWN.js} +1 -2
- package/bundles/index.js +4 -4
- package/bundles/linker/babel/index.js +1 -1
- package/bundles/linker/index.js +1 -1
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/testing.js +1 -1
- package/bundles/private/tooling.js +1 -1
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/docs/src/entities.d.ts +8 -2
- package/src/ngtsc/docs/src/extractor.d.ts +1 -0
- package/src/ngtsc/docs/src/type_alias_extractor.d.ts +1 -0
- package/src/ngtsc/typecheck/src/ops/base.d.ts +43 -0
- package/src/ngtsc/typecheck/src/ops/bindings.d.ts +64 -0
- package/src/ngtsc/typecheck/src/ops/completions.d.ts +22 -0
- package/src/ngtsc/typecheck/src/ops/content_projection.d.ts +34 -0
- package/src/ngtsc/typecheck/src/ops/context.d.ts +67 -0
- package/src/ngtsc/typecheck/src/ops/directive_constructor.d.ts +59 -0
- package/src/ngtsc/typecheck/src/ops/directive_type.d.ts +53 -0
- package/src/ngtsc/typecheck/src/ops/element.d.ts +26 -0
- package/src/ngtsc/typecheck/src/ops/events.d.ts +55 -0
- package/src/ngtsc/typecheck/src/ops/expression.d.ts +49 -0
- package/src/ngtsc/typecheck/src/ops/for_block.d.ts +32 -0
- package/src/ngtsc/typecheck/src/ops/host.d.ts +25 -0
- package/src/ngtsc/typecheck/src/ops/if_block.d.ts +28 -0
- package/src/ngtsc/typecheck/src/ops/inputs.d.ts +56 -0
- package/src/ngtsc/typecheck/src/ops/intersection_observer.d.ts +22 -0
- package/src/ngtsc/typecheck/src/ops/let.d.ts +29 -0
- package/src/ngtsc/typecheck/src/ops/references.d.ts +57 -0
- package/src/ngtsc/typecheck/src/ops/schema.d.ts +31 -0
- package/src/ngtsc/typecheck/src/ops/scope.d.ts +187 -0
- package/src/ngtsc/typecheck/src/ops/selectorless.d.ts +26 -0
- package/src/ngtsc/typecheck/src/ops/signal_forms.d.ts +40 -0
- package/src/ngtsc/typecheck/src/ops/switch_block.d.ts +25 -0
- package/src/ngtsc/typecheck/src/ops/template.d.ts +40 -0
- package/src/ngtsc/typecheck/src/ops/variables.d.ts +56 -0
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -274
- package/src/ngtsc/typecheck/src/type_check_file.d.ts +1 -1
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
toUnredirectedSourceFile,
|
|
88
88
|
tryParseInitializerApi,
|
|
89
89
|
untagAllTsFiles
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-67N3I5R2.js";
|
|
91
91
|
import {
|
|
92
92
|
LogicalFileSystem,
|
|
93
93
|
absoluteFromSourceFile,
|
|
@@ -123,6 +123,8 @@ var MemberType;
|
|
|
123
123
|
MemberType2["Getter"] = "getter";
|
|
124
124
|
MemberType2["Setter"] = "setter";
|
|
125
125
|
MemberType2["EnumItem"] = "enum_item";
|
|
126
|
+
MemberType2["Interface"] = "interface";
|
|
127
|
+
MemberType2["TypeAlias"] = "type_alias";
|
|
126
128
|
})(MemberType || (MemberType = {}));
|
|
127
129
|
var DecoratorType;
|
|
128
130
|
(function(DecoratorType2) {
|
|
@@ -1125,7 +1127,8 @@ function extractTypeAlias(declaration) {
|
|
|
1125
1127
|
generics: extractGenerics(declaration),
|
|
1126
1128
|
rawComment: extractRawJsDoc(declaration),
|
|
1127
1129
|
description: extractJsDocDescription(declaration),
|
|
1128
|
-
jsdocTags: extractJsDocTags(declaration)
|
|
1130
|
+
jsdocTags: extractJsDocTags(declaration),
|
|
1131
|
+
members: []
|
|
1129
1132
|
};
|
|
1130
1133
|
}
|
|
1131
1134
|
|
|
@@ -1239,13 +1242,24 @@ var DocsExtractor = class {
|
|
|
1239
1242
|
if (entries.length > 1) {
|
|
1240
1243
|
const typeAlias = entries.find(isTypeAliasEntry);
|
|
1241
1244
|
const namespace = entries.find(isNamespaceEntry);
|
|
1245
|
+
const interfaceEntry = entries.find(isInterfaceEntry);
|
|
1242
1246
|
if (typeAlias && namespace) {
|
|
1243
|
-
typeAlias.members
|
|
1247
|
+
typeAlias.members.push(...this.getTypeMembersFromNamespace(namespace));
|
|
1244
1248
|
return typeAlias;
|
|
1245
1249
|
}
|
|
1250
|
+
if (interfaceEntry && namespace) {
|
|
1251
|
+
interfaceEntry.members.push(...this.getTypeMembersFromNamespace(namespace));
|
|
1252
|
+
}
|
|
1246
1253
|
}
|
|
1247
1254
|
return entry ?? null;
|
|
1248
1255
|
}
|
|
1256
|
+
getTypeMembersFromNamespace(namespace) {
|
|
1257
|
+
return namespace.members.filter((e) => isInterfaceEntry(e) || isTypeAliasEntry(e)).map((e) => ({
|
|
1258
|
+
...e,
|
|
1259
|
+
memberType: e.entryType === EntryType.Interface ? MemberType.Interface : MemberType.TypeAlias,
|
|
1260
|
+
memberTags: []
|
|
1261
|
+
}));
|
|
1262
|
+
}
|
|
1249
1263
|
/** Extract the doc entry for a single declaration. */
|
|
1250
1264
|
extractDeclaration(node) {
|
|
1251
1265
|
if (isNamedClassDeclaration(node)) {
|
|
@@ -1319,6 +1333,9 @@ function isTypeAliasEntry(e) {
|
|
|
1319
1333
|
function isNamespaceEntry(e) {
|
|
1320
1334
|
return e?.entryType === EntryType.Namespace;
|
|
1321
1335
|
}
|
|
1336
|
+
function isInterfaceEntry(e) {
|
|
1337
|
+
return e?.entryType === EntryType.Interface;
|
|
1338
|
+
}
|
|
1322
1339
|
|
|
1323
1340
|
// packages/compiler-cli/src/ngtsc/core/api/src/public_options.js
|
|
1324
1341
|
var DiagnosticCategoryLabel;
|