public async get()

in src/endpoints/ArtistsEndpoints.ts [16:25]


    public async get(idOrIds: string | string[]) {
        if (typeof idOrIds === "string") {
            const artist = this.getRequest<Artist>(`artists/${idOrIds}`);
            return artist;
        }

        const params = this.paramsFor({ ids: idOrIds });
        const response = await this.getRequest<Artists>(`artists${params}`);
        return response.artists;
    }