fix(core): Attribute
decorator attributeName
is mandatory (#38131)
`Attribute` decorator has defined `attributeName` as optional but actually its mandatory and compiler throws an error if `attributeName` is undefined. Made `attributeName` mandatory in the `Attribute` decorator to reflect this functionality Fixes #32658 PR Close #38131
This commit is contained in:
2
goldens/public-api/core/core.d.ts
vendored
2
goldens/public-api/core/core.d.ts
vendored
@ -53,7 +53,7 @@ export declare function asNativeElements(debugEls: DebugElement[]): any;
|
||||
export declare function assertPlatform(requiredToken: any): PlatformRef;
|
||||
|
||||
export declare interface Attribute {
|
||||
attributeName?: string;
|
||||
attributeName: string;
|
||||
}
|
||||
|
||||
export declare const Attribute: AttributeDecorator;
|
||||
|
Reference in New Issue
Block a user