group TS interfaces to avoid redundancy

This commit is contained in:
p2405951
2026-03-18 11:29:02 +01:00
parent b44470ce90
commit 15bb9126cd
5 changed files with 20 additions and 58 deletions
+1 -20
View File
@@ -1,24 +1,5 @@
import { createContext } from "react";
export interface Task {
id: number;
title?: string;
completed?: boolean;
[key: string]: unknown;
}
export interface User {
id: number
name: string;
lastname: string;
role: string;
email: string;
phone: string | null;
created_at: string;
profile_photo_path?: string | null;
tasks: Task[];
}
import User from "./../../interfaces/user.interface"
export interface AuthContextType {
user: User | null;