mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(router): add type annotation for UrlSegment.parameterMap (#44175)
Having the type specified explicitly makes the API reference more readable. PR Close #44175
This commit is contained in:
committed by
Andrew Kushnir
parent
b7fd9ebf1d
commit
aac579d976
@@ -293,7 +293,7 @@ export class UrlSegment {
|
||||
/** The matrix parameters associated with a segment */
|
||||
public parameters: {[name: string]: string}) {}
|
||||
|
||||
get parameterMap() {
|
||||
get parameterMap(): ParamMap {
|
||||
if (!this._parameterMap) {
|
||||
this._parameterMap = convertToParamMap(this.parameters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user