osu-api-extended
Version:
Advanced osu! api wrapper cover all V2 and V1 endpoints, and provide useful tools
18 lines (17 loc) • 564 B
TypeScript
import { IDefaultParams, IError } from "../../types";
type params = ({
type: 'favourite';
/** beatmap set id */
id: number;
status: boolean;
} | {
type: 'tag';
/** beatmap id */
id: number;
/** tag name */
name: string;
status: boolean;
});
type Response<T extends params['type']> = T extends 'favourite' ? string & IError : T extends 'tag' ? string & IError : IError;
export declare const beatmaps_actions: <T extends params>(params: T, addons?: IDefaultParams) => Promise<Response<T["type"]>>;
export {};