Function: createMdFrontmatterBuilder()
ts
function createMdFrontmatterBuilder<T>(pathOrGlob, kind?): MdFrontmatterSourceBuilder<T>;Defined in: markdown/src/builders/create-md-frontmatter-builder.ts:17
Builds a MdFrontmatterSourceBuilder<T> for md.frontmatter(pathOrGlob).
Sets id: "md:${kind}:${pathOrGlob}" and kind on the passive MarkdownFrontmatterSourceNode<T> so executeMarkdownFrontmatterSource dispatches deterministically.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
T | unknown | Resolved frontmatter payload type. |
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
pathOrGlob | string | undefined | Host-root-relative file path or glob pattern. |
kind? | NonNullable< | "global-rules" | "scoped-rule" | "scoped-rules" | "skill" | "skills" | "frontmatter" | undefined> | 'frontmatter' | Optional loader kind discriminant ('frontmatter' default). |
Returns
Frozen MdFrontmatterSourceBuilder<T> instance.