mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
dda781ecce
Currently the `ɵɵdefineComponent` method has incorrect type definitions the `directives` and `pipes` metadata property. The incorrect types allow developers to pass in already instantiated `DirectiveDef` or `ComponentDef` objects. This can cause unexpected failures because the definition internally only expects `Type` objects and now incorrectly tries to read the `ngDirectiveDef` or `ngComponentDef` of existing definitions. This issue has been unveiled by enabling the strict function parameter types flag, where the directive definitions are determined from each array element in the `directives` or `pipes` property (which can throw). PR Close #30993