UNPKG

@eventcatalog/linter

Version:

A linter for EventCatalog to validate frontmatter and resource references

17 lines 509 B
import { CatalogFile } from '../scanner'; export interface ParsedFile { file: CatalogFile; frontmatter: Record<string, unknown>; content: string; raw: string; } export interface ParseError { file: CatalogFile; error: Error; } export declare const parseFrontmatter: (file: CatalogFile) => Promise<ParsedFile | ParseError>; export declare const parseAllFiles: (files: CatalogFile[]) => Promise<{ parsed: ParsedFile[]; errors: ParseError[]; }>; //# sourceMappingURL=index.d.ts.map