frontend init
This commit is contained in:
20
front/src/types/index.ts
Normal file
20
front/src/types/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
export interface User {
|
||||
username: string
|
||||
email: string
|
||||
}
|
||||
|
||||
export interface LoginCredentials {
|
||||
email: string
|
||||
password: string
|
||||
}
|
||||
|
||||
export interface SignupCredentials {
|
||||
username: string
|
||||
email: string
|
||||
password: string
|
||||
}
|
||||
|
||||
export interface AuthResponse {
|
||||
user: User
|
||||
token: string
|
||||
}
|
||||
Reference in New Issue
Block a user