songlink-api
Version:
NodeJS client to query song.link's API
18 lines (17 loc) • 472 B
TypeScript
import { SonglinkPlatform } from './Platform';
declare type BaseParams = {
userCountry?: string;
};
declare type RequestParamsUrl = BaseParams & {
url: string;
platform?: SonglinkPlatform;
type?: 'song' | 'album';
id?: string;
};
declare type RequestParamsNoUrl = BaseParams & {
platform: SonglinkPlatform;
type: 'song' | 'album';
id: string;
};
export declare type SonglinkRequestParams = RequestParamsNoUrl | RequestParamsUrl;
export {};