// Ported and adapted from js-yaml-js-types v1.0.0:
// https://github.com/nodeca/js-yaml-js-types/tree/ac537e7bbdd3c2cbbd9882ca3919c520c2dc022b
// 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";

export const undefinedType = new Type("tag:yaml.org,2002:js/undefined", {
  kind: "scalar",
  resolve() {
    return true;
  },
  construct() {
    return undefined;
  },
  predicate(object) {
    return typeof object === "undefined";
  },
  represent() {
    return "";
  },
});

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