fix(core): Fix TypeScript type definition for route match function
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartrouter',
|
||||
version: '1.3.1',
|
||||
version: '1.3.2',
|
||||
description: 'A JavaScript library providing routing capabilities for web applications.'
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ export class SmartRouter {
|
||||
* the routes we are handling
|
||||
*/
|
||||
public routes: Array<{
|
||||
matchFunction: plugins.pathToRegExp.MatchFunction;
|
||||
matchFunction: plugins.pathToRegExp.MatchFunction<any>;
|
||||
handler: THandlerFunction;
|
||||
}> = [];
|
||||
|
||||
|
Reference in New Issue
Block a user