Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 2x | import { Params, Schema } from '@/types/v2';
import type { V2 } from '@/apis/v2';
import { AchievementGroup } from '@/types/v2/achievement';
export type Options<V extends Schema, Ids extends Params.Ids<string>> = V2.Options<V, true> & {
/**
* The achievement group ids.
* @example
* 'all' // Returns all of the groups
* '18DB115A-8637-4290-A636-821362A3C4A8' // Returns the Daily Achievements Group
*/
ids?: 'all' | Ids;
};
export type Response<V extends Schema, Ids extends Params.Ids<string>> = Ids extends undefined
? string[]
: AchievementGroup<V>[];
export function list<V extends Schema, O extends Schema = V, Ids extends Params.Ids<string> = undefined>(
this: V2.API<V>,
options?: Options<O, Ids>
) {
return this.fetch<Response<V, Ids>>('/v2/achievements/groups', {
params: options,
});
}
|