@loom-io/front-matter-converter
Version:
Convert front matter yaml and json into json from loom-io files
6 lines (5 loc) • 348 B
TypeScript
import type { LineResult, LoomFile } from "@loom-io/core/internal";
import { type DataFormat } from "./utils.js";
export declare function readFrontMatter(line: LineResult): Promise<string>;
export declare function readContent(line: LineResult): Promise<string>;
export declare function parse<T>(file: LoomFile): Promise<DataFormat<T | undefined>>;