New Code Editor and fun
This commit is contained in:
26
src/components/types/stats.ts
Normal file
26
src/components/types/stats.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import {z} from "zod";
|
||||
|
||||
export const RankingSchema = z.array(z.object({
|
||||
name: z.string(),
|
||||
elo: z.number(),
|
||||
}))
|
||||
|
||||
export type Ranking = z.infer<typeof RankingSchema>;
|
||||
|
||||
export const FightStatsSchema = z.array(z.object({
|
||||
date: z.string(),
|
||||
gamemode: z.string(),
|
||||
count: z.number(),
|
||||
}))
|
||||
|
||||
export type FightStats = z.infer<typeof FightStatsSchema>;
|
||||
|
||||
export const UserStatsSchema = z.object({
|
||||
eventFightParticipation: z.number(),
|
||||
eventParticipation: z.number(),
|
||||
acceptedSchematics: z.number(),
|
||||
fights: z.number(),
|
||||
playtime: z.number()
|
||||
})
|
||||
|
||||
export type UserStats = z.infer<typeof UserStatsSchema>;
|
||||
Reference in New Issue
Block a user