// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import { Type } from "../type.ts";

export const str = new Type("tag:yaml.org,2002:str", {
  construct(data): string {
    return data !== null ? data : "";
  },
  kind: "scalar",
});

// denoCacheMetadata={"headers":{"report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Rq3d7TsgrYEXUFQIrwwrTOqQl%2F7ene9Q1MSqo0B1Zt7gQKGIc79r6S6qHjWiiTtTZ3LNuy7nR1bvA6hMntbYKWEwYQ8ND%2FcxQPUDytXasOqadR0%2BKVe2PPI%3D\"}]}","vary":"Origin","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","x-jsr-backend":"modules","content-type":"text/typescript","age":"1699996","access-control-expose-headers":"*","alt-svc":"h3=\":443\"; ma=86400","accept-ranges":"bytes","server":"cloudflare","cross-origin-resource-policy":"cross-origin","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","date":"Tue, 28 Jul 2026 12:31:15 GMT","access-control-allow-origin":"*","content-length":"377","cache-control":"public, max-age=31536000, immutable","set-cookie":"__cf_bm=afbpGMi2y9AGkIQ090zSKpQHAfl5qERIQBqTi_vz_AA-1785241875.3044708-1.0.1.1-8JAEtOz3CayJTzWoR7_UDVaPfSKa4.idvIvdLDO6gr4P_HL5uiRseBxpiNmhPAKM1voNNp6OyXqMZ_XHD2jjW89QjwZABSUxI2bBO0PH3z58N2EffwvgvfkdeL0PI6XL; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","cf-ray":"a223e658ad107db6-LAX","etag":"\"31ea4e6d25cc3635414e8fc87bb122f0\"","x-content-type-options":"nosniff","cf-cache-status":"HIT","x-robots-tag":"noindex"},"url":"https://jsr.io/@std/yaml/0.224.3/_type/str.ts","time":1785241875}