fix: fix types

This commit is contained in:
2025-05-14 21:04:25 +08:00
parent fc35b531e1
commit aeeb205e1e
12 changed files with 64 additions and 15 deletions

14
src/test/define.ts Normal file
View File

@@ -0,0 +1,14 @@
import { App } from '@/app.ts';
import { QueryUtil } from '@/router-define.ts';
const v = QueryUtil.create({
a: {
path: 'a',
key: 'b',
},
});
const app = new App();
app.route(v.get('a'));
v.chain('a').define<{ f: () => {} }>(async (ctx) => {
// ctx.f = 'sdf';
});