← @mortar-kit/core

contentReaderfunction

import { contentReader } from '@mortar-kit/core'

function contentReader(source: ContentSource): ContentReader

A typed reader over a source. No caching of its own: the source decides. Options left undefined ({ where: undefined }) are dropped, so they can cross a server function, whose arguments must be plain JSON.

Parameters

Returns

ContentReader