Skip to content

Commit ebea30e

Browse files
fix(transition): Fix typing of Transition.params()
1 parent 413bc6a commit ebea30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transition/transition.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export class Transition implements IHookRegistry {
280280
*
281281
* @returns transition parameter values for the desired path.
282282
*/
283-
params(pathname?: string): any;
283+
params(pathname?: string): { [paramName: string]: any };
284284
params<T>(pathname?: string): T;
285285
params(pathname = 'to') {
286286
return Object.freeze(this._treeChanges[pathname].map(prop('paramValues')).reduce(mergeR, {}));

0 commit comments

Comments
 (0)