// 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 { Type } from "../_type.ts";

export const seq: Type<"sequence", unknown[]> = {
  tag: "tag:yaml.org,2002:seq",
  kind: "sequence",
  resolve: (): boolean => true,
  construct: (data: unknown[] | null): unknown[] => data !== null ? data : [],
};

// denoCacheMetadata={"headers":{"cf-ray":"a223e6590e5c7db6-LAX","server":"cloudflare","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Ku%2B62JlEnhsopVpYmZfz18ppEi6RsXX6IQmAZDW%2FCfIiRiDU%2Bxd%2BQ9E2q8JglEkEZLldVTeyFg0U4EB34WYApMfFO47eEfhOra5MSZQ7DXZpRzDePVisccs%3D\"}]}","cross-origin-resource-policy":"cross-origin","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","age":"50701","etag":"\"814c7b5aecf271fb186fc584b767bc78\"","cf-cache-status":"HIT","access-control-expose-headers":"*","x-jsr-backend":"modules","x-robots-tag":"noindex","cache-control":"public, max-age=31536000, immutable","content-length":"526","accept-ranges":"bytes","alt-svc":"h3=\":443\"; ma=86400","date":"Tue, 28 Jul 2026 12:31:15 GMT","vary":"Origin","access-control-allow-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';","content-type":"text/typescript","x-content-type-options":"nosniff","set-cookie":"__cf_bm=_DiGr81pvYmDCPLYIaFCmD8YBiHt77YtkFFOiT1ubxI-1785241875.3744805-1.0.1.1-efTlzKhxneC2ZqAZHmlZcz83rqQJ1qAcOKErFLbolEc9.V8q17AG0rd.a.acZWv53nGtcdDjt.UhBrgZ2QP_lG_KXN.E_ysCfuw7y7Uz6D7S9ZSZg5pSYaPNiBLSbIEF; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT"},"url":"https://jsr.io/@std/yaml/1.0.5/_type/seq.ts","time":1785241875}