Skip to content

Commit

Permalink
fix(transition): Fix typing of Transition.params()
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Apr 28, 2018
1 parent 413bc6a commit ebea30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transition/transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(pathname?: string): T;
params(pathname = 'to') {
return Object.freeze(this._treeChanges[pathname].map(prop('paramValues')).reduce(mergeR, {}));
Expand Down

0 comments on commit ebea30e

Please sign in to comment.