mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
7fd416d060
Route.pathMatch only allows `'full'|'prefix'` in reality. This commit adjusts the type to be more strict and also adds a migration to adjust existing code. resolves #37469 BREAKING CHANGE: The type of `Route.pathMatch` is now more strict. Places that use `pathMatch` will likely need to be updated to have an explicit `Route`/`Routes` type so that TypeScript does not infer the type as `string`. PR Close #45176