DocumentOptions: {
    _directives?: Directives;
    logLevel?: LogLevelId;
    version?: "1.1" | "1.2" | "next";
}

Type declaration

  • Optional Internal_directives?: Directives

    Used internally by Composer. If set and includes an explicit version, that overrides the version option.

  • OptionallogLevel?: LogLevelId

    Control the logging level during parsing

    Default: 'warn'

  • Optionalversion?: "1.1" | "1.2" | "next"

    The YAML version used by documents without a %YAML directive.

    Default: "1.2"