mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
remove backoffice custom authentication
This commit is contained in:
@@ -48,11 +48,11 @@ type UseApiMutationResult<TData> = {
|
||||
};
|
||||
|
||||
export function useApiMutation<TData = unknown>(): [
|
||||
(args: ApiQueryArgs) => Promise<{ data: TData }>,
|
||||
(args: ApiQueryArgs) => Promise<{ data: TData }> & { unwrap: () => Promise<TData> },
|
||||
UseApiMutationResult<TData>,
|
||||
] {
|
||||
return useApiMutationMutation() as unknown as [
|
||||
(args: ApiQueryArgs) => Promise<{ data: TData }>,
|
||||
(args: ApiQueryArgs) => Promise<{ data: TData }> & { unwrap: () => Promise<TData> },
|
||||
UseApiMutationResult<TData>,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user