We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 413bc6a commit ebea30eCopy full SHA for ebea30e
src/transition/transition.ts
@@ -280,7 +280,7 @@ export class Transition implements IHookRegistry {
280
*
281
* @returns transition parameter values for the desired path.
282
*/
283
- params(pathname?: string): any;
+ params(pathname?: string): { [paramName: string]: any };
284
params<T>(pathname?: string): T;
285
params(pathname = 'to') {
286
return Object.freeze(this._treeChanges[pathname].map(prop('paramValues')).reduce(mergeR, {}));
0 commit comments