Generic Commit; Most likely a fix or small feature
This commit is contained in:
40
dist/types.d.ts
vendored
Normal file
40
dist/types.d.ts
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
export interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
name: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
export interface UserProfile extends User {
|
||||
bio?: string;
|
||||
avatarUrl?: string;
|
||||
}
|
||||
export interface ApiResponse<T> {
|
||||
success: boolean;
|
||||
data?: T;
|
||||
error?: string;
|
||||
message?: string;
|
||||
}
|
||||
export interface PaginatedResponse<T> extends ApiResponse<T[]> {
|
||||
page: number;
|
||||
pageSize: number;
|
||||
totalPages: number;
|
||||
totalItems: number;
|
||||
}
|
||||
export type Nullable<T> = T | null;
|
||||
export type Optional<T> = T | undefined;
|
||||
export type ID = string | number;
|
||||
export declare enum Status {
|
||||
Active = "active",
|
||||
Inactive = "inactive",
|
||||
Pending = "pending",
|
||||
Archived = "archived"
|
||||
}
|
||||
export declare enum HttpMethod {
|
||||
GET = "GET",
|
||||
POST = "POST",
|
||||
PUT = "PUT",
|
||||
PATCH = "PATCH",
|
||||
DELETE = "DELETE"
|
||||
}
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
Reference in New Issue
Block a user