Skip to content

refactor: eliminate 'any' type in cdk coercion utilities#32889

Closed
jamOne- wants to merge 1 commit intoangular:mainfrom
jamOne-:refactor/type-safety/batch-001-cdk-coercion
Closed

refactor: eliminate 'any' type in cdk coercion utilities#32889
jamOne- wants to merge 1 commit intoangular:mainfrom
jamOne-:refactor/type-safety/batch-001-cdk-coercion

Conversation

@jamOne-
Copy link
Copy Markdown
Contributor

@jamOne- jamOne- commented Mar 5, 2026

String(foo) vs ${foo}: change is required because TypeScript doesn't allow implicit string coercion in template literals (like ${foo}) when the type is unknown. Using String(foo) behaves exactly the same way at runtime but explicitly tells the TypeScript compiler that the conversion is intentional and safe.

@jamOne- jamOne- force-pushed the refactor/type-safety/batch-001-cdk-coercion branch from 7e3a425 to ff2107f Compare March 5, 2026 09:02
@angular-robot
Copy link
Copy Markdown
Contributor

angular-robot bot commented Apr 17, 2026

This draft PR is being closed because it has been stale for 28 days and has seen no activity from you. If you'd like to see this change land, you can re-open this PR. Thank you for being an Angular contributor!

@angular-robot angular-robot bot closed this Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant