Interface: LoadResult
Defined in: index.ts:177
What load returns.
Example
const pages: Loader = {
load: () => ({
entries: [{ slug: "hello" }],
warnings: ["pages: the API is unreachable, so these pages come from the cache"],
}),
};Properties
entries
entries: readonly Entry<TFile>[];Defined in: index.ts:181
In the order documents() returns them.
issues?
issues?: readonly LoadIssue[];Defined in: index.ts:183
Entries that could not be loaded. The rest still load.
warnings?
warnings?: readonly string[];Defined in: index.ts:185
Printed as they are. Say what happens because of them, eg directory "x" does not exist, so collections.get("x") is empty.