nuxt-users
Version:
A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools
75 lines (74 loc) • 2.18 kB
TypeScript
import { type DisplayFieldsProps, type User } from '../../types.js';
declare var __VLS_1: {}, __VLS_3: {
loading: boolean;
}, __VLS_5: {
error: string | null;
}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {
user: {
id: number;
email: string;
name: string;
password: string;
role: string;
created_at: string;
updated_at: string;
last_login_at?: string | undefined;
};
index: number;
}, __VLS_22: {
pagination: {
page: number;
limit: number;
total: number;
totalPages: number;
hasNext: boolean;
hasPrev: boolean;
} | null;
}, __VLS_24: {
pagination: {
page: number;
limit: number;
total: number;
totalPages: number;
hasNext: boolean;
hasPrev: boolean;
} | null;
fetchUsers: (page?: number, limit?: number) => Promise<void>;
loading: boolean;
};
type __VLS_Slots = {} & {
title?: (props: typeof __VLS_1) => any;
} & {
loading?: (props: typeof __VLS_3) => any;
} & {
error?: (props: typeof __VLS_5) => any;
} & {
noUsers?: (props: typeof __VLS_7) => any;
} & {
usersList?: (props: typeof __VLS_9) => any;
} & {
user?: (props: typeof __VLS_11) => any;
} & {
paginationInfo?: (props: typeof __VLS_22) => any;
} & {
pagination?: (props: typeof __VLS_24) => any;
};
declare const __VLS_component: import("vue").DefineComponent<DisplayFieldsProps, {
refresh: () => void;
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
delete: (user: User) => void;
editClick: (user: User) => void;
}, string, import("vue").PublicProps, Readonly<DisplayFieldsProps> & 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 _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
export default _default;
type __VLS_WithSlots<T, S> = T & {
new (): {
$slots: S;
};
};