nuxt-users
Version:
A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools
49 lines (48 loc) • 1.86 kB
TypeScript
interface Props {
apiEndpoint?: string;
forgotPasswordEndpoint?: string;
redirectTo?: string;
}
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {
message: string;
}, __VLS_15: {
error: string;
};
type __VLS_Slots = {} & {
header?: (props: typeof __VLS_1) => any;
} & {
'email-field'?: (props: typeof __VLS_3) => any;
} & {
'password-field'?: (props: typeof __VLS_5) => any;
} & {
'remember-me'?: (props: typeof __VLS_7) => any;
} & {
'submit-button'?: (props: typeof __VLS_9) => any;
} & {
footer?: (props: typeof __VLS_11) => any;
} & {
'success-message'?: (props: typeof __VLS_13) => any;
} & {
'error-message'?: (props: typeof __VLS_15) => any;
};
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
success: (user: UserWithoutPassword, rememberMe: boolean) => any;
error: (error: string) => any;
submit: (data: LoginFormData) => any;
"forgot-password-error": (error: string) => any;
"forgot-password-success": () => any;
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
onSuccess?: ((user: UserWithoutPassword, rememberMe: boolean) => any) | undefined;
onError?: ((error: string) => any) | undefined;
onSubmit?: ((data: LoginFormData) => any) | undefined;
"onForgot-password-error"?: ((error: string) => any) | undefined;
"onForgot-password-success"?: (() => any) | undefined;
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};