@userfrosting/sprinkle-account
Version:
Account Sprinkle for UserFrosting
33 lines (32 loc) • 1.08 kB
TypeScript
import { ApiErrorResponse } from '@userfrosting/sprinkle-core/interfaces';
import { ProfileEditRequest } from '../interfaces';
/**
* API Composable
*/
export declare function useUserProfileEditApi(): {
submitProfileEdit: (data: ProfileEditRequest) => Promise<void>;
apiLoading: import('vue').Ref<boolean, boolean>;
apiError: import('vue').Ref<{
title: string;
description: string;
status: number;
} | null, ApiErrorResponse | {
title: string;
description: string;
status: number;
} | null>;
formData: import('vue').Ref<{
first_name: string;
last_name: string;
locale: string;
}, ProfileEditRequest | {
first_name: string;
last_name: string;
locale: string;
}>;
r$: import('vue').Raw<import('@regle/core').RegleRoot<{
first_name: string;
last_name: string;
locale: string;
}, Record<string, any>, Record<string, import('@regle/core').RegleValidationGroupEntry[]>, import('@regle/core').RegleShortcutDefinition<any>>>;
};