From ebea30e00d360dca1cb70ce5a2b781b131881db2 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Sat, 28 Apr 2018 16:05:06 -0700 Subject: [PATCH] fix(transition): Fix typing of Transition.params() --- src/transition/transition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transition/transition.ts b/src/transition/transition.ts index e178ecd6..a9400277 100644 --- a/src/transition/transition.ts +++ b/src/transition/transition.ts @@ -280,7 +280,7 @@ export class Transition implements IHookRegistry { * * @returns transition parameter values for the desired path. */ - params(pathname?: string): any; + params(pathname?: string): { [paramName: string]: any }; params(pathname?: string): T; params(pathname = 'to') { return Object.freeze(this._treeChanges[pathname].map(prop('paramValues')).reduce(mergeR, {}));