chore: bump version to 0.0.50, update dependencies, and enhance createQueryByRoutes with options

This commit is contained in:
2026-02-24 21:06:11 +08:00
parent e019944c47
commit 7109fddae4
5 changed files with 133 additions and 21 deletions

View File

@@ -45,9 +45,11 @@ const api = {
const queryApi = createQueryApi({ api });
export { queryApi };
queryApi.app_domain_manager.get({
const result = await queryApi.app_domain_manager.get<{ id: number }>({
data: {
id: '123',
domain: 'example.com'
}
})
});
result.data.id; // TypeScript 正确推断为 number