UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

13 lines (12 loc) 625 B
import { Content, FlowMappingItem, FlowSequenceItem, Position } from "../types.js"; export declare function createFlowCollection<T extends FlowMappingItem | FlowSequenceItem>(position: Position, content: Content, children: T[]): { children: T[]; anchor: import("../types.js").Anchor | null; tag: import("../types.js").Tag | null; middleComments: import("../types.js").Comment[]; endComments: import("../types.js").Comment[]; leadingComments: import("../types.js").Comment[]; trailingComment: import("../types.js").Comment | null; type: "flowCollection"; position: Position; };