UNPKG

osu-api-extended

Version:

Advanced osu! api wrapper for v1 and v2, with extra stuff

10 lines (9 loc) 413 B
import { IDefaultParams, IError } from "../../types"; type params = ({ type: 'favourite'; beatmapset_id: number; add: boolean; }); type Response<T extends params['type']> = T extends 'difficulty' ? any & IError : T extends 'difficulties' ? any & IError : IError; declare const name: <T extends params>(params: T, addons?: IDefaultParams) => Promise<Response<T["type"]>>; export default name;