From 2c72fe3797ff92ead7a2531d32665fac370b4688 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Wed, 29 Jul 2026 22:40:33 +0000 Subject: [PATCH] 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 eee9ef4d09c091e9066ed6074a19c0eee0e84da2) --- packages/core/src/render3/interfaces/definition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/render3/interfaces/definition.ts b/packages/core/src/render3/interfaces/definition.ts index cda2f5ac513..0b1f44283b1 100644 --- a/packages/core/src/render3/interfaces/definition.ts +++ b/packages/core/src/render3/interfaces/definition.ts @@ -623,4 +623,4 @@ export type RawScopeInfoFromDecorator = | ModuleWithProviders | (() => Type) | (() => ModuleWithProviders) - | any[]; + | readonly any[];