Skip to main content
getRequest<T>(path): Promise<FetchResult<T>>
Defined in: packages/reddit-helpers/src/lib/reddit.ts:89 A tiny wrapper around Json(safeFetch) that implements fetchBearer to set the proper headers and adds the BaseUrl for the base path.

Type Parameters

T

T extends object

Parameters

path

string The Reddit Path to fetch

Returns

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