Skip to content

Commit

Permalink
[oversmash] Add missing types (DefinitelyTyped#45073)
Browse files Browse the repository at this point in the history
* [oversmash] Add missing types

* Add missing semicolon
  • Loading branch information
cdias900 authored May 27, 2020
1 parent f758069 commit 184511d
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions types/oversmash/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,21 @@ export interface Statistic {
[key: string]: string | number | null;
}

export interface Game {
export type Game = {
gamesLost: number;
gamesPlayed: number;
gamesTied: number;
gamesWon: number;
timePlayed: string;
}
} & {
games_lost: number;
games_played: number;
games_tied: number;
games_won: number;
time_played: string;
};

export interface Hero {
export type Hero = {
name: string;
combat?: Statistic;
game?: Game;
Expand All @@ -75,7 +84,18 @@ export interface Hero {
assists?: Statistic;
average?: Statistic;
rawName: string;
}
} & {
name: string;
combat?: Statistic;
game?: Game;
best?: Statistic;
misc?: Statistic;
awards?: Statistic;
hero?: Statistic;
assists?: Statistic;
average?: Statistic;
raw_name: string;
};

export interface GameMode {
[key: string]: Hero;
Expand Down

0 comments on commit 184511d

Please sign in to comment.