nuxt-users
Version:
A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools
45 lines (44 loc) • 1.36 kB
TypeScript
import { type User } from 'nuxt-users/utils';
interface Props {
user: User;
index: number;
displayFields?: string[];
fieldLabels?: Record<string, string>;
}
declare var __VLS_1: {
user: any;
index: number;
}, __VLS_3: {
canEdit: any;
editUser: () => Promise<void>;
user: any;
}, __VLS_5: {
canDelete: any;
deleteUser: () => Promise<void>;
user: any;
};
type __VLS_Slots = {} & {
userCard?: (props: typeof __VLS_1) => any;
} & {
editButton?: (props: typeof __VLS_3) => any;
} & {
deleteButton?: (props: typeof __VLS_5) => any;
};
declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
delete: (user: User) => void;
editClick: (user: User) => void;
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
onDelete?: ((user: User) => any) | undefined;
onEditClick?: ((user: User) => any) | undefined;
}>, {
displayFields: string[];
fieldLabels: Record<string, string>;
}, {}, {}, {}, 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;
};
};