"use strict";const p=require("../../../../../../../../../_virtual/removeTypeDuplicates2.js");require("../../validators/generated/index.js");const c=require("../../../../../../../../../_virtual/index35.js");Object.defineProperty(p.__exports,"__esModule",{value:!0});p.__exports.default=a;var r=c.__exports;function a(n){const o={},i={},u=new Set,s=[];for(let t=0;t<n.length;t++){const e=n[t];if(!!e&&!(s.indexOf(e)>=0)){if((0,r.isTSAnyKeyword)(e))return[e];if((0,r.isTSBaseType)(e)){i[e.type]=e;continue}if((0,r.isTSUnionType)(e)){u.has(e.types)||(n.push(...e.types),u.add(e.types));continue}s.push(e)}}for(const t of Object.keys(i))s.push(i[t]);for(const t of Object.keys(o))s.push(o[t]);return s}
//# sourceMappingURL=removeTypeDuplicates.js.map
