get-express-starter
Version:
Get production ready express boilerplate with a single command
27 lines (22 loc) • 498 B
text/typescript
import type { UserRole } from '@prisma/client';
export interface User {
id: string;
name: string;
email: string;
role: UserRole;
isEmailVerified: boolean;
}
export interface PaginationOptions {
page?: number | string;
limit?: number | string;
sortBy?: string;
include?: string;
}
export type PaginationFilters = Record<string, string | any>;
export interface PaginateResult<T> {
results: T[];
page: number;
limit: number;
totalPages: number;
totalResults: number;
}