UNPKG

@spotify/web-api-ts-sdk

Version:
9 lines (8 loc) 584 B
import type { ItemTypes, Market, MaxInt, SearchResults } from '../types.js'; import EndpointsBase from './EndpointsBase.js'; export interface SearchExecutionFunction { <const T extends readonly ItemTypes[]>(q: string, type: T, market?: Market, limit?: MaxInt<50>, offset?: number, include_external?: string): Promise<SearchResults<T>>; } export default class SearchEndpoints extends EndpointsBase { execute<const T extends readonly ItemTypes[]>(q: string, type: T, market?: Market, limit?: MaxInt<50>, offset?: number, include_external?: string): Promise<SearchResults<T>>; }