twitch-js
Version:
Javascript library for the Twitch Messaging Interface.
17 lines (16 loc) • 554 B
TypeScript
import { IStringifyOptions } from 'qs';
declare type SearchOption = {
/** Any query parameters you want to add to your request. */
search?: {
[key: string]: any;
};
};
declare type HeaderOption = {
headers?: Record<string, string>;
};
export declare type FetchOptions = Omit<RequestInit, 'headers'> & SearchOption & HeaderOption;
/**
* Fetches URL
*/
declare const fetchUtil: <T = Response>(url: RequestInfo, options?: FetchOptions, qsOptions?: IStringifyOptions | undefined) => Promise<Response | T>;
export default fetchUtil;