UNPKG

632 BTypeScriptView Raw
1declare type UseDeleteAccountMutation = (args: {
2 /**
3 * The message to show in the confirmation dialog.
4 * @default "Are you sure you wish to delete your account?" */
5 confirmationMessage?: string;
6}) => {
7 /** Shows a confirmation dialog in the browser, and then deletes the user if they confirm */
8 confirmDeletion: () => void;
9 /** Whether or not the mutation was successful */
10 success: boolean;
11 /** An error message, if an error occurs during the mutation */
12 error: string | undefined;
13};
14declare const useDeleteAccountMutation: UseDeleteAccountMutation;
15export { useDeleteAccountMutation };