refactor: enhance RouteOpts and Route class generics for improved type safety

- Updated RouteOpts to accept an additional generic parameter for metadata type.
- Modified Route class to utilize the new generic parameter for metadata.
- Adjusted the run method in QueryRouterServer for consistent type definitions.
- Improved getList method in QueryRouter to allow filtering of routes.
This commit is contained in:
2025-12-17 11:31:52 +08:00
parent a997dad00b
commit 90ecb8eb93
3 changed files with 357 additions and 194 deletions

View File

@@ -1,7 +1,7 @@
{
"$schema": "https://json.schemastore.org/package",
"name": "@kevisual/router",
"version": "0.0.37",
"version": "0.0.38",
"description": "",
"type": "module",
"main": "./dist/router.js",