UNPKG

489 BTypeScriptView Raw
1declare function matter(str: string, options?: matter.GrayMatterOption): any
2
3declare namespace matter {
4 interface GrayMatterOption {
5 parser?: () => void;
6 eval?: boolean;
7 lang?: string;
8 delims?: string | string[];
9 }
10 export function read(fp: string, options?: GrayMatterOption): any;
11 export function stringify(str: string, data: object, options?: GrayMatterOption): string;
12 export function test(str: string, options?: GrayMatterOption): string;
13}
14
15export = matter