mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(core): allow readonly arrays in RawScopeInfoFromDecorator
When components pass arrays or readonly tuples to decorator metadata fields (such as ), typechecking generated decorator reflection metadata causes a TS2322 type mismatch error because previously only accepted mutable .
This change updates to accept , allowing arrays and readonly tuples to be assigned without TypeScript compilation errors.
(cherry picked from commit eee9ef4d09)
This commit is contained in:
committed by
Jessica Janiuk
parent
601d1f6576
commit
2c72fe3797
@@ -623,4 +623,4 @@ export type RawScopeInfoFromDecorator =
|
||||
| ModuleWithProviders<any>
|
||||
| (() => Type<any>)
|
||||
| (() => ModuleWithProviders<any>)
|
||||
| any[];
|
||||
| readonly any[];
|
||||
|
||||
Reference in New Issue
Block a user