ts-lambda-api - v2.5.2
    Preparing search index...

    Class Directives

    Index

    Constructors

    • Parameters

      • Optionalyaml: { explicit?: boolean; version: "1.1" | "1.2" | "next" }
      • Optionaltags: Record<string, string>

      Returns Directives

    Properties

    docEnd: boolean

    The doc-end marker ....

    docStart: true

    The directives-end/doc-start marker ---. If null, a marker may still be included in the document's stringified representation.

    tags: Record<string, string>
    yaml: { explicit?: boolean; version: "1.1" | "1.2" | "next" }
    defaultTags: Record<string, string>
    defaultYaml: { explicit?: boolean; version: "1.1" | "1.2" | "next" }

    Methods

    • Parameters

      • line: string
      • onError: (offset: number, message: string, warning?: boolean) => void

        May be called even if the action was successful

      Returns boolean

      true on success

    • During parsing, get a Directives instance for the current document and update the stream state according to the current version's spec.

      Returns Directives

    • Resolves a tag, matching handles to those defined in %TAG directives.

      Parameters

      • source: string
      • onError: (message: string) => void

      Returns string

      Resolved tag, which may also be the non-specific tag '!' or a '!local' tag, or null if unresolvable.

    • Given a fully resolved tag, returns its printable string form, taking into account current tag prefixes and defaults.

      Parameters

      • tag: string

      Returns string

    • Parameters

      Returns string