refactor(compiler): move type
in shared R3PartialDeclaration
interface (#41080)
All interfaces that extend `R3PartialDeclaration` require a `type` property so it makes sense to put it in the base interface. PR Close #41080
This commit is contained in:
parent
12c925a000
commit
be9d059efc
@ -20,6 +20,11 @@ export interface R3PartialDeclaration {
|
|||||||
* to all Angular exports, including Ivy instructions.
|
* to all Angular exports, including Ivy instructions.
|
||||||
*/
|
*/
|
||||||
ngImport: o.Expression;
|
ngImport: o.Expression;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reference to the decorated class, which is subject to this partial declaration.
|
||||||
|
*/
|
||||||
|
type: o.Expression;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -34,11 +39,6 @@ export interface R3DeclareDirectiveMetadata extends R3PartialDeclaration {
|
|||||||
*/
|
*/
|
||||||
selector?: string;
|
selector?: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Reference to the directive class itself.
|
|
||||||
*/
|
|
||||||
type: o.Expression;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A mapping of inputs from class property names to binding property names, or to a tuple of
|
* A mapping of inputs from class property names to binding property names, or to a tuple of
|
||||||
* binding property name and class property name if the names are different.
|
* binding property name and class property name if the names are different.
|
||||||
@ -268,11 +268,6 @@ export interface R3DeclareQueryMetadata {
|
|||||||
* enforced during linking.
|
* enforced during linking.
|
||||||
*/
|
*/
|
||||||
export interface R3DeclarePipeMetadata extends R3PartialDeclaration {
|
export interface R3DeclarePipeMetadata extends R3PartialDeclaration {
|
||||||
/**
|
|
||||||
* Reference to the pipe class itself.
|
|
||||||
*/
|
|
||||||
type: o.Expression;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name to use in templates to refer to this pipe.
|
* The name to use in templates to refer to this pipe.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user