|
|
@@ -10,6 +10,7 @@ import type { InferResponseType, InferRequestType } from 'hono/client';
|
|
|
|
|
|
type UserListResponse = InferResponseType<typeof userClient.$get, 200>;
|
|
|
type RoleListResponse = InferResponseType<typeof roleClient.$get, 200>;
|
|
|
+type CreateRoleRequest = InferRequestType<typeof roleClient.$post>['json'];
|
|
|
type UserDetailResponse = InferResponseType<typeof userClient[':id']['$get'], 200>;
|
|
|
type CreateUserRequest = InferRequestType<typeof userClient.$post>['json'];
|
|
|
type UpdateUserRequest = InferRequestType<typeof userClient[':id']['$put']>['json'];
|