diff options
Diffstat (limited to 'src/client/api/types.ts')
| -rw-r--r-- | src/client/api/types.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/api/types.ts b/src/client/api/types.ts new file mode 100644 index 0000000..1ba3624 --- /dev/null +++ b/src/client/api/types.ts @@ -0,0 +1,24 @@ +export interface User { + id: string; + username: string; +} + +export interface AuthResponse { + accessToken: string; + refreshToken: string; + user: User; +} + +export interface RegisterResponse { + user: User; +} + +export interface ApiError { + error: string; + code?: string; +} + +export interface Tokens { + accessToken: string; + refreshToken: string; +} |
