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

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

export const seq = new Type("tag:yaml.org,2002:seq", {
  construct(data): Any {
    return data !== null ? data : [];
  },
  kind: "sequence",
});

// denoCacheMetadata={"headers":{"cache-control":"public, max-age=31536000, immutable","content-type":"text/typescript","x-robots-tag":"noindex","content-length":"492","access-control-allow-origin":"*","server":"cloudflare","cf-ray":"a223e6589cf87db6-LAX","cross-origin-resource-policy":"cross-origin","age":"1643671","date":"Tue, 28 Jul 2026 12:31:15 GMT","x-jsr-backend":"modules","set-cookie":"__cf_bm=HmUl3SRuJ4NQ9wMQTFlvNxd6CU5qPHmyBXxlQWfC1js-1785241875.3010206-1.0.1.1-uyzVlQWlRhGSgTGgHBu9EDQdu3pFcp2siQXXG.dIEK13TOUKLIwECNAYzs7H5mvuowfSdLV2pTQnK5baBtbJb2fFMTP8CBoNjcNiEApka8PAe6XYPu3AwGfWerRVNGki; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","accept-ranges":"bytes","x-content-type-options":"nosniff","alt-svc":"h3=\":443\"; ma=86400","cf-cache-status":"HIT","vary":"Origin","access-control-expose-headers":"*","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';","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=04tLJr%2FBvC1jcXiynHvpEB%2F8vLqU%2BHXSaHZf09JjuBLC3f68rB0L0EmbINHE6DtcwuLqVOVTM2cbeCtVYTVH9Uocs4YQ8UlR1pUfJLJOf%2BIqgJsNaaFXgkI%3D\"}]}","etag":"\"12ad8b1e1150c3d790e0031eb0434d72\""},"url":"https://jsr.io/@std/yaml/0.224.3/_type/seq.ts","time":1785241875}