Skip to content

readerFetchJson

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/app/p/[slugId]/lib/readerFetch.ts

Convenience: readerFetch + JSON parse (returns null on non-ok, rethrows ReaderAccessError).

Signature

ts
async function readerFetchJson(path: string, opts: ReaderFetchOpts): Promise<T | null>

Parameters

NameType
pathstring
optsReaderFetchOpts

Returns: Promise<T | null>

Was this page helpful?

Download as PDF