ContentLoader #
The loader createContentLoader returns. It is a loader with watch, and its load() can also be called without arguments.
Fields #
watchstring | string[]
Glob pattern, or a list of them, for the files to watch. Relative patterns start from the loader file.
optionsoptionalDataLoaderOptions
Extra options of the loader.
load(watchedFiles?: string[]): Promise<T>
Produces the pages. Without arguments it reads the files watch matches.
Full type signature
TypeScript
interface ContentLoader<T = ContentData[]> extends WatchDataLoader<T> {
watch: string | string[]
options?: DataLoaderOptions
load: (watchedFiles?: string[]) => Promise<T>
}

Comments