UNPKG

@loom-io/front-matter-converter

Version:

Convert front matter yaml and json into json from loom-io files

14 lines (13 loc) 480 B
import type { LineResult } from "@loom-io/core/internal"; export declare function hasFrontMatter(line: LineResult): Promise<boolean>; export declare function getFrontMatterConverter(firstLine: LineResult): Promise<{ parse: (content: string) => unknown; stringify: (content: unknown) => string; }>; export declare class FrontMatterTypeNotSupportedException extends Error { constructor(type: string); } export type DataFormat<T> = { data: T; content: string; };