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:
Ajit Singh
2020-07-18 18:35:28 +05:30
committed by Misko Hevery
parent b4449e35bf
commit af80bdb470
3 changed files with 4 additions and 4 deletions

View File

@ -271,7 +271,7 @@ export interface Attribute {
/**
* The name of the attribute whose value can be injected.
*/
attributeName?: string;
attributeName: string;
}
/**