mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
b7fd9ebf1d
commit
aac579d976
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue