@leoua/coc-api
Version:
Yet another Clash of Clans API, but with TS support
25 lines (24 loc) • 698 B
TypeScript
/// <reference path="../../types/types.d.ts" />
export interface IClansSearchParams {
name?: string;
warFrequency?: string;
locationId?: number;
minMembers?: number;
maxMembers?: number;
minClanPoints?: number;
minClanLevel?: number;
limit?: number;
after?: string;
before?: string;
labelIds?: string[] | string;
}
export interface IFilter {
key: keyof IClan;
value: string | number | boolean;
}
export default class Clans {
private static _path;
static get path(): string;
private static getClanList;
static get(api: IClashOfClansAPI, params: IClansSearchParams, filters?: IFilter[]): Promise<IClan[]>;
}