// 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 merge: Type<"scalar", unknown> = {
  tag: "tag:yaml.org,2002:merge",
  kind: "scalar",
  resolve: (data: unknown): boolean => data === "<<" || data === null,
  construct: (data: unknown): unknown => data,
};

// denoCacheMetadata={"headers":{"date":"Tue, 28 Jul 2026 12:31:15 GMT","content-type":"text/typescript","content-length":"531","accept-ranges":"bytes","access-control-allow-origin":"*","access-control-expose-headers":"*","x-jsr-backend":"modules","x-robots-tag":"noindex","x-content-type-options":"nosniff","cf-cache-status":"HIT","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","server":"cloudflare","cf-ray":"a223e6590e447db6-LAX","age":"3469474","etag":"\"cfcb189dc1ff74b9c48bd54f29955796\"","vary":"Origin","set-cookie":"__cf_bm=MEgCVYD55sFSVy3qsLkG.TU3N82kuFqh7ES2HnK_bK8-1785241875.3710494-1.0.1.1-7dLbn2DMB4qYJfswvDIZ5kjtzQxx6f37zSnfVuB3.MfghGVEWkAtIrsooLKLDAUN034GHGtTH8rxYZvKqsfMQVLK7MPO6GThHQPlCBiya83gt2D_xVfTgbx7uhkzSa78; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","cache-control":"public, max-age=31536000, immutable","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=QR26zrD1g3%2BsndEYChVV8SsJcHiRsY6IbLVGcMgp%2B1zPCwH%2FfPSd8hLrD0IMVjFUIt2hGmffLC0mBLYAWciDr0lvts9YBJ1BIhv8gnEq1JH0iUVicDxopJQ%3D\"}]}","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';","cross-origin-resource-policy":"cross-origin","alt-svc":"h3=\":443\"; ma=86400"},"url":"https://jsr.io/@std/yaml/1.0.5/_type/merge.ts","time":1785241875}