@angular/compiler 20.1.4 → 20.1.5
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/fesm2022/compiler.mjs +14 -12
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +11 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.
|
|
2
|
+
* @license Angular v20.1.5
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5381,18 +5381,21 @@ type ScopedNode = Template | SwitchBlockCase | IfBlockBranch | ForLoopBlock | Fo
|
|
|
5381
5381
|
/** Possible values that a reference can be resolved to. */
|
|
5382
5382
|
type ReferenceTarget<DirectiveT> = {
|
|
5383
5383
|
directive: DirectiveT;
|
|
5384
|
-
node: DirectiveOwner
|
|
5384
|
+
node: Exclude<DirectiveOwner, HostElement>;
|
|
5385
5385
|
} | Element | Template;
|
|
5386
5386
|
/** Entity that is local to the template and defined within the template. */
|
|
5387
5387
|
type TemplateEntity = Reference | Variable | LetDeclaration;
|
|
5388
5388
|
/** Nodes that can have directives applied to them. */
|
|
5389
|
-
type DirectiveOwner = Element | Template | Component | Directive;
|
|
5389
|
+
type DirectiveOwner = Element | Template | Component | Directive | HostElement;
|
|
5390
5390
|
/**
|
|
5391
5391
|
* A logical target for analysis, which could contain a template or other types of bindings.
|
|
5392
5392
|
*/
|
|
5393
|
-
interface Target {
|
|
5393
|
+
interface Target<DirectiveT> {
|
|
5394
5394
|
template?: Node[];
|
|
5395
|
-
host?:
|
|
5395
|
+
host?: {
|
|
5396
|
+
node: HostElement;
|
|
5397
|
+
directives: DirectiveT[];
|
|
5398
|
+
};
|
|
5396
5399
|
}
|
|
5397
5400
|
/**
|
|
5398
5401
|
* A data structure which can indicate whether a given property name is present or not.
|
|
@@ -5469,7 +5472,7 @@ interface DirectiveMeta {
|
|
|
5469
5472
|
* The returned `BoundTarget` has an API for extracting information about the processed target.
|
|
5470
5473
|
*/
|
|
5471
5474
|
interface TargetBinder<D extends DirectiveMeta> {
|
|
5472
|
-
bind(target: Target): BoundTarget<D>;
|
|
5475
|
+
bind(target: Target<D>): BoundTarget<D>;
|
|
5473
5476
|
}
|
|
5474
5477
|
/**
|
|
5475
5478
|
* Result of performing the binding operation against a `Target`.
|
|
@@ -5483,7 +5486,7 @@ interface BoundTarget<DirectiveT extends DirectiveMeta> {
|
|
|
5483
5486
|
/**
|
|
5484
5487
|
* Get the original `Target` that was bound.
|
|
5485
5488
|
*/
|
|
5486
|
-
readonly target: Target
|
|
5489
|
+
readonly target: Target<DirectiveT>;
|
|
5487
5490
|
/**
|
|
5488
5491
|
* For a given template node (either an `Element` or a `Template`), get the set of directives
|
|
5489
5492
|
* which matched the node, if any.
|
|
@@ -5608,7 +5611,7 @@ declare class R3TargetBinder<DirectiveT extends DirectiveMeta> implements Target
|
|
|
5608
5611
|
* Perform a binding operation on the given `Target` and return a `BoundTarget` which contains
|
|
5609
5612
|
* metadata about the types referenced in the template.
|
|
5610
5613
|
*/
|
|
5611
|
-
bind(target: Target): BoundTarget<DirectiveT>;
|
|
5614
|
+
bind(target: Target<DirectiveT>): BoundTarget<DirectiveT>;
|
|
5612
5615
|
}
|
|
5613
5616
|
|
|
5614
5617
|
/*!
|