UNPKG

what-to-play

Version:

Score aggregator for lists of games

18 lines (17 loc) 572 B
import { MetacriticPlatform } from "./platform"; export interface MetacriticResult { name: string; url: string; /** * can assume that if metascore is present, the corresponding url will be present */ metascore?: number; /** * can assume that if userscore is present, the corresponding url will be present */ userscore?: number; releaseDate: string; metascoreUrl?: string; userscoreUrl?: string; } export declare function getData(game: string, platforms: MetacriticPlatform[]): Promise<MetacriticResult | undefined>;