osu-api-extended
Version:
Advanced osu! api wrapper for v1 and v2, with extra stuff
21 lines (20 loc) • 515 B
TypeScript
import { IError } from "../types";
import { GamemodeEnum } from "../types/enums";
import { AccuracyResponse } from "../types/tools";
type Hits = {
300?: any;
100?: any;
50?: any;
0?: any;
geki?: any;
katu?: any;
perfect?: any;
great?: any;
good?: any;
ok?: any;
meh?: any;
miss?: any;
};
type Response = AccuracyResponse & IError;
export declare const calculate_accuracy: (hits: Hits, mode: GamemodeEnum | string | number) => Response;
export {};