@spotify/web-api-ts-sdk
Version:
A typescript SDK for the Spotify Web API
9 lines (8 loc) • 584 B
TypeScript
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>>;
}