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:
Alex Rickabaugh
2026-07-29 22:40:33 +00:00
committed by Jessica Janiuk
parent 601d1f6576
commit 2c72fe3797
@@ -623,4 +623,4 @@ export type RawScopeInfoFromDecorator =
| ModuleWithProviders<any>
| (() => Type<any>)
| (() => ModuleWithProviders<any>)
| any[];
| readonly any[];