Zum Inhalt springen
CtrlK

FrontmatterValidationConfig

Auf dieser Seite
Diese API-Referenz wird aus den englischen TypeScript-Quellkommentaren erzeugt. Namen, Signaturen und Beispiele entsprechen dem veröffentlichten Paket.
import type { FrontmatterValidationConfig } from "ardo/config"

type FrontmatterValidationConfig = {
    /** How to report unsupported frontmatter keys. Defaults to `ignore` for compatibility. */
    unknown?: DiagnosticLevel;
    /** How to report known frontmatter keys with an invalid value. Defaults to `warn`. */
    invalid?: DiagnosticLevel;
};

Properties

NameTypeRequiredDescription
unknownDiagnosticLevelNoHow to report unsupported frontmatter keys. Defaults to ignore for compatibility.
invalidDiagnosticLevelNoHow to report known frontmatter keys with an invalid value. Defaults to warn.