import { Directives } from "https://deno.land/x/windmill@v1.354.0/node_modules/yaml/dist/doc/directives.d.ts";
Constructors
new
Directives(yaml?: Directives["yaml"], tags?: Directives["tags"])Properties
Used when parsing YAML 1.1, where:
If the document specifies no directives, it is parsed using the same settings as the previous document. If the document does specify any directives, all directives of previous documents, if any, are ignored.
Methods
add(line: string, onError: () => void): boolean
offset: number,
message: string,
warning?: boolean,
During parsing, get a Directives instance for the current document and update the stream state according to the current version's spec.
clone(): Directives
tagName(source: string, onError: (message: string) => void): string | null
Resolves a tag, matching handles to those defined in %TAG directives.
tagString(tag: string): string
Given a fully resolved tag, returns its printable string form, taking into account current tag prefixes and defaults.
Static Properties
defaultTags: Directives["tags"]
defaultYaml: Directives["yaml"]