fix: fix types
This commit is contained in:
14
src/test/define.ts
Normal file
14
src/test/define.ts
Normal 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';
|
||||
});
|
||||
Reference in New Issue
Block a user