Interface: LoadIssue
Defined in: index.ts:149
A problem a loader found, eg a file whose frontmatter does not parse. tomekit reports it like a schema error.
Example
const pages: Loader = {
load: () => ({ entries: [], issues: [{ message: "draft has no title. Add one", slug: "draft" }] }),
};
// collections.get("pages").get("draft"): draft has no title. Add oneProperties
cause?
cause?: unknown;Defined in: index.ts:151
What went wrong underneath, eg the error readFile threw. Becomes the ContentError's cause.
column?
column?: number;Defined in: index.ts:153
Starts at 1.
file?
file?: string;Defined in: index.ts:155
The entry's file, relative to the project root.
line?
line?: number;Defined in: index.ts:157
Starts at 1.
message
message: string;Defined in: index.ts:159
What went wrong, then what to do, eg title: expected a string. Add a title.
slug?
slug?: string;Defined in: index.ts:161
The entry's slug, for an entry without a file.