Initialize Vyryi front-end project with React, Vite, and TypeScript. Add essential files including configuration, environment variables, and basic structure. Implement authentication, routing, and API interaction for a Telegram Mini App UI. Include README and styling for a cohesive user experience.
This commit is contained in:
33
src/types.ts
Normal file
33
src/types.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
export type User = {
|
||||
id: number
|
||||
telegram_id: number | null
|
||||
username: string | null
|
||||
first_name: string | null
|
||||
balance: string
|
||||
agreement_accepted: boolean
|
||||
agreement_accepted_at: string | null
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export type Deposit = {
|
||||
id: number
|
||||
amount: string
|
||||
created_at: string
|
||||
}
|
||||
|
||||
export type Wallet = {
|
||||
balance: string
|
||||
deposits: Deposit[]
|
||||
}
|
||||
|
||||
export type GameStub = {
|
||||
slug: string
|
||||
title: string
|
||||
description: string
|
||||
status: string
|
||||
}
|
||||
|
||||
export type TokenResponse = {
|
||||
access_token: string
|
||||
token_type: string
|
||||
}
|
||||
Reference in New Issue
Block a user