Init
This commit is contained in:
14
shared/types.ts
Normal file
14
shared/types.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
// Shared types between frontend and backend
|
||||
export interface ApiResponse<T> {
|
||||
success: boolean
|
||||
data?: T
|
||||
message?: string
|
||||
}
|
||||
|
||||
export interface HelloResponse {
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface HelloQuery {
|
||||
name?: string
|
||||
}
|
||||
Reference in New Issue
Block a user