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:
Martin von Gagern 2021-11-08 09:23:15 +00:00 committed by Andrew Kushnir
parent b7fd9ebf1d
commit aac579d976

View file

@ -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);
}