Skip to main content
getRequest<T>(path): Promise<FetchResult<T>>
Defined in: twitch.ts:185 A tiny wrapper around Json(safeFetch) that implements fetchBearer to set the proper headers and adds the BaseUrlHelix for the base path.

Type Parameters

T

T extends object

Parameters

path

string The Twitch Path to fetch

Returns

Promise<FetchResult<T>> The response to the request