chore: bump version to 0.0.50, update dependencies, and enhance createQueryByRoutes with options
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user