UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

4 lines (3 loc) 207 B
import { Context } from "../transform.js"; import * as YAML from "../yaml.js"; export declare function extractComments<T extends null | object>(nodes: Array<T | YAML.cst.Comment>, context: Context): T[];