Skip to content

fix(router): Add strict typing on 'getResolvedTitleForRoute'#68746

Open
atscott wants to merge 1 commit into
angular:mainfrom
atscott:getresolvedtitletype
Open

fix(router): Add strict typing on 'getResolvedTitleForRoute'#68746
atscott wants to merge 1 commit into
angular:mainfrom
atscott:getresolvedtitletype

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented May 15, 2026

The title property in Router type already requires that the return type of a resolved title is a string. The type was looser here only because 'data' values are typed as 'any'.

(technically could be considered breaking. If we have a green TGP I'm going to consider this not)

The title property in Router type already requires that the return type of a resolved
title is a string. The type was looser here only because 'data' values are typed
as 'any'.
@atscott atscott added the target: rc This PR is targeted for the next release-candidate label May 15, 2026
@pullapprove pullapprove Bot requested review from crisbeto and kirjs May 15, 2026 16:35
@pullapprove pullapprove Bot requested a review from crisbeto May 15, 2026 16:56
@leonsenft leonsenft added this to the Backlog milestone May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: router target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants