diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e2ac6616 --- /dev/null +++ b/.nojekyll @@ -0,0 +1 @@ +TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false. \ No newline at end of file diff --git a/assets/highlight.css b/assets/highlight.css new file mode 100644 index 00000000..91ae0214 --- /dev/null +++ b/assets/highlight.css @@ -0,0 +1,134 @@ +:root { + --light-hl-0: #008000; + --dark-hl-0: #6A9955; + --light-hl-1: #000000; + --dark-hl-1: #D4D4D4; + --light-hl-2: #A31515; + --dark-hl-2: #CE9178; + --light-hl-3: #AF00DB; + --dark-hl-3: #C586C0; + --light-hl-4: #001080; + --dark-hl-4: #9CDCFE; + --light-hl-5: #795E26; + --dark-hl-5: #DCDCAA; + --light-hl-6: #0000FF; + --dark-hl-6: #569CD6; + --light-hl-7: #0070C1; + --dark-hl-7: #4FC1FF; + --light-hl-8: #800000; + --dark-hl-8: #808080; + --light-hl-9: #800000; + --dark-hl-9: #569CD6; + --light-hl-10: #000000FF; + --dark-hl-10: #D4D4D4; + --light-hl-11: #E50000; + --dark-hl-11: #9CDCFE; + --light-hl-12: #0000FF; + --dark-hl-12: #CE9178; + --light-hl-13: #267F99; + --dark-hl-13: #4EC9B0; + --light-hl-14: #098658; + --dark-hl-14: #B5CEA8; + --light-hl-15: #EE0000; + --dark-hl-15: #D7BA7D; + --light-code-background: #FFFFFF; + --dark-code-background: #1E1E1E; +} + +@media (prefers-color-scheme: light) { :root { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); + --hl-13: var(--light-hl-13); + --hl-14: var(--light-hl-14); + --hl-15: var(--light-hl-15); + --code-background: var(--light-code-background); +} } + +@media (prefers-color-scheme: dark) { :root { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); + --hl-13: var(--dark-hl-13); + --hl-14: var(--dark-hl-14); + --hl-15: var(--dark-hl-15); + --code-background: var(--dark-code-background); +} } + +:root[data-theme='light'] { + --hl-0: var(--light-hl-0); + --hl-1: var(--light-hl-1); + --hl-2: var(--light-hl-2); + --hl-3: var(--light-hl-3); + --hl-4: var(--light-hl-4); + --hl-5: var(--light-hl-5); + --hl-6: var(--light-hl-6); + --hl-7: var(--light-hl-7); + --hl-8: var(--light-hl-8); + --hl-9: var(--light-hl-9); + --hl-10: var(--light-hl-10); + --hl-11: var(--light-hl-11); + --hl-12: var(--light-hl-12); + --hl-13: var(--light-hl-13); + --hl-14: var(--light-hl-14); + --hl-15: var(--light-hl-15); + --code-background: var(--light-code-background); +} + +:root[data-theme='dark'] { + --hl-0: var(--dark-hl-0); + --hl-1: var(--dark-hl-1); + --hl-2: var(--dark-hl-2); + --hl-3: var(--dark-hl-3); + --hl-4: var(--dark-hl-4); + --hl-5: var(--dark-hl-5); + --hl-6: var(--dark-hl-6); + --hl-7: var(--dark-hl-7); + --hl-8: var(--dark-hl-8); + --hl-9: var(--dark-hl-9); + --hl-10: var(--dark-hl-10); + --hl-11: var(--dark-hl-11); + --hl-12: var(--dark-hl-12); + --hl-13: var(--dark-hl-13); + --hl-14: var(--dark-hl-14); + --hl-15: var(--dark-hl-15); + --code-background: var(--dark-code-background); +} + +.hl-0 { color: var(--hl-0); } +.hl-1 { color: var(--hl-1); } +.hl-2 { color: var(--hl-2); } +.hl-3 { color: var(--hl-3); } +.hl-4 { color: var(--hl-4); } +.hl-5 { color: var(--hl-5); } +.hl-6 { color: var(--hl-6); } +.hl-7 { color: var(--hl-7); } +.hl-8 { color: var(--hl-8); } +.hl-9 { color: var(--hl-9); } +.hl-10 { color: var(--hl-10); } +.hl-11 { color: var(--hl-11); } +.hl-12 { color: var(--hl-12); } +.hl-13 { color: var(--hl-13); } +.hl-14 { color: var(--hl-14); } +.hl-15 { color: var(--hl-15); } +pre, code { background: var(--code-background); } diff --git a/assets/main.js b/assets/main.js new file mode 100644 index 00000000..d0aa8d5f --- /dev/null +++ b/assets/main.js @@ -0,0 +1,59 @@ +"use strict"; +"use strict";(()=>{var Pe=Object.create;var ne=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Ie(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),v=s.str.charAt(1),f;v in s.node.edges?f=s.node.edges[v]:(f=new t.TokenSet,s.node.edges[v]=f),s.str.length==1&&(f.final=!0),i.push({node:f,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureActivePageVisible(),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ne(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ce(l.parent,i)}.${d}`);let v=document.createElement("li");v.classList.value=l.classes??"";let f=document.createElement("a");f.href=r.base+l.url,f.innerHTML=u+d,v.append(f),e.appendChild(v)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var Be={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>Be[e])}var C=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",pe="mousemove",B="mouseup",J={x:0,y:0},fe=!1,ee=!1,He=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(He=!0,F="touchstart",pe="touchmove",B="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(pe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ee=!1});document.addEventListener("click",t=>{fe&&(t.preventDefault(),t.stopImmediatePropagation(),fe=!1)});var X=class extends C{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){D||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!D&&this.active&&n.target.closest(".col-sidebar")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ve=document.head.appendChild(document.createElement("style"));ve.dataset.for="filters";var Y=class extends C{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ve.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var Z=class extends C{constructor(n){super(n);this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let r=Q.getItem(this.key);this.el.open=r?r==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let i=this.summary.querySelector("a");i&&i.addEventListener("click",()=>{location.assign(i.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ye(t.value)})}function ye(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.href===r.href&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/assets/navigation.js b/assets/navigation.js new file mode 100644 index 00000000..51fdbe29 --- /dev/null +++ b/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE52aS1cbNxSA/4vXpGkooW12YEMgLbEbO3SRk4U8I9sqGmmQNAa3J/+9mrc0vroaWHHOfPd+aPQeyd/+mxj6bCYfJiRNr/ZUmMnJJCdmZ59kMi041W9b8tPOZNziBybSyYezk0myYzxVVEw+fOs024KlvWJPFCNrT1IG+KZfTn98/3HSGS7E4boQiWFS9CImDFUbkliTw33P6ftzV6MUOcwFhR0NxASXSj5pqu6p0qGi+CGYbMbUgiiSrQ45XCI3ABN9Ws4/V6UHLR3FFHONvVNHMcWCEybm639oYkCJwzHNFyJSmS2NYmI7z8sW1aAOiMO0S0pUsvuDHpYULp4bgImwehpRS3/bZ/Jpyf6ltipAiReB9mZxGFa3sT2lGg1gPf/8+6/v3p8C4+FOKnokcdgoz+pJBj0Ni3mung0VaZUxI4YMVQM8zhYWjXfUtRk29TzmKwfjPeHFUTV1IGa4I4c1XSiZMU3n6iM1tuMMZVBMzDvPmLGzjWGED3UOGmP5Qh8LpmgKaVoW8yxY8hAojYPGWEKlcVnUo5gtO9sftVoHYgZ3tpruiPLn/FoGxcS8Kd2QgjszQL+6NuhoXe2TmWgWKyi9g6jgs0zpJw3n1wxJtzm2Ywoou0HDZLu/4ETr6sVzRRNibMM6xv1wcu6NDXrzDinQdHm/koOVdNPsK/TbnvqK87OhohzMQUMJEUGJV9JGQoIOIoIvHy9X8oY+Q/ktQ9KP93x9esuGlegLOAdzOceSBFjl9jGWlOdHq7GT21FMUTbnZbHZULWSl0TT8zPQdRw2WsrlOq60QTFhsFP0FFM8EWZWEsyvEZK8rt646fx1mSEREDZCGqogl4/QXDNOMU3JMY39L/EXHAZFheEu5fKo5qsCx1QHMUHgk8WxeBHo2E5IRvnpjOgdJOoppuCUCH8r5RhaGBGoC2PAFupgTHBTY1hQQlTAAhNkTYapsVUrkVlOFEWayI/AimYDOc1CxesoqhDGfqlpWFAzND0Hp/LyOZZWmOnNst78gOkORzSp7Xyn07IfQpKeYgqa2I1LeOC6PKr5aja/hSUlRRV8SpIdOK21LJIu5QML5lcQFyypDvXJnuIKeDNVASxRPgkuSQrmNiw8zoxO3zD9xqrsJtJ+QjhiKvDmdTlSvjos1Lw9xRQ6ITnYODXBUqvPTjC1Ikjqxq6D2LrkclzDbxf784CiYmi62FKV29EMTlQORiXPn4tsDa/VHUQEW2ou0D2kF/DSad0m2ynrTyq2BlwuXY4XMjgLtCySHpwFOjhGAK4IPcUV7VlmwNHiV9RxubHzP6c9c4vx4oX7UQdxAXCA6jkCR6ij3nChZE6VAedRB+MF/Kug6oA1QR8wVhTqEE4ErlomSnK+kJqZcM35Qa+oPmQN6yleUKR/xfuW3Z9j9d7icZJQnXcc0VSHzNo7MO4dHcQEOng40iA0eUbUw51dF+H8luIKtmWGcLAWevrSTsL01WPhnjS60gqhhbp6ZkYf3095EjckLrtvjq0QWRuCym5tm4Y9LUUVwysGVwDdMgzSwVsh1xG8FhqI6msR2FEzJL3cLS5loRKwJnr6qh1lRvIVtR9WtldBdgcjJcyYKMBeXQEsURbCTDWc27DXvVaZfJuBX2Mte734U7jAwzPjl2iX5gD39p6+Si7sn1uRwqeqHUSaqYxBdggORiR2nReBo6AGYcnYDqWD6PFPTuwKgS1nXgAmUrQcdPCOq4OooLrcuiaJkQpckPwIRKWqa5ep5BIsjYOjkvAu0uUjNeAA8QKiovBxissxDc3kngbvAxyMSHR1sx5eA1yOasLfQTr+HaSx7yA94jtI4xtxPWojrtHtqB6zHdW7YrOBJ7kGYck5Zwk6hP0ITGVkflmsA7uLnkYUs+ENpu+YQbeYvmS/DV8idBARGLnayULbEQEOOQdjEsXA6iyfv3Q7Wojw0VDLkKIUItC9KoAnPhaB/1oSLDW3Pf+aKQ02ZE8xheLhduwgJvB+ZubkHv26zEsrb78Cs2SDsGTW/lgHzO/okeL7/y9XOuNmJwAA" \ No newline at end of file diff --git a/assets/search.js b/assets/search.js new file mode 100644 index 00000000..d1dd5645 --- /dev/null +++ b/assets/search.js @@ -0,0 +1 @@ +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE8Vd3ZfbtrH/X9avrit8SKLy1iT1bXtvm9zazX3gyenharm7jCVRJiV/NCf/+yVAAhwMZ0hw16GfLC8Hg8EMMMD8MAB+vanKj/XNN+mvN++K093NN0q+vDllx/zmm5sPeVUX5enm5c21Opj/Z1WR3R7y+o/dlz+IV4+X46Eh2B+yus4bPjc3v710rDbas9ofivx08Zzur6f9pWFQ/7H9MMoGSHTOLpe8oiTqvozLs16rjef1739fPp/zCVYvPBXg+LKRozLN6QXqKxEr2Tc7O32Oq+BVSzlayatOFqau0/V4m1eR1Xni59RYX6ri9BBZoyd+To3nsr7sy7tIq70C5M+p1VQVV2FL+ay66obG/IyssCd/Tq33hzK7RFbpaJ9TX37MilidOtrn1Hcsb4tDrE498XNq3D8Wp7yOrbKnfk6dlzxWpy3lc+p6/z6yKkv4rDHfFI0d7y3pc2r7pSYnPKq2jvQ5tWVVNaPCnvqZdWbRs1JH+5z6inpGEz3x88bBp0tTIoseDJ58Zq1ggdPMbkdieWP+HL9GyrPqT5dLRfDx32Yx+0tLSzIz32KZ5fU+A0ulnlP7IZbN9cQycp9iWT3kl3+E652el/8Wravmn4P8PqsfKWX5j7Hs7hpa+Z0pRrDrP0Zr7XzOq9dFVVPL5/5jLLsqO92Vx+/KQ0npDnydx5C1Bvz8FJb1BM96HtM34ZoV82w/j7KU6z6G+Cco9MPZMvKsi1PjNO6zfeN1CLLRKgJvdshPD5fHOWxf+CK0P6OkZpcxWfW2cXqzmvUClnq2CKfyu/J0fwVrqRgRYKlni2Bil/1lVv2+yFMql6vdVqwl2c2+63TrpTFzUiiII4kdGfXj9f7+QLnl7ksso/um8rw6NzJQvgp8neHmv/vLm/8JR0Dg6f3naGd/NWVYNwA/x7Is6u+Lh+KSHShf1X+MZ/fnT8Wlft2xIHkGFDMYv79m1KzUfZkp4U/dsoqX0FHEM/6/5k/lR5Jj+yme1Y+HrDj9cPtLvqd6Y/B93OGj0fhjs6YrLsUHPAT936OnD0pC4FyeKuDf3vzwj5+ywxUL6P8eLaAp8acgXgDi+Y8zxklWvfs7xG+CcdJ9jGc3YtwItQWswlZCTjOb+NdGP+ygcB9j8c7i9K2BZ0lYz3+LZ/aPRrt/o4Jp9ym2mR/tUHxT/IdqZv8xup/9ny/S2I3qawFB/NrpY3FHL52G/F44WnrCDiVkqnvMi4dHcigT9XnieRWGs+OfzuefEEofTI/991jTZmMcs9nsGhl+qEdF9J9jWZYj/Py3ia0J2PmG8gHDxUkXLlghfMuyejEK2/YyMZXgvRm+np4yviqg7dvWyfAqDwlm6P1bmjNoSUjxfAsQ/MbNgEScbwuqximDsJXCVWx5NPS8VUKC2KHVFKnzf1WHH7Mqo+Cs4Ht0eHE+FPsxriHBDM/yfVFxPMHX6A7pCgThFTAm/B7fGc8ZPQUNuL3oKOleEQjHzT9lTc4+w6o6yllVhbr/32tefR7Rfv99hkH7QlQoFRLMYDvS98DXJzBkpPSf58S52f6RWk25T9GjjWdVz2R1lx84Vu7TjAa+yWt+EdB9nNFInl09m13TGp5d/3GONcvyXcGZ036bzYzpa93HOd2Dk62eK5vpBRwz/y16k+Fktuq/zep8owl+8PM8lv+63CcsQ/MxvrmjEsLP81gyEvYfo617Kc/fXm/p8LP/OIfd9/l9dj1QQTb4Gh1c3N39+QOdCOQ+TSwgR3gdy7urCWbdh9i4+OFa3BExsWdjvhO8wITpRaE3HvJj+SHn2g2+znGm+6o8HH4s64KBCAc0scxP+afLX093+SeCqf82hxm/RgVfo9doI9HC7DDhmP0CNsEYTi8cFW36idDgWJxiquionlRFs2rckwvMoApH9bQqqhwMEbaKjupJVVT5Ic/oPZ6gkp4uthoY3lTlsajz19n+UlYU2hcSxG97fGK3P/23WGbH7Pw2P54P2YXy4eBr9CT46ZKf7ghe7YdZyPKfbRGLiH6fXfoEixZfRl+fwLlFbVnW/ecn8Ga5TvILVzwkTGz//vTkU4rRi/bnRAJqS9SKxbq5c3xFr1rqycqGyTBypRMwnB+K+kKOCK5iUOS5td/l9aUqx+0UVt6XeELd4dT8ljZs92XGHP+6OOQ8M/f1S3Q6zO4F/MNEB4SkUGhuK/1637jEp8nwyheeJcpUttiTdfLqKYoZ7T4mM+sUOKowa+s0x1fVeVbtH9k9Mvg5evn1xhb67/zzm5xEmuD3+IXY/rE43P2DAW0HLF9Aclr3gZhMpe/yz/FV9sSzKoS7Fuf89K+K2nzvvkQnMJRnyrOZP8eyuJRvH8trnZ3uKFABfI2O6w5Uw5q/RjM4UW1q/hqdJQeDOJAfR8duJIvv3vz0tuT2gfuP0U0yxG/LpiDVMv9xlnRmy50TznyLZWZoOdH8t1hm//yvb9+WfyEDRvcpevvcjMGa2dN33+LTTemw0/49ejlenK7UILF/jx+yzZI9PzInoPzHeHanS1acKLHcpxk6en+lpr/2Q3wEdDj89ccPGzIAaj/NWPj8WDUusbpQwxB8nYF4jjCs5zNs4txDmd2Ri1v/LTqTIisudCZa9yXa3Rj6tyXla9ovs/zWt81KK6/elizYSVA9rYJDeTvJvqGJZX5rRelcdcuAYE9Qza2AERx+nsvydUHitvBzNMum+kklYJp5zNmuAT/PY0mvj/y3Gd4oH5EPfo52Ih8eWJP7b9FOtzqwzPy3WQjHn06f0Tq/BTj836MX+E2JQeIpWBmDz/EsTQ/74USutN23+FhhNcnmxYpdpntRRlTZkfy9rHD+JPw0zzx2tfex5Hh2n+ZloRb7d//M31+LKr9DPOGnWTx/OBYXhif8NFvOH7PqUoDE417M7stsKWmO4Mssjn/PPt/mP7bY7w/Vf+UXiFy1rCmS2A2mO7SF1u8x3cVsn8WdWoespk6tO4Ei85lGK3k1lc7kyoyjMHflx5NZOUVWCshn1vp0dfpKO6Z/2G4jq+/FZVo/CKHGBQHky7Xex3Ku9bGN99IyjR9s5I7LAcif0+EgZDFR4YHf+f09FG1gk07Hu1gdGxm5hpJ3UJAVj9xB8bs09OTA9D8IEd3SE7vRMciiGq8ekC/XZp/O5Rq+krEt9/Jy0Pq85tdfo/k1ar5c6djm1xPNH2SrTTjznnzBGcSlzXXN3yTRM4gTl+/7OIVtsiP2BRbt/y6bzo0AGa0EIDM/Buapof46aqgHapCCD1uGI2FCDURC42TH/BpqALmVblUR7Q6ByCPzQZieOO2bHf2yM0KbKOmnhGif2Es8pQLq1NeoNPzZ7d9VCXWvhc1sLfAHuGf2hPqr9IQa9wQZr4N6qicMc3Wnp6rlVdBnDTt/EO0Ve4G5XeZscM3HuDBBgeV0AG4c6ZSgo50iEJnTwiDFYEIaQL+gDnyyg1NBtE/sBR7RQHjPzrQsjn5ZDbQ3/jgNRPuCXuAxDQSXA0XI8pexDOjfTQP2miKngeiFYi8wowF0EdG4IJ54ubZ3tyF1DU9UbMM7UZlWDy5gGhcCkC/Xcn8TlJsDZTTQ5OVlu31wCelU7yueBDI9q8Pbu1C7hq+jZ75OVK7Vw+SDCTFggQVb3+dBOA3E+/xeZFYLKGdiShhPvqQGuuQN1/54j+/EZVpPpDaNixIUWE4DIMvKhQGxKgASc0DoMCFrAp+EBRaERfvcMO8Do9HRXuSxrhDkkUWYpKNfuCPYjLZOBdEzYC8vo4Bh7tu4KJB+OQX0WXjOGcQqoJeXc4XUDVgTnikssqBLhNdxOdA0fmKEYnNx8fC2xokQFRZYMDLuL450eoiHynqRWXSAONo6FaoHRZbECMA5W6eL6KVCIPaoNoJTuTEidQWW1oQ9IOz0EL1kACLziFH0esHRLooU9auE7QzzhyelvpwE/tfa/5phDHAWaaAl9jTXs+WbOO01JePcQ2DPlzfikNgzhcZnx54v8/TZsvkih2AGdXPCBL5w+krOO7jGwekoOs0hEHtUGzOcd1BgaU1A551EBztAZE4L4anfCVEc8YKtbw8fu5ZHr247UZlWD84hjAsByJdruT8Q0bV9F72M8+Kyrcfn0Kck6emXbL87Ee8UED1N9gLzk+Pg8Py4NGGJ5bQAD/I7qGMTHeRCqfmdX+JyyMld2KDMovu/4KpK1zHmJIYAwTn8Z646sq+ji2ygCBHdMbJJLZBXak9vzoMiy2YF+Pu9nS5W0eF/IDevjsEtgpNCgRKLKsPfaOh1MWeEeKlHNgqIOyWnUfug0LIbBuCKS4eTxe+Vh6LzHWTWpArpF+0c4aQq4n1GLzGvguEduZPywCKLKqK//9brInp5GcjNqGN4//C4SOVXUUQ50EJ8eFFOqYC5FHhcokGh5ZQRVu3zCaJnktuoe4DpW1En+2tQZtGRAu5o9UMlOhYPJY9RyYwcxLDQV1JKn4sYvwGHZOfVMjiTPikYKLGoQvz5eN9HojMyoNSMKqj3qMZFCksspwr4NpZTxS7ap0KpR1Uxa7WBiiytDLTm2EWvOQK5I9QR6zpwma+jkN5x7KJXHqHkoyqZtXWLiiytkHDrVuyiXUcgN5fWjR6umkiv9tQLpnR3D2h17ZcieiJx0rJY3/CprSncDZZYEu/rn/1ywE70dh0UeuTkE30b7vRJJFxu2XNQ4f28fq0x59wDagGvorezROuoF1UHuBzvD0LNAXnG7huk7lGcFAWUWFQFr8M7ApuV1hw1vB5evfjFxel/iv7nnMUx4jmxs4lui/xyEk9dJRkr+IT8v5O+xy+e/EKyn8m3YMYbgcssN3qCmnvII3pBGkrOdUf6JZuJJQAutODqI3xYxy9CohelSHbex87USVhiUR876CNqjvuaoYoZaAcs8lWU0Qcsag5U2svNqGN4n+O4SJB+OUX0N0t6LUSjYL3EnAqGj8NOSAMLLKiE/p1apwUd3ReAzKwa6Edtp4TCpZZUSPjIrtdKfN9A0o+rZvCabpR4oNTiqvGv+zrVrKPRMCw9r5rgxeJJsTrqRVVhX072vSMa4HDSsk1HTyFPyeHJl2x89yaz7wAzxkYnL9t8dKHhlCSefMnmd5cr+ubPcJidvGzz55zW6qmXbHx4TkvPGPujx7SIJ5SnJAEFllSAf83Z2z863AAys2qgXgefEikss6Qy4GPlXh8znCGUnF9K4ffDJ9c0fYFFl1LuKXM/Omb0DC8zu6jmHwWnl7c9/UwloHrZ98Ppaj35c2oNL2CfSKrsaBdM47TXwDsrb6L9fysp0+ThE2zjQkD65ZrePwbnmr+Nbn4v8YgK5mWXhCWWVQPOtIm/GBRKzeFw9KNlE3AYLrQgEhe+oeahuOilIZKdUQu+OH9cqJ56OUW4C/wd7BYPKjhpuURmdNX/RDqxp14whbl7csA1PXq/zwk7doSfeZsg4lD9oOTCh/rRewl+aERrh2hElKbgXfNz5GzLfS0tmVvwXQ+K3ggbNoDLYRx5KWIim5AsuWA2I/F6hdNTdF+iGjGhqRndCBVZXjew88RvJgdiT2jjdREdoaIiy2vDVOy1Eb3fEYjNaYN9aGRCMqLcgnoZPH3ilBM9Uw0bMKqhWZMVKrK0XsLpSUXnowRij2oDPvQSI1FLv7QezJMzTgnxftULzJ9RHb5OM3lkNP8q/SF4KqdTxS7amwZic1vqg4d1Jra0Af2CG+n+iR83z8pouLOXmFHBdfAc0LgwkH45Ffha+3gmOtzvJeaO1KDHMSeOtnjqBY/TdI90+hA/Ophz0rKn7s6xQX1HuuQJu7MP4Nfxl28aMdmkIvNwTiym01MvmUhk6+yDs+he7qTlIrLodziGIphXL+KvwgvLsxDbnHMGhEinOYcOImWq52S2EzLVc9LcI2U6l/VlH7/nQEgFOHxBua7R/pIQ6RrtPmOlqRsa8/PpIvUcvqBc94cyi90+I4Ryxb+gRPkxK55hOVf8C0p0LG/jY1lCJF/+C8q0fyxOef0MoXoGX1CqS/QtgYREl+gbAyOlef/+6cLYsl/SSzacnuEh29JfUJ5f6uidI0KervQXlCerqueJ1DP4slJFJ5nQMkVnnURKVNTPU5Mv/0VH/adLwyD2xQRy6HsOX1CuKj+WH/I5b+eFJRY8C9jX2yP60TgClJpbOOZZtX+clSyDiiwIJoCKe23EHwyEcrPqmHu+PCyxpDIG58tl/K02UGo2pCjP315v49PJggILKsJX6/UQf84eyDyihu/bQjME6kssq4jvA76NJqLRFig1587Lt4/ltc5Od7ErlrDEcqoA9fbAY3QmGZSaU0VVxB7Z6UgXbHxTYd/qaBTGyskFqaf4fCJHuyDCeoLPAcroLt9Kyjf5/XWGBC3xoo1uquwx5WiQq5OVa/a5mRReF1Ud6+2CAgs231fbqyB6gAOZOTVci9g7YDvSBZveVNg3Ov6RHyMnlxNmjxS8Kf4TnaIFCyyYGear9QqIT58HMjNqMC+Nvymv1T5WnqDAcmroq/Wx0iZaDUBmFta6ni7fRcMSgHzB/OGu0l4B0QPByzvW/L8eY9F0QL5w85tK++ZHz3pe3rHmRyer99QLN/5vvem30X3fSTvW9DeXz9EhT1BgYQXYansdxF+B3MvMJk7nxknE73EB+iXTpbtae7woOuGml/i3n1/eFDah/ptfbz50CeXf3MhX6pUZUfdFfmiigG/SG7fDUh7ta2k/d99+yk2ytaFoSf64unmZrl5q9Wq7S37++WXqStgP9g+WrOmyqXi5Fq82iQzIREAmm/9JikwGZI3xU/VSqFer3SYgUwGZbv6nX+r1q2SlAzIdkDUhQ7qmKl0HZI220w1FtgnIGr+cbimybUCWNP9LKLIkIGuMku4osl2oXqNtsSIVjAxhLUGbIrSFua4lFaQ1RGgOc4VsKhRJGVpEGM0LTVKGRjF3T6SCNIsI7SKM/gVpGRGaxuAkqSCNI0LrmFTrVJD2EaGBDOKQCtJEIrSRSU1OJWkjGdrI5AylkrSRROPFDhh6xIQ2MnBAKkkbydBGJgk/laSNZGgjE2ynkrSRDG1k7qpKJWkjGdrIvOKZStJGMrSRSWFOJWkjGdrIhMipJG0kQxuZDOBUkTZSoY1MAJoq0kYqtJHJo00VaSOF3Jr1a6SNVGgjk36aKtJGKrSRSb5KVWOjTeOhQ8LQRCZ9M20mJ4IwtJAJwVK1pQhDA5lcyFQlFGFoH3PgJVU7ijA0j7mIN9UrglCH1jFRUqpJ6+jQOubJ7FST1tGhdczRzFST1tFo3rETD2kdHVrH3JyRanIE6dA85lXnVJMjSIf2MTcLpJocQTo0kHknOdXkCNKhhcxdFqkmR5AOTWReo03X5AhahzYyl0Cka0EYcx2ayNzUnq4lRRhayByrTteKIgwNZB6MTdeaIkRLA7s2oBcHoX3MG6zpmrTPOrSPOeycrkn7rEP7mFS6dE3aZx3ax9ynkK5J+6xD+5hHEdMNaZ9NaB8TYqcbcgxtQgOZBwbTDWWgTWgg83BJuqEMtAkNZNKX0w1loE1oIHOSNt2QBtqg5Ztdv9ELuNBAJrRON6SBNqGBNsYKm+SlTl4psQ0pQwOZeJWjDA20tQYiTbkNDWTiQHrtvQ3tszVW2K6oyrehgUxYxVGGFtpqXszQROa0LyNmaCHzDF66JTvcFq2x7SKbdNrb0EJbY4Yt6bS3oYVMom66JZ32NrRQYsywpabUJDSQuUg/3VJTahIaKLEGoqbUJLRPYu1Dxw2hfRJjhC1pnyS0j0lcTRPSIyShgUzAmSakgZLQQImxQkIaKEFxkA2ESAMloYHMweA0IQ2UhAYyJw/ShHQKu9BC5lruNCGdwi40kXl9K01Ip7ALbWQut04T0ka70Ebmets0ocO70Ebmeuh0R9poF9rIPJKV7kgb7UIbmSuW0x1po11oI/O+UrojbbRD4aqNV0kb7XDEaiyxowO8FYpZV8YWOzrEW6Go1SRIpDs6yFuhuHVl7LEjvXL7DdLqEVoUu66suagFbfsJktrodcWE7ih+XdkAdkVH7ysUwq5sDLuiA/gVimJXNoxd0TH8CplOsKCPGKANFm5YUTO5wHhDCzisKMcqMOLQQg4ryrcKjDm0oMOKcq8Cow4t7LCighaBcYcWeFjRsT+GHlrsgYFoMPrQwg8cSoNM1yIQDFCDMAhhkQYhqCWYQCiEkC1URNpOYqzI2k6QtkNIhLB4g2AQGwRGCAs5kFifQGiEsJiDYPAdBEjY27MbYhriQZiEkK3xaEsjWEJY8EHQQI9AyISw+IOgsR6BwAnRohOkLhA6ISwGIWhkSCCAwt5s2hAzAB7G+qz1aHxIIJhCWDBC0BCRQEiFvVK0ISbHNAIrhMUkhCTHNMIrhIUlhCTHNIIshGqNR1sawRb29s9U0HCRQNCFsAiFoBEjgeALe0laQ0ybDyEYooUwKJxbIAjDXi/V8KUtrTFWa41Ho0wCARn2DtCGmLY0wjKERSyEoj0AgjPsTYkNMT2sEaIhLG4hFD2sEahhb+hsiGljI1xDWPRCaNrYCNqwF1w2xLSxEbwhLIohaAxKIIjDXh3XENMWRDCHWLdwO23BNQbcrQVpMEogtENYTEPQeJRAgIe93q0hpi2IMA9hkQ1Bo1ICwR72HsmGmLYgQj6ExTcEjU0JBH7YBIOGmLYgwj+EhTnEmrYgwkDs660NMW1BhIMIC3eINW1BhIXYa8UaYtqCG7xrYi1II1YCISI226Ahpi2IQBFhoQ9B41YC4SJ2I78hpi2IoBFhARBBo1cCoSN2m7whpi2IEBJhcRBBYlgCYSR277mhJddQCCURFgsRJJIlEE5ir0VraMk1FIJKxLbd9CLnyi3e9bLG25BzJYJLhAVFGiORtMh0FhYRGzLMQZCJsMhIYyKKFqEm9v3BhpZChgUCToTFR8SWtBvCTuwl/w0taTeEnoiEX3Yi+MQe/GWiIYSf2B37RgKyNyAERVichJEAb1aOTXoIRbH3q3F8kdEsWMKEvAhIsQ+csSsWhKUIi5jQMiAwxT4VxixuEJoidrzNEJxin9ti8CmBABVhYROGLbKZxU1oMEsgTEVY5IRhi7eYeeRLIFjFnpah2UqEqkiLnNAwmUSoij12wrFFG80WOKExNYlAFbliTSYRpiItcEIDcBKBKnLFmkwiSEVa1IRG6yRCVOx5E44t2nG2kAkN7UkEp0jBmwzBKdJCJjQOKBGcYp8Q49gik1nEhAYNJUJTpOBNhsAU+34It0OPwBQpeJMhKEW2UAqToYCgFCl4myEgxR4e4VIkcC6H5G2GkznabA5a2kE6B28znM/RJnTQoxdndPAgisQpHW1OBz16cVKH5G2GszpaBIXmiiwmeYvhvI4WPaEjJ4nQE8mjJxKhJ7JFT+ggSyL0RCreZgg7kS12QkfUEmEnUvFGQ8iJVCPBt0TQiVS81RByIlvkhI7TJYJOpOLthoAT2QEntDNHwInUvN0QbCLbtA8mdQmZTfNmQ6iJtMAIkz+EQBOpeashyERaVITeLJEIMZGaNxrCS6SFROiNFYngEql5myGwRLZgCY3aSgSWyDVvMwSVSIuGMKTIZC1QQgO8EgElsgVKaIBXIqBEtkAJDfBKBJRIi4XQG2cS4SRyzdsNoSTSAiH0LptEIIlc83ZDEIlcj2wPSASRyA1vNwSQyBYgoeEiiQASueEHG4JHZAuP0BslEsEjcsOPNgSOyBYcofdUJAJH5IY3G4JGZJstwqgBmW3Dmw3hIrJNGGEyJpHVtrzVECgiLe7BTGwIE5Fb3mgIEpFt3gjtyhAkIre8zRAiIi3qQWeESISIyC1vMgSIyO1Yjiky2ZY3GcJDpMU86LwhifAQmfAmQ3CItJAHnTokERwiE95kCA2RCZ/qIxEaInk0RCI0RFrIg85QkQgOkQlvMoSGSAt50OksEsEhMuFNhsAQmbQLSHqYIThE7nibITRE7vjsYInAEMmDIRKBIdIiHjTGIhEaInk0RCI0RFrEg94UkggNkTwaIhEaIi3iwSx2ERoieTREIjREWsSD3lqRCA1RPBqiEBqiLOJBhxIKoSGKR0MUQkPUqk1UoBPFERyieDhEIThErdrNUiZVHaV283iIQniIalNM6A1phQARxQMiCgEiasXCjgrhIao9zELvXSuEiKg2wYSO2hWCRJTFPei8QYUwESX4Q0YIElEW96CTDBXCRJTFPRi2yGoW96AT8xTCRJRg0WKFEBFlYQ86i08hSEQJ3moIEVFtZgm9maoQJqIku+hXCBJRFvegl5kKYSJK8jZDkIiyuAft+BXCRJTkbYYgEWVxD3rzUiFMREneZggTURb4oDdQFQJFlORthk+7WNyD3j1V+LyL4k2GD7xY2IPeWVSDIy+8yfCZF4t60HuQCp96UbzJ8LkXC3rQu5UKH31RvMnw4ReLedCbzQqff1G8yRAaoizkQW/xKgSHKM2bDKEhykIe9C6sQnCIspAHvQmrEByi2hwSerZWCBBRmjcawkNUm0FCJzcqhIgozVsNASKqzR+h8yAVgkSU5s2GABHVZo/QuYIKQSKKh0QUgkRUlzvC8EWGW/NjDQEiqgVEmO6LABG15u2G8BDV5o3QaRUKISJqzdsNASKqzRqhMzAUgkTUmrcbAkRUlzNC9wcEiagNbzcEiKguY4Q+wYcgEbXh7YYAEdXli9D+AUEiasPbDQEiaixbRCFIRG14uyFERHW5IrRTR5iI2vB2Q5CIajNFGK+OQBG15e2GMBHV5okwjhKhImrL2w2BIqrLE6HHG4JF1Ja3G0JFVJcnQo83hIuoLW83BIuo7UiepELAiNrydkO4iGrzRJgTuAgZUQlvNwSMqIS9WUAhYEQlvNUQLqIS9oYBhXARlbC3DCgEi6iEvWlAIVhEJextAwqhIiphbxxQCBVRCXvrgEKYiNrxFw8oBIqoHX/1gEKgiNrxlw8ohIqoHX/9gEKoiNrxFxAoBIuoHX8FgUKwiNrxlxAohIuoHX8NgUK4iNrxFxEoBIyoHX8VgULAiF7xlxFohIzoFX8dgUbIiF61ZzgYxuhA9YodaRohI3o1kkiuETaiV6x/1AgZ0e3xG+a0NMJG9Ir1jxohI9rCH/SJJY2gEc1DIxpBI9qiH/ThJo2QES1Y76gRLqLbkzc0XqkRMKJ5YEQjYERb8IMGcjQCRjQPjGgEjOj24A2diq0RMqJ5ZEQjZES3x26Yg/sIGtE8NKIRNKIlf6uERsiI5pERjZAR3Z65oXFbjaARzUMjGkEj2sIf9JJBI2hE89CIRtCIbk/ckOdmNYJGNA+NaASN6Pa4DXnKViNoRPPQiEbQiFZtwiqVNKsRNKJ5aEQjaES3R222VH6tRtCI5qERjaAR3Z6z2VKpuBpBI5qHRjSCRnR7yoa5IQJhI5rHRnSHjdi7pz7k1SW/ax91NrdINbr89ebf3Z1UJvvZsjPXU5mk529+/e23/hYq8z/D2F2c1RdUfTFlyF7emONh7Y/GXO2PxP2lWRt1P3bdj2ZN0f1wNM2s3f1I2h8mf7L7Id0P7X5s3A9HLByxcMTCEQtHLByxdMTSETvhTSJV98MRu+aY7KLuhyNWjlg5Yu2ItSPWjlg7Yu2I1454LdwPR7N2NBtHs3EMN47hxhFvHPHWEW8d8dYRbx3x1hEnjjhxxM5eZjew++GId47YGU46w0lnOOkMp5zhlDOccoZTznBq5Ym7LmFQ/u7H2v3Yuh+ORgr3wxFLRywdsXTEyhErR6wcsXLEyhFrR6wdjXY02tE4Mxn0pvvhiNeOeO2IN45444g3jnjjiDeOeOuIt45464i3jnjriBNHnHTEZvXW/Vi7H1v3oytl1iDdD0fs9KydnrXTs3Z61k7P2ulZOz1rp2ft9KydnrXTs271THiU7O4ub1876H3KLgG+yDVJrLyDWHG8DofApykJ+Di7mpx4prh5/6svrvvCrmbtnZWzTjtSaGb319P+Yu+ohn5WQT+r+NJl9+4BLAvb045squz57O4XBIU3m75s7y92HI/23RBQ9w5U7frfbrT4rX109VLedq9iAmZrAbj58dH6vEl29l1FyAxqxTlH1fpNjll5ykPNaqhZ1qZd0WNZoeIbWHy0GZdyX38IeymceZ3TkYqbglsuH8uhEFsoBDve3Cs1oCQcbs4b71j9mQfgL2VoghU0gXP6a06PbY+4lMCuITs4RnqvyQ17x27YM6BV3WypNtzAcXzu7VtZkA+0UO+82eY1cow0DvYVNxLVhus0LTNqDEFz9xMJZ7aWj31VDjKBpnerB7VlNV2VH+u8ItzLFvQAt+ZwU5hMODe3b0oc5F1WP0JeEgjlF1+CGw/7x6wyi9I6WJUC5bBTz/6xONxZKqgSCfWqOLP4x8vgQIYF3TBim37Is9NddsnCymGPdbOoFGwLGiZVdrkEPUwCOaRnwblqy8JcdxuwAGL0C2Ju3twfCjSBQ/fuSrNtKI/m9lyqTwE2/aqV7QcNn0N+xJJoODus/SqfVUd5umTFqQ55QMu6JZ9UrD7sK7CwY0D36BeaCTfKmgmicx8hF9g3fDCh2A5muAxcvYLexwci/BC5XvaPtXu0E6yN4OLIxzWcQswAl3asB50MLCncEtJk9TM8cvNA59AP7oAkO8+F6yQtl+vlPgl4QP/ug03NKeXOvbkD9LqFXYT1d3f5ARlVQHv40aq57tkw2Gf7x8DvJEADfVg9xqEs3xUBix0YaT6KEyOtqPMaj9YE+E0fG654QzSdqkS6gGtMF11IdhVxV1SN48iOGJHYAmuyY+yu/HgyN3OHRoQjLOFcf/e+JxQcFHOLWTbKyE9MRwaOaucbz+mv5TLoyKAXevRkzfXjvN5noeokUJ2L86Tk+kH+6ZKfQg0K6G1dnCDXXGdsOVhXN5gKg+lUcnZsOQwLwxEtuQVfW7gNtIYsYGdg5z6zVqSXZ7Az9+E9J0rD51CcP2zCeQe2wiEMcsPLcnrIq3PjqwPfBGdA7XEYnskn9240VAacwRxKIDdcz+ge5QUMYHkXH7Bx/EN+YYJYoJCN1wfXvxs2Q2cJlOHByB03ygyHx/qQnx4uwQoVLgi0c9pbTqWGy8DlJmCR69AEuRprimURLEwS0Mc8CrfiBlvDw7nMwF2Cfu6QJckCEw0T2+WRzzV5y2C0uO4+1p5hL4Mrb+/+2UC2YVHWVB8BXDaey4hSzv5VRTj04LzswdhkhM37a159HmoXmDnx8dBIf+vZBKbeAlP36OyIbup9VR4O57IuBhDUCtrK4YNqNWJyaroHQ9FjwqxXaXgMuwz0CdKjwCO6aaLXgYITwCXxeDE3dwMm4UgCKnGYtxJcLP1gX+IC0y709WwDHvPi4THwihB1YtGEx7IOCm1B/0646aQ4daE6LAmnJI9Oa57FqVlh/BKoaQOU7WEedsnezEPN8MQgpoLK8og6O8EX9SASgsiHh9sVp7+ibhYY745NWwIeoPt67F7zQtwVD8UlOwTagNOz3yxgFxtFnb+/ZsHCUYOG+E0GyfW6hsGn4lJTqDL0Vi6oU5LXiGXkXr0JGAF35XanlORGU9E4l7zCPCCm5HavFAukuOegwTQAOpnbn9Mr3jRDoBxCbM53K8Ub5nxoQn6CDRDE7dApxZunffctUCfo676rK64pg2A9AHS70jvO55vSw6ECPAwbSJmSBCwNa3e9UypuBjRMPmSHa9gVwDppzbmJd/nnIQgHcUkWnRguzCC8wXY5E/fV3WN6UNtwOLN9/pj9UoZr4xUMFAQ3Ax6zc7iihur1sdaa66RN8Ut+bDrqJRQ6jD39XjE3Bx2zz7d5s+A5Nj6grMysjBb6WxjAsdPLsRkuSAkwVBEj5a4IWoPy+21VzXXVY3mLwXkosItudqwA5k2yfR3KsIXek3W/tmhxfAiLQg/ODmxb9BdUKfS0rG+yJev23TdYGPoVdubDo2oDSrkEAXav69QEx225wMxQ237nXnODxTAhlujmmAdg45cinOpP5b483V9DuF0BBbJOeRhkwHm/q5ddjjfD5NKsFS9FOG0LCEyLhBvxpnTVzPlFlYcgCbSDYCOTJig54e0aCJkK5bdruNbT8RHQm9vxcfiEZBvTqKHOqfU3dBg+Q4F1AOcMjb1gM8yNXq47nbMmHA87EizPApZNuaAYHPAjLTbOMVyZgIWJ6ztsS4v9O7LvwKiHhSdNabrvwImRNTy3oAENYGeaJmS87NFqGXg5Z2I29jxXeRgdmQvggZE4hwMed4TzA2yvW01qdmo/V0Uz6ooP4SoEDNc1a+52UrzPzDOLIRawgqPO99I1Z7v370MgEDbA9XDO41RZs4Q87stDOL0q0AKXZCNZhLllMnR9MB3Gp7CxG5SQS7i3ClP+HKQx0aLhDhLczfJpdOziFnJxG77BQhuMKjaKg0zKs4mhwnYBS7HZF1X+UNR40RQkUPi8QXbB23T0PEN7xyvIgt3rrvJj+SEf5EuZtH8wn3YC6BU3xKuH20v5iKZ2OJ8KF/uJhHMxdZ5V+8dm7V7noSwSumRWj21xIscJbkEI1zH0ivMaNYXxgg7q8hYF27VqCp3dAYXu3OKcXdvXHIgIHZ9DKvSKc141DbQBfe7c2GfBuvrxen+PYnrgPLR3HtyyowmGiz090wO1utxRxbrz+lKeb6+3CBvYwc6xcumCK7aTNUyI3dYd1KtLLdWCG/dmxIe9DGJQbEQ79Fkwhc5Ng6wxGzsU4QiTcPHsc1J5sT88EDlNEIITbhWv2GX8JdxzDza1XELUji/86ZJVebAvBoF+nxzK4r6X8vJYXuvG8YbLPjihCZcqrdllY2OJoCtCTUpvf7YZA+Q5yNRxSzl2eF9PxE4p6At9pjjn7a4nHAHBCUusvQK43tQweB9CKwKmYIi1c5QsZn09N/7pvqhCMBlmprj0ds1isSgcgVsbbjiw1VcHqjPDbtCnPrNaqJsFOQpq4RaYE4Ib0VeE2wu4lBHaZzhz3ZCIpoD+XETdNcPlbQu33ynYONNkVCJXIyB0KDxaz67aPxZ3YYwD84zZfdoWsayL/4Q4AbCKS87VLJrc82hm84ANGKR0zuXPL5tA55wfilNDlP7822//Dw07ZOvsQAEA"; \ No newline at end of file diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 00000000..108428c3 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,1383 @@ +:root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-icon-background: var(--light-color-background); + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + --light-color-link: #1f70c2; + + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: var(--light-color-ts-variable); + --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var(--light-color-ts-constructor); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: var(--light-color-ts-type-alias); + --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + --dark-color-link: #00aff4; + + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: var(--dark-color-ts-variable); + --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias); + --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; +} + +@media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } +} + +@media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } +} + +html { + color-scheme: var(--color-scheme); +} + +body { + margin: 0; +} + +:root[data-theme="light"] { + --color-background: var(--light-color-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + --color-link: var(--light-color-link); + + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); +} + +:root[data-theme="dark"] { + --color-background: var(--dark-color-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + --color-link: var(--dark-color-link); + + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; +} + +h1 > a, +h2 > a, +h3 > a, +h4 > a, +h5 > a, +h6 > a { + text-decoration: none; + color: var(--color-text); +} + +h1 { + font-size: 1.875rem; + margin: 0.67rem 0; +} + +h2 { + font-size: 1.5rem; + margin: 0.83rem 0; +} + +h3 { + font-size: 1.25rem; + margin: 1rem 0; +} + +h4 { + font-size: 1.05rem; + margin: 1.33rem 0; +} + +h5 { + font-size: 1rem; + margin: 1.5rem 0; +} + +h6 { + font-size: 0.875rem; + margin: 2.33rem 0; +} + +.uppercase { + text-transform: uppercase; +} + +dl, +menu, +ol, +ul { + margin: 1em 0; +} + +dd { + margin: 0 0 0 40px; +} + +.container { + max-width: 1700px; + padding: 0 2rem; +} + +/* Footer */ +.tsd-generator { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; +} + +.tsd-generator > p { + margin-top: 0; + margin-bottom: 0; + padding: 0 1rem; +} + +.container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); +} + +@keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } +} +@keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } +} +@keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } +} +@keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } +} +@keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } +} +@keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } +} +body { + background: var(--color-background); + font-family: "Segoe UI", sans-serif; + font-size: 16px; + color: var(--color-text); +} + +a { + color: var(--color-link); + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; +} + +code, +pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; +} + +pre { + position: relative; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); +} +pre code { + padding: 0; + font-size: 100%; +} +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} + +blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; +} + +.tsd-typography { + line-height: 1.333em; +} +.tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; +} +.tsd-typography .tsd-index-panel h3, +.tsd-index-panel .tsd-typography h3, +.tsd-typography h4, +.tsd-typography h5, +.tsd-typography h6 { + font-size: 1em; +} +.tsd-typography h5, +.tsd-typography h6 { + font-weight: normal; +} +.tsd-typography p, +.tsd-typography ul, +.tsd-typography ol { + margin: 1em 0; +} +.tsd-typography table { + border-collapse: collapse; + border: none; +} +.tsd-typography td, +.tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); +} +.tsd-typography thead, +.tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); +} + +.tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); +} +.tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; +} +.tsd-breadcrumb a:hover { + text-decoration: underline; +} +.tsd-breadcrumb li { + display: inline; +} +.tsd-breadcrumb li:after { + content: " / "; +} + +.tsd-comment-tags { + display: flex; + flex-direction: column; +} +dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; +} +dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; +} +dl.tsd-comment-tag-group dd { + margin: 0; +} +code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; +} +h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; +} + +dl.tsd-comment-tag-group dd:before, +dl.tsd-comment-tag-group dd:after { + content: " "; +} +dl.tsd-comment-tag-group dd pre, +dl.tsd-comment-tag-group dd:after { + clear: both; +} +dl.tsd-comment-tag-group p { + margin: 0; +} + +.tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; +} +.tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; +} + +.tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; +} +.tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; +} +.tsd-filter-input { + display: flex; + width: fit-content; + width: -moz-fit-content; + align-items: center; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + cursor: pointer; +} +.tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; +} +.tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; +} +.tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; +} +.tsd-filter-input input[type="checkbox"]:focus + svg { + transform: scale(0.95); +} +.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { + transform: scale(1); +} +.tsd-checkbox-background { + fill: var(--color-accent); +} +input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; +} +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); +} + +.tsd-theme-toggle { + padding-top: 0.75rem; +} +.tsd-theme-toggle > h4 { + display: inline; + vertical-align: middle; + margin-right: 0.75rem; +} + +.tsd-hierarchy { + list-style: square; + margin: 0; +} +.tsd-hierarchy .target { + font-weight: bold; +} + +.tsd-panel-group.tsd-index-group { + margin-bottom: 0; +} +.tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; +} +@media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } +} +@media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } +} +.tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; +} + +.tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; +} + +.tsd-anchor { + position: relative; + top: -100px; +} + +.tsd-member { + position: relative; +} +.tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; +} + +.tsd-navigation.settings { + margin: 1rem 0; +} +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.5rem); +} +.tsd-navigation a, +.tsd-navigation summary > span, +.tsd-page-navigation a { + display: inline-flex; + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; +} +.tsd-navigation a.current, +.tsd-page-navigation a.current { + background: var(--color-active-menu-item); +} +.tsd-navigation a:hover, +.tsd-page-navigation a:hover { + text-decoration: underline; +} +.tsd-navigation ul, +.tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; +} +.tsd-navigation li, +.tsd-page-navigation li { + padding: 0; + max-width: 100%; +} +.tsd-nested-navigation { + margin-left: 3rem; +} +.tsd-nested-navigation > li > details { + margin-left: -1.5rem; +} +.tsd-small-nested-navigation { + margin-left: 1.5rem; +} +.tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; +} + +.tsd-nested-navigation > li > a, +.tsd-nested-navigation > li > span { + width: calc(100% - 1.75rem - 0.5rem); +} + +.tsd-page-navigation ul { + padding-left: 1.75rem; +} + +#tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; +} +#tsd-sidebar-links a:last-of-type { + margin-bottom: 0; +} + +a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} +.tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ +} +.tsd-accordion-summary, +.tsd-accordion-summary a { + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + + cursor: pointer; +} +.tsd-accordion-summary a { + width: calc(100% - 1.5rem); +} +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; +} +.tsd-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; +} +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-kind-icon path { + transform-origin: center; + transform: scale(1.1); +} +.tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; +} + +.tsd-panel { + margin-bottom: 2.5rem; +} +.tsd-panel.tsd-member { + margin-bottom: 4rem; +} +.tsd-panel:empty { + display: none; +} +.tsd-panel > h1, +.tsd-panel > h2, +.tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; +} +.tsd-panel > h1.tsd-before-signature, +.tsd-panel > h2.tsd-before-signature, +.tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; +} + +.tsd-panel-group { + margin: 4rem 0; +} +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; +} + +#tsd-search { + transition: background-color 0.2s; +} +#tsd-search .title { + position: relative; + z-index: 2; +} +#tsd-search .field { + position: absolute; + left: 0; + top: 0; + right: 2.5rem; + height: 100%; +} +#tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); +} +#tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; +} +#tsd-search .field input, +#tsd-search .title, +#tsd-toolbar-links a { + transition: opacity 0.2s; +} +#tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); +} +#tsd-search .results li { + background-color: var(--color-background); + line-height: initial; + padding: 4px; +} +#tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); +} +#tsd-search .results li.state { + display: none; +} +#tsd-search .results li.current:not(.no-results), +#tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); +} +#tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; +} +#tsd-search .results a:before { + top: 10px; +} +#tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; +} +#tsd-search.has-focus { + background-color: var(--color-accent); +} +#tsd-search.has-focus .field input { + top: 0; + opacity: 1; +} +#tsd-search.has-focus .title, +#tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; +} +#tsd-search.has-focus .results { + visibility: visible; +} +#tsd-search.loading .results li.state.loading { + display: block; +} +#tsd-search.failure .results li.state.failure { + display: block; +} + +#tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; +} +#tsd-toolbar-links a { + margin-left: 1.5rem; +} +#tsd-toolbar-links a:hover { + text-decoration: underline; +} + +.tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; +} + +.tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; +} + +.tsd-signature-type { + font-style: italic; + font-weight: normal; +} + +.tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; +} +.tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; +} +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; +} + +ul.tsd-parameter-list, +ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; +} +ul.tsd-parameter-list > li.tsd-parameter-signature, +ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; +} +ul.tsd-parameter-list h5, +ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; +} +.tsd-sources { + margin-top: 1rem; + font-size: 0.875em; +} +.tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; +} +.tsd-sources ul { + list-style: none; + padding: 0; +} + +.tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; +} +.tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; +} +.tsd-page-toolbar a.title { + font-weight: bold; +} +.tsd-page-toolbar a.title:hover { + text-decoration: underline; +} +.tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; +} +.tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; +} +.tsd-page-toolbar .table-cell:first-child { + width: 100%; +} +.tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; +} + +.tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; +} +.tsd-widget:hover { + opacity: 0.9; +} +.tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); +} +.tsd-widget.no-caption { + width: 40px; +} +.tsd-widget.no-caption:before { + margin: 0; +} + +.tsd-widget.options, +.tsd-widget.menu { + display: none; +} +input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; +} +input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; +} + +img { + max-width: 100%; +} + +.tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); +} + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; +} + +.tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; +} + +.deprecated { + text-decoration: line-through !important; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +.tsd-kind-project { + color: var(--color-ts-project); +} +.tsd-kind-module { + color: var(--color-ts-module); +} +.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-kind-enum-member { + color: var(--color-ts-enum-member); +} +.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-kind-constructor { + color: var(--color-ts-constructor); +} +.tsd-kind-property { + color: var(--color-ts-property); +} +.tsd-kind-method { + color: var(--color-ts-method); +} +.tsd-kind-call-signature { + color: var(--color-ts-call-signature); +} +.tsd-kind-index-signature { + color: var(--color-ts-index-signature); +} +.tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); +} +.tsd-kind-parameter { + color: var(--color-ts-parameter); +} +.tsd-kind-type-literal { + color: var(--color-ts-type-literal); +} +.tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); +} +.tsd-kind-accessor { + color: var(--color-ts-accessor); +} +.tsd-kind-get-signature { + color: var(--color-ts-get-signature); +} +.tsd-kind-set-signature { + color: var(--color-ts-set-signature); +} +.tsd-kind-type-alias { + color: var(--color-ts-type-alias); +} + +/* if we have a kind icon, don't color the text by kind */ +.tsd-kind-icon ~ span { + color: var(--color-text); +} + +* { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); +} + +*::-webkit-scrollbar { + width: 0.75rem; +} + +*::-webkit-scrollbar-track { + background: var(--color-icon-background); +} + +*::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); +} + +/* mobile */ +@media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } +} + +/* one sidebar */ +@media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } +} +@media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } +} + +/* two sidebars */ +@media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem 0; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } +} diff --git a/functions/CSVToArray.html b/functions/CSVToArray.html new file mode 100644 index 00000000..e6626ece --- /dev/null +++ b/functions/CSVToArray.html @@ -0,0 +1,92 @@ +CSVToArray | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function CSVToArray

+
+
    + +
  • +

    Converts a comma-separated string of values (CSV) to a 2D array.

    +
    +
    +

    Parameters

    +
      +
    • +
      data: string
      +

      csv data

      +
      +
    • +
    • +
      delimiter: string = ','
      +

      separator, default ','

      +
      +
    • +
    • +
      omitFirstRow: boolean = false
      +

      the first row is the table header data, default false

      +
      +
    +

    Returns string[][]

    array

    + +
    +

    Example

    CSVToArray('a,b\\nc,d')
    // `[['a','b'],['c','d']]`.

    CSVToArray('a;b\\\nc;d', ';')
    // `[['a','b'],['c','d']]`.

    CSVToArray('col1,col2\\\na,b\\\nc,d', ',', true)
    // `[['a','b'],['c','d']]`. +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/CSVToJSON.html b/functions/CSVToJSON.html new file mode 100644 index 00000000..d5a923f8 --- /dev/null +++ b/functions/CSVToJSON.html @@ -0,0 +1,89 @@ +CSVToJSON | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function CSVToJSON

+
+
    + +
  • +

    Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.

    +
    +
    +

    Parameters

    +
      +
    • +
      data: string
      +

      csv data

      +
      +
    • +
    • +
      delimiter: string = ','
      +

      delimiter, default ','

      +
      +
    +

    Returns any[]

      +
    • json
    • +
    + +
    +

    Example

    CSVToJSON('col1,col2\\na,b\\\nc,d')
    // `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.

    CSVToJSON('col1;col2\\\na;b\\\nc;d', ';')
    // `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`. +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/JSONToCSV.html b/functions/JSONToCSV.html new file mode 100644 index 00000000..06af1c79 --- /dev/null +++ b/functions/JSONToCSV.html @@ -0,0 +1,91 @@ +JSONToCSV | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function JSONToCSV

+
+
    + +
  • +

    Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.

    +
    +
    +

    Parameters

    +
      +
    • +
      arr: any[]
    • +
    • +
      columns: any[]
      +

      the specified columns

      +
      +
    • +
    • +
      delimiter: string = ','
      +

      delimiter, default ','

      +
      +
    +

    Returns string

      +
    • CSV data
    • +
    + +
    +

    Example

    JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])
    // 'a,b\n "1", "2"\n "3", "4"\n "6",""\n"", "7"'

    JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')
    // 'a;b\n "1"; "2"\n "3"; "4"\n "6";""\n""; "7"' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/RGBToHex.html b/functions/RGBToHex.html new file mode 100644 index 00000000..0f4039e2 --- /dev/null +++ b/functions/RGBToHex.html @@ -0,0 +1,94 @@ +RGBToHex | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function RGBToHex

+
+
    + +
  • +

    Converts RGB component values to color codes.

    +
    +
    +

    Parameters

    +
      +
    • +
      r: number
      +

      the 1st value of RGB

      +
      +
    • +
    • +
      g: number
      +

      RGB's 2nd value

      +
      +
    • +
    • +
      b: number
      +

      RGB's 3rd value

      +
      +
    +

    Returns string

      +
    • hex value
    • +
    + +
    +

    Example

    RGBToHex(255, 165, 1)
    // 'ffa501' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/addEvent-1.html b/functions/addEvent-1.html new file mode 100644 index 00000000..60d11f38 --- /dev/null +++ b/functions/addEvent-1.html @@ -0,0 +1,88 @@ +addEvent | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function addEvent

+
+
    + +
  • +

    addEvent() event delegate, supports multiple delegates

    +
    +
    +

    Parameters

    +
      +
    • +
      element: AnyObject
      +

      js dom object

      +
      +
    • +
    • +
      type: string
      +

      The event type. No need to add on

      +
      +
    • +
    • +
      handler: AnyFunction
      +

      callback method

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/all.html b/functions/all.html new file mode 100644 index 00000000..af0f735c --- /dev/null +++ b/functions/all.html @@ -0,0 +1,94 @@ +all | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function all

+
+
    + +
  • +

    Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      arr: T[]
      +

      the target array

      +
      +
    • +
    • +
      fn: AnyFunction
      +

      the judgment method

      +
      +
    +

    Returns boolean

      +
    • the result of the judgment
    • +
    + +
    +

    Example

    all([4, 2, 3], x => x > 1)
    // true +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/any.html b/functions/any.html new file mode 100644 index 00000000..ddee3a38 --- /dev/null +++ b/functions/any.html @@ -0,0 +1,94 @@ +any | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function any

+
+
    + +
  • +

    Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      arr: T[]
      +

      the target array

      +
      +
    • +
    • +
      fn: AnyFunction
      +

      the judgment method

      +
      +
    +

    Returns boolean

      +
    • the result of the judgment
    • +
    + +
    +

    Example

    any([0, 1, 2, 0], x => x >= 2)
    // true +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/appVersion.html b/functions/appVersion.html new file mode 100644 index 00000000..804a9c46 --- /dev/null +++ b/functions/appVersion.html @@ -0,0 +1,120 @@ +appVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function appVersion

+
+
    + +
  • +

    Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'

    +
    +
    +

    Parameters

    +
      +
    • +
      appName: string
      +

      app name

      +
      +
    +

    Returns string | null

    string|null

    + +
    +

    Example

    // navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'
    appVersion('Chrome') // 114.0.0.0
    appVersion('Safari') // 537.36
    appVersion('appname', false) // null
    appVersion('appname') // 1.0.0-beta.8 +
    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      appName: string
    • +
    • +
      ua: string
    +

    Returns string | null

  • + +
  • +
    +

    Parameters

    +
      +
    • +
      appName: string
    • +
    • +
      ua: boolean
    +

    Returns string | null

  • + +
  • +
    +

    Parameters

    +
      +
    • +
      appName: string
    • +
    • +
      ua: string
    • +
    • +
      ignoreCase: boolean
    +

    Returns string | null

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/arrayBufferToBase64.html b/functions/arrayBufferToBase64.html new file mode 100644 index 00000000..40bb15b4 --- /dev/null +++ b/functions/arrayBufferToBase64.html @@ -0,0 +1,86 @@ +arrayBufferToBase64 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function arrayBufferToBase64

+
+
    + +
  • +

    arrayBuffer to base64

    +
    +
    +

    Parameters

    +
      +
    • +
      input: ArrayBuffer
      +

      arrayBuffer

      +
      +
    • +
    • +
      mime: string = 'image/png'
      +

      image mime, default: image/png

      +
      +
    +

    Returns string

      +
    • base64
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/arrayBufferToBlob.html b/functions/arrayBufferToBlob.html new file mode 100644 index 00000000..5df051cb --- /dev/null +++ b/functions/arrayBufferToBlob.html @@ -0,0 +1,86 @@ +arrayBufferToBlob | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function arrayBufferToBlob

+
+
    + +
  • +

    arrayBuffer to blob

    +
    +
    +

    Parameters

    +
      +
    • +
      input: ArrayBuffer
      +

      arrayBuffer

      +
      +
    • +
    • +
      mime: string = 'image/png'
      +

      image mime, default: image/png

      +
      +
    +

    Returns Blob

      +
    • blob
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/arrayToCSV.html b/functions/arrayToCSV.html new file mode 100644 index 00000000..a77d3e85 --- /dev/null +++ b/functions/arrayToCSV.html @@ -0,0 +1,89 @@ +arrayToCSV | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function arrayToCSV

+
+
    + +
  • +

    Converts a two-dimensional array to a comma-separated string of values (CSV).

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T extends unknown[][]

    +
    +

    Parameters

    +
      +
    • +
      arr: T
    • +
    • +
      delimiter: string = ','
      +

      delimiter, default ','

      +
      +
    +

    Returns string

    CSV data

    + +
    +

    Example

    arrayToCSV([['a', 'b'], ['c', 'd']])
    // '"a", "b" \n "c", "d"'

    arrayToCSV([['a', 'b'], ['c', 'd']], ';')
    // '"a"; "b"\n "c"; "d"'

    arrayToCSV([['a', '"b" great'], ['c', 3.1415]])
    // '"a", """b"" great"\n "c",3.1415' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/awaitTo.html b/functions/awaitTo.html new file mode 100644 index 00000000..e60521a8 --- /dev/null +++ b/functions/awaitTo.html @@ -0,0 +1,124 @@ +awaitTo | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function awaitTo

+
+
    + +
  • +

    Async await wrapper for easy error handling

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    • +
    • +

      E = Error

    +
    +

    Parameters

    +
      +
    • +
      promise: Promise<T>
      +

      Promise

      +
      +
    +

    Returns Promise<[E, undefined] | [null, T]>

      +
    • [Error, undefined] | [null, data | data[]]
    • +
    + +
  • + +
  • +
    +

    Type Parameters

    +
      +
    • +

      T

    • +
    • +

      E = Error

    +
    +

    Parameters

    +
      +
    • +
      promise: Promise<T>[]
    +

    Returns Promise<[E, undefined] | [null, T[]]>

  • + +
  • +
    +

    Type Parameters

    +
      +
    • +

      T

    • +
    • +

      E = Error

    +
    +

    Parameters

    +
      +
    • +
      promise: Promise<T>
    • +
    • +
      Rest ...promises: Promise<T>[]
    +

    Returns Promise<[E, undefined] | [null, T[]]>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/base64ToArrayBuffer.html b/functions/base64ToArrayBuffer.html new file mode 100644 index 00000000..06df2f1c --- /dev/null +++ b/functions/base64ToArrayBuffer.html @@ -0,0 +1,81 @@ +base64ToArrayBuffer | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function base64ToArrayBuffer

+
+
    + +
  • +

    base64 to arrayBuffer

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      base64 string

      +
      +
    +

    Returns ArrayBuffer

      +
    • arrayBuffer
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/base64ToBlob.html b/functions/base64ToBlob.html new file mode 100644 index 00000000..e392d4a0 --- /dev/null +++ b/functions/base64ToBlob.html @@ -0,0 +1,81 @@ +base64ToBlob | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function base64ToBlob

+
+
    + +
  • +

    base64 to blob

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      base64 string

      +
      +
    +

    Returns Blob

      +
    • blob
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/base64ToFile.html b/functions/base64ToFile.html new file mode 100644 index 00000000..54465c5c --- /dev/null +++ b/functions/base64ToFile.html @@ -0,0 +1,86 @@ +base64ToFile | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function base64ToFile

+
+
    + +
  • +

    base64 to file

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      base64 string

      +
      +
    • +
    • +
      fileName: string
      +

      file name

      +
      +
    +

    Returns File

      +
    • the BASE64 encoding
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/blobToArrayBuffer.html b/functions/blobToArrayBuffer.html new file mode 100644 index 00000000..d75cdd8f --- /dev/null +++ b/functions/blobToArrayBuffer.html @@ -0,0 +1,81 @@ +blobToArrayBuffer | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function blobToArrayBuffer

+
+
    + +
  • +

    blob to arrayBuffer

    +
    +
    +

    Parameters

    +
      +
    • +
      input: Blob
      +

      blob data

      +
      +
    +

    Returns Promise<ArrayBuffer | null>

      +
    • arrayBuffer
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/blobToBase64.html b/functions/blobToBase64.html new file mode 100644 index 00000000..1aefaa04 --- /dev/null +++ b/functions/blobToBase64.html @@ -0,0 +1,81 @@ +blobToBase64 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function blobToBase64

+
+
    + +
  • +

    blob to base64

    +
    +
    +

    Parameters

    +
      +
    • +
      input: Blob
      +

      blob data

      +
      +
    +

    Returns Promise<string | null>

      +
    • base64 string
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/blobToUrl.html b/functions/blobToUrl.html new file mode 100644 index 00000000..60142ac2 --- /dev/null +++ b/functions/blobToUrl.html @@ -0,0 +1,81 @@ +blobToUrl | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function blobToUrl

+
+
    + +
  • +

    blob to blobUrl

    +
    +
    +

    Parameters

    +
      +
    • +
      input: Blob
      +

      blob data

      +
      +
    +

    Returns string

      +
    • blobUrl
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/browserVersion-1.html b/functions/browserVersion-1.html new file mode 100644 index 00000000..97a252d7 --- /dev/null +++ b/functions/browserVersion-1.html @@ -0,0 +1,82 @@ +browserVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function browserVersion

+
+
    + +
  • +

    Get the browser name and version

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional ua: string
      +

      ua or any ua like string, may not be passed, default is navigator.userAgent

      +
      +
    +

    Returns BrowserVersion | null

    BrowserVersion|null

    + +
    +

    Example

    // Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
    browserVersion() // \{ name: 'Chrome', version: '114.0.0.0' \} +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/camel2Dash.html b/functions/camel2Dash.html new file mode 100644 index 00000000..a7e4b313 --- /dev/null +++ b/functions/camel2Dash.html @@ -0,0 +1,81 @@ +camel2Dash | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function camel2Dash

+
+
    + +
  • +

    Converts humped strings to -spaced and all lowercase Dash pattern

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      the string to be converted

      +
      +
    +

    Returns string

      +
    • the converted string
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/cleanData.html b/functions/cleanData.html new file mode 100644 index 00000000..6d06195c --- /dev/null +++ b/functions/cleanData.html @@ -0,0 +1,89 @@ +cleanData | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function cleanData

+
+
    + +
  • +

    Data cleaning methods

    +
    +
    +

    Parameters

    +
      +
    • +
      data: any
      +

      the object to be cleaned, must be passed

      +
      +
    • +
    • +
      map: any[] | AnyObject
      +

      the data queue to be cleaned, can be passed as array or object

      +
      +
    • +
    • +
      Optional nullFix: any
      +
    +

    Returns any

      +
    • the cleaned object
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/clearAttr.html b/functions/clearAttr.html new file mode 100644 index 00000000..d1cb11d4 --- /dev/null +++ b/functions/clearAttr.html @@ -0,0 +1,79 @@ +clearAttr | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function clearAttr

+
+
    + +
  • +

    Remove all attributes of HTML tags

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      pass in the string

      +
      +
    +

    Returns string

    newString

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/clearHtml.html b/functions/clearHtml.html new file mode 100644 index 00000000..7c96e091 --- /dev/null +++ b/functions/clearHtml.html @@ -0,0 +1,79 @@ +clearHtml | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function clearHtml

+
+
    + +
  • +

    Removing HTML tags

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      string with html tags

      +
      +
    +

    Returns string

    newString

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/client.html b/functions/client.html new file mode 100644 index 00000000..0aeca29f --- /dev/null +++ b/functions/client.html @@ -0,0 +1,88 @@ +client | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function client

+
+
    + +
  • +

    The client method returns a browser judgment result: { ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string = ''
      +

      optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin

      +
      +
    • +
    • +
      userAgent: string = navigator.userAgent
      +

      optional, pass in a custom ua, default takes the browser's navigator.userAgent

      +
      +
    +

    Returns boolean | {
        ANDROID: boolean;
        GECKO: boolean;
        IE: boolean;
        IOS: boolean;
        IPAD: boolean;
        IPHONE: boolean;
        MOBILE: boolean;
        OPERA: boolean;
        QQ: null | RegExpMatchArray;
        QQBROWSER: boolean;
        TRIDENT: boolean;
        WEBKIT: boolean;
        WEIXIN: boolean;
    }

      +
    • the common ua match table, if name is passed, then returns whether the terminal matches true/false
    • +
    + +
    +

    Deprecated

    Will be refactored for the next major release

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/compareVersion.html b/functions/compareVersion.html new file mode 100644 index 00000000..f9b6afc1 --- /dev/null +++ b/functions/compareVersion.html @@ -0,0 +1,87 @@ +compareVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function compareVersion

+
+
    + +
  • +

    Version number size comparison, tag version: rc > beta > alpha > other

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      input version

      +
      +
    • +
    • +
      compare: string
      +

      compare version

      +
      +
    +

    Returns 0 | 1 | -1

    1/0/-1

    + +
    +

    Example

    compareVersion('1.11.0', '1.9.9')
    // => 1: 1=Version 1.11.0 is newer than 1.9.9

    compareVersion('1.11.0', '1.11.0')
    // => 0: 0=Versions 1.11.0 and 1.11.0 are the same

    compareVersion('1.11.0', '1.99.0')
    // => -1: -1=Version 1.11.0 is older than 1.99.0

    compareVersion('1.0.0.0.0.10', '1.0')
    // => -1

    // compare tag version: rc > beta > alpha > other
    compareVersion('1.11.0', '1.11.0-beta.1')
    // => -1

    compareVersion('1.11.0-beta.1', '1.11.0')
    // => -1

    compareVersion('1.11.0-beta.10', '1.11.0-beta.10')
    // => 0

    compareVersion('1.11.0-alpha.10', '1.11.0-beta.1')
    // => -1

    compareVersion('1.11.0-alpha.10', '1.11.0-rc.1')
    // => -1

    compareVersion('1.11.0-tag.10', '1.11.0-alpha.1')
    // => -1

    compareVersion('1.11.0-tag.10', '1.11.0-tag.1')
    // => 1

    compareVersion('1.11.0-release.10', '1.11.0-tag.1')
    // => 1 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/complement.html b/functions/complement.html new file mode 100644 index 00000000..ec14776c --- /dev/null +++ b/functions/complement.html @@ -0,0 +1,87 @@ +complement | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function complement

+
+
    + +
  • +

    Find the complement of multiple arrays

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      Rest ...args: T[][]
      +

      arguments

      +
      +
    +

    Returns T[]

    array

    + +
    +

    Example

    complement([1, 2], [2, '33'], [2]) // [1, '33']
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/contains.html b/functions/contains.html new file mode 100644 index 00000000..15272c2c --- /dev/null +++ b/functions/contains.html @@ -0,0 +1,87 @@ +contains | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function contains

+
+
    + +
  • +

    Whether the array contains the specified element

    +
    +
    +

    Parameters

    +
      +
    • +
      arr: any[]
      +

      the target array

      +
      +
    • +
    • +
      item: any
      +

      the target to find

      +
      +
    +

    Returns boolean

    boolean

    + +
    +

    Example

    contains([1, 2], 2) // true
    contains([1, 2], 3) // false +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/copy.html b/functions/copy.html new file mode 100644 index 00000000..c2c3303a --- /dev/null +++ b/functions/copy.html @@ -0,0 +1,81 @@ +copy | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function copy

+
+
    + +
  • +

    copy to clipboard

    +
    +
    +

    Parameters

    +
      +
    • +
      value: any
      +

      any target

      +
      +
    +

    Returns undefined | boolean

      +
    • target is Object
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/cutCHSString.html b/functions/cutCHSString.html new file mode 100644 index 00000000..d965441a --- /dev/null +++ b/functions/cutCHSString.html @@ -0,0 +1,87 @@ +cutCHSString | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function cutCHSString

+
+
    + +
  • +

    Intercept string, Chinese counts as 2 bytes

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +

      the string to be intercepted

      +
      +
    • +
    • +
      len: number = str.length
      +
    • +
    • +
      hasDot: boolean = false
      +
    +

    Returns string

      +
    • the intercepted string
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/dash2Camel.html b/functions/dash2Camel.html new file mode 100644 index 00000000..aaca93ea --- /dev/null +++ b/functions/dash2Camel.html @@ -0,0 +1,81 @@ +dash2Camel | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function dash2Camel

+
+
    + +
  • +

    Converts -spaced and all lowercase Dash patterns to humped strings

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      the string to be converted

      +
      +
    +

    Returns string

      +
    • the converted string
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/decodeBase64.html b/functions/decodeBase64.html new file mode 100644 index 00000000..85a880a4 --- /dev/null +++ b/functions/decodeBase64.html @@ -0,0 +1,79 @@ +decodeBase64 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function decodeBase64

+
+
    + +
  • +

    base64 decoding

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      the string to be decoded

      +
      +
    +

    Returns string

    decoded string

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/decodeUtf8.html b/functions/decodeUtf8.html new file mode 100644 index 00000000..ad78b232 --- /dev/null +++ b/functions/decodeUtf8.html @@ -0,0 +1,76 @@ +decodeUtf8 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function decodeUtf8

+
+
    + +
  • +

    Decoding Utf8

    +
    +
    +

    Parameters

    +
      +
    • +
      utftext: string
    +

    Returns string

    decoded string

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/delCache.html b/functions/delCache.html new file mode 100644 index 00000000..2de6d6d3 --- /dev/null +++ b/functions/delCache.html @@ -0,0 +1,78 @@ +delCache | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function delCache

+
+
    + +
  • +

    Delete localStorage

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      name

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/delCookie.html b/functions/delCookie.html new file mode 100644 index 00000000..40460b48 --- /dev/null +++ b/functions/delCookie.html @@ -0,0 +1,78 @@ +delCookie | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function delCookie

+
+
    + +
  • +

    Delete cookie

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      cookie name

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/delSession.html b/functions/delSession.html new file mode 100644 index 00000000..6f22d2a5 --- /dev/null +++ b/functions/delSession.html @@ -0,0 +1,78 @@ +delSession | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function delSession

+
+
    + +
  • +

    Delete sessionStorage

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      name

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/delay.html b/functions/delay.html new file mode 100644 index 00000000..56dd35a5 --- /dev/null +++ b/functions/delay.html @@ -0,0 +1,106 @@ +delay | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function delay

+
+
    + +
  • +

    debounce & throttle

    +
    +

    Returns {
        map: any;
        destroy(id) => void;
        register(id, fn, time, boo) => void;
    }

    class

    + +
      +
    • +
      map: any
    • +
    • +
      destroy:function
      +
        + +
      • +
        +

        Parameters

        +
          +
        • +
          id: string
        +

        Returns void

    • +
    • +
      register:function
      +
        + +
      • +
        +

        Parameters

        +
          +
        • +
          id: string
        • +
        • +
          fn: AnyFunction
        • +
        • +
          time: number
        • +
        • +
          boo: boolean
        +

        Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/download.html b/functions/download.html new file mode 100644 index 00000000..a9064c24 --- /dev/null +++ b/functions/download.html @@ -0,0 +1,94 @@ +download | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function download

+
+
    + +
  • +

    Several ways of file downloading:

    +
      +
    1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);
    2. +
    3. using a tag download attribute (or js create a tag);
    4. +
    5. browser-recognizable pdf, txt files, back-end compatible with handling attachment;
    6. +
    7. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request
    8. +
    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      link

      +
      +
    • +
    • +
      filename: string
      +

      filename

      +
      +
    • +
    • +
      Optional type: string
      +

      download type 'href','open','download','request'

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/encodeBase64.html b/functions/encodeBase64.html new file mode 100644 index 00000000..9d063e53 --- /dev/null +++ b/functions/encodeBase64.html @@ -0,0 +1,81 @@ +encodeBase64 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function encodeBase64

+
+
    + +
  • +

    String, number to base64

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      the string to be encoded

      +
      +
    +

    Returns string

      +
    • the BASE64 encoding
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/encodeUtf8.html b/functions/encodeUtf8.html new file mode 100644 index 00000000..447f84a9 --- /dev/null +++ b/functions/encodeUtf8.html @@ -0,0 +1,78 @@ +encodeUtf8 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function encodeUtf8

+
+
    + +
  • +

    Encoding Utf8

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
    +

    Returns string

      +
    • the UTF-8 encoding
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/escape.html b/functions/escape.html new file mode 100644 index 00000000..79a8ae4b --- /dev/null +++ b/functions/escape.html @@ -0,0 +1,84 @@ +escape | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function escape

+
+
    + +
  • +

    Escaping HTML Special Characters

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      string with html tags

      +
      +
    +

    Returns string

      +
    • newString
    • +
    + +
    +

    Example

    escape('<div>test<br />string</div>')
    // '&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/extend.html b/functions/extend.html new file mode 100644 index 00000000..74fa5198 --- /dev/null +++ b/functions/extend.html @@ -0,0 +1,119 @@ +extend | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function extend

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/fileToBase64.html b/functions/fileToBase64.html new file mode 100644 index 00000000..32f787c8 --- /dev/null +++ b/functions/fileToBase64.html @@ -0,0 +1,81 @@ +fileToBase64 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function fileToBase64

+
+
    + +
  • +

    file to base64

    +
    +
    +

    Parameters

    +
      +
    • +
      input: File
      +

      file data

      +
      +
    +

    Returns Promise<string | null>

      +
    • base64 string
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/fillIPv6.html b/functions/fillIPv6.html new file mode 100644 index 00000000..d6dc2084 --- /dev/null +++ b/functions/fillIPv6.html @@ -0,0 +1,81 @@ +fillIPv6 | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function fillIPv6

+
+
    + +
  • +

    Read full IPv6

    +
    +
    +

    Parameters

    +
      +
    • +
      ip: string
    +

    Returns string

      +
    • string
    • +
    + +
    +

    Example

    fillIPv6('2409:8005:800::2')
    // '2409:8005:0800:0000:0000:0000:0000:0002'

    fillIPv6('2409:8005:800::1c')
    // '2409:8005:0800:0000:0000:0000:0000:001c' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/fingerprint.html b/functions/fingerprint.html new file mode 100644 index 00000000..e6849c60 --- /dev/null +++ b/functions/fingerprint.html @@ -0,0 +1,81 @@ +fingerprint | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function fingerprint

+
+
    + +
  • +

    Generating Browser Fingerprints

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional domain: string
      +

      key string, default: location.host

      +
      +
    +

    Returns null | string

      +
    • fingerprint
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/fixNumber.html b/functions/fixNumber.html new file mode 100644 index 00000000..f844192c --- /dev/null +++ b/functions/fixNumber.html @@ -0,0 +1,89 @@ +fixNumber | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function fixNumber

+
+
    + +
  • +

    Intercept the decimal places, do not fill in the missing 0

    +
    +
    +

    Parameters

    +
      +
    • +
      number: string | number
      +

      the number of digits to be processed, required

      +
      +
    • +
    • +
      n: number = 2
      +

      the number of decimal places to keep, default is 2

      +
      +
    +

    Returns number

      +
    • the new number
    • +
    + +
    +

    Example

    fixNumber('100.888')
    // 100.88

    fixNumber('100.8', 2)
    // 100.8

    fixNumber('100.8888', 3)
    // 100.888 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getAppVersion.html b/functions/getAppVersion.html new file mode 100644 index 00000000..7c09d38e --- /dev/null +++ b/functions/getAppVersion.html @@ -0,0 +1,91 @@ +getAppVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getAppVersion

+
+
    + +
  • +

    Get the APP version number

    +
    +
    +

    Parameters

    +
      +
    • +
      appName: string
      +

      app name

      +
      +
    • +
    • +
      Optional withApp: boolean
      +

      whether to bring the name

      +
      +
    • +
    • +
      Optional userAgent: string
      +

      ua, may not be passed, default is navigator.appVersion

      +
      +
    +

    Returns string | boolean | null

    null/true/false

    + +
    +

    Deprecated

    please use 'appVersion' instead

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getCHSLength.html b/functions/getCHSLength.html new file mode 100644 index 00000000..c01ece6d --- /dev/null +++ b/functions/getCHSLength.html @@ -0,0 +1,84 @@ +getCHSLength | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getCHSLength

+
+
    + +
  • +

    Get the length of the text, Chinese counts as 2 bytes

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +

      string

      +
      +
    +

    Returns number

      +
    • length
    • +
    + +
    +

    Example

    getCHSLength('测试')
    // 2 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getCache.html b/functions/getCache.html new file mode 100644 index 00000000..ba420a0f --- /dev/null +++ b/functions/getCache.html @@ -0,0 +1,84 @@ +getCache | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getCache

+
+
    + +
  • +

    Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      cache name

      +
      +
    +

    Returns any

      +
    • data, if it's an object, it's also an object
    • +
    + +
    +

    Example

    const data1 = 100
    const data2 = { a: 10 }
    const data3 = null

    setCache('data1', data1)
    setCache('data2', data2)
    setCache('data3', data3)

    getCache('data1') // 100
    getCache('data2') // {a:10}
    getCache('data3') // null

    getCache('data4') // null +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getCookie.html b/functions/getCookie.html new file mode 100644 index 00000000..692b0434 --- /dev/null +++ b/functions/getCookie.html @@ -0,0 +1,84 @@ +getCookie | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getCookie

+
+
    + +
  • +

    Read cookie by name

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      cookie name

      +
      +
    +

    Returns any

      +
    • the cookie string
    • +
    + +
    +

    Example

    getCookie('data1')
    // 100 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getCookies.html b/functions/getCookies.html new file mode 100644 index 00000000..8d400eb3 --- /dev/null +++ b/functions/getCookies.html @@ -0,0 +1,76 @@ +getCookies | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getCookies

+
+
    + +
  • +

    Read all cookies

    +
    +

    Returns Record<string, string>

      +
    • the cookie values
    • +
    + +
    +

    Example

    getCookies()
    // \{ token: 'xxx', name: 'saqqdy' \} +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getDirParam.html b/functions/getDirParam.html new file mode 100644 index 00000000..d80b9077 --- /dev/null +++ b/functions/getDirParam.html @@ -0,0 +1,83 @@ +getDirParam | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getDirParam

+
+
    + +
  • +

    Get directory form URL parameters

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      pass in the url address

      +
      +
    +

    Returns DirParamType

      +
    • parameter object
    • +
    + +
    +

    Deprecated

    It will be refactored and renamed getDirParams in the next major release.

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getFileType.html b/functions/getFileType.html new file mode 100644 index 00000000..f37fa2f4 --- /dev/null +++ b/functions/getFileType.html @@ -0,0 +1,87 @@ +getFileType | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getFileType

+
+
    + +
  • +

    Determine file type based on link suffix

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      file url

      +
      +
    +

    Returns {
        suffix: string;
        type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
    }

    result

    + +
      +
    • +
      suffix: string
    • +
    • +
      type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip"
    +
    +

    Example

    getFileType('/name.png')
    // { "suffix": "png", "type": "image" }

    getFileType('/name.PDF')
    // { "suffix": "pdf", "type": "pdf" }

    getFileType('/name.xyz')
    // { "suffix": "xyz", "type": "other" } +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getNumber.html b/functions/getNumber.html new file mode 100644 index 00000000..c9fe7531 --- /dev/null +++ b/functions/getNumber.html @@ -0,0 +1,84 @@ +getNumber | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getNumber

+
+
    + +
  • +

    Get the number in the string

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      pass in a string with a number

      +
      +
    +

    Returns string

      +
    • a pure numeric string
    • +
    + +
    +

    Example

    getNumber('Chrome123.33')
    // '123.33'.

    getNumber('234test.88')
    // '234.88'. +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getOsVersion.html b/functions/getOsVersion.html new file mode 100644 index 00000000..ac17fc1c --- /dev/null +++ b/functions/getOsVersion.html @@ -0,0 +1,96 @@ +getOsVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getOsVersion

+
+
    + +
  • +

    Get the phone system version

    +
    +
    +

    Parameters

    +
      +
    • +
      osName: string
      +

      system type string Android, iPod, iWatch or iPhone

      +
      +
    • +
    • +
      Optional withOS: boolean
      +

      whether to bring the name

      +
      +
    • +
    • +
      Optional userAgent: string
      +

      ua, may not be passed, default takes navigator.appVersion

      +
      +
    +

    Returns string | boolean | null

      +
    • null/true/false
    • +
    + +
    +

    Example

    getOsVersion('iPhone')
    // '13.2.3'

    getOsVersion('iPhone', true)
    // 'iPhone/13.2.3' +
    + +

    Deprecated

    please use 'osVersion' instead

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getProperty.html b/functions/getProperty.html new file mode 100644 index 00000000..680f482f --- /dev/null +++ b/functions/getProperty.html @@ -0,0 +1,87 @@ +getProperty | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getProperty

+
+
    + +
  • +

    Get array, object property values based on path string

    +
    +
    +

    Parameters

    +
      +
    • +
      target: any
      +

      target array, object

      +
      +
    • +
    • +
      prop: string | (() => string)
      +

      query target, can pass function

      +
      +
    +

    Returns any

    result

    + +
    +

    Example

    const target = {
    a: 1,
    b: [{
    c: 2
    }]
    }
    getProperty(target, 'a') // 1
    getProperty(target, 'b[0].c') // 2
    getProperty(target, () => 'a') // 1 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getQueryParam.html b/functions/getQueryParam.html new file mode 100644 index 00000000..afaf57a3 --- /dev/null +++ b/functions/getQueryParam.html @@ -0,0 +1,96 @@ +getQueryParam | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getQueryParam

+
+
    + +
  • +

    Get a single query parameter (behind "#")

    +
    +
    +

    Parameters

    +
      +
    • +
      key: string
      +

      key name

      +
      +
    +

    Returns string | undefined

      +
    • result
    • +
    + +
    +

    Example

    getQueryParam('key1')
    // key1 => xxx

    getQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')
    // key1 => 200 +
    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      key: string
    • +
    • +
      url: string
    +

    Returns string | undefined

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getQueryParams.html b/functions/getQueryParams.html new file mode 100644 index 00000000..c8e3ba04 --- /dev/null +++ b/functions/getQueryParams.html @@ -0,0 +1,106 @@ +getQueryParams | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getQueryParams

+
+
    + +
  • +

    Get all URL parameters (behind "#")

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      pass in the url string

      +
      +
    +

    Returns Record<string, string>

      +
    • result
    • +
    + +
    +

    Example

    getQueryParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"200"\}

    getQueryParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":200\}

    getQueryParams(true)
    // \{"key1":200\} +
    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      url: boolean
    +

    Returns Record<string, unknown>

  • + +
  • +
    +

    Parameters

    +
      +
    • +
      url: string
    • +
    • +
      covert: boolean
    +

    Returns Record<string, unknown>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getScrollPosition.html b/functions/getScrollPosition.html new file mode 100644 index 00000000..470f533d --- /dev/null +++ b/functions/getScrollPosition.html @@ -0,0 +1,75 @@ +getScrollPosition | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getScrollPosition

+
+
    + +
  • +

    Get slide to top and bottom return 'top' 'bottom', recommend using limit flow

    +
    +

    Returns undefined | "bottom" | "top"

      +
    • position
    • +
    + +
    +

    Deprecated

    will be removed in the next major release.

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getSession.html b/functions/getSession.html new file mode 100644 index 00000000..d2cf31c4 --- /dev/null +++ b/functions/getSession.html @@ -0,0 +1,84 @@ +getSession | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getSession

+
+
    + +
  • +

    Read sessionStorage

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      name

      +
      +
    +

    Returns any

      +
    • sessionStorage
    • +
    + +
    +

    Example

    const data1 = 100
    const data2 = { a: 10 }
    const data3 = null

    setSession('data1', data1)
    setSession('data2', data2)
    setSession('data3', data3)

    getSession('data1') // 100
    getSession('data2') // {a:10}
    getSession('data3') // null

    getSession('data4') // null +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getType.html b/functions/getType.html new file mode 100644 index 00000000..497dba1f --- /dev/null +++ b/functions/getType.html @@ -0,0 +1,84 @@ +getType | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getType

+
+
    + +
  • +

    Get the target type

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = any

    +
    +

    Parameters

    +
      +
    • +
      target: T
      +

      target

      +
      +
    +

    Returns "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp"

    type

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getUrlParam.html b/functions/getUrlParam.html new file mode 100644 index 00000000..89d59adf --- /dev/null +++ b/functions/getUrlParam.html @@ -0,0 +1,96 @@ +getUrlParam | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getUrlParam

+
+
    + +
  • +

    Get a single URL parameter (from the "location.search", before "#")

    +
    +
    +

    Parameters

    +
      +
    • +
      key: string
      +

      key name

      +
      +
    +

    Returns string | undefined

      +
    • result
    • +
    + +
    +

    Example

    getUrlParam('key1')
    // key1 => xxx

    getUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')
    // key1 => 100 +
    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      key: string
    • +
    • +
      url: string
    +

    Returns string | undefined

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/getUrlParams.html b/functions/getUrlParams.html new file mode 100644 index 00000000..8a3694a7 --- /dev/null +++ b/functions/getUrlParams.html @@ -0,0 +1,106 @@ +getUrlParams | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function getUrlParams

+
+
    + +
  • +

    Get all URL parameters (from the "location.search", before "#")

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      pass in the url string

      +
      +
    +

    Returns Record<string, string>

      +
    • result
    • +
    + +
    +

    Example

    getUrlParams('https://test.com?key1=100#/home?key1=200')
    // \{"key1":"100"\}

    getUrlParams('https://test.com?key1=100#/home?key1=200', true)
    // \{"key1":100\}

    getUrlParams(true)
    // \{"key1":100\} +
    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      url: boolean
    +

    Returns Record<string, unknown>

  • + +
  • +
    +

    Parameters

    +
      +
    • +
      url: string
    • +
    • +
      covert: boolean
    +

    Returns Record<string, unknown>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/intersect.html b/functions/intersect.html new file mode 100644 index 00000000..c5a42284 --- /dev/null +++ b/functions/intersect.html @@ -0,0 +1,89 @@ +intersect | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function intersect

+
+
    + +
  • +

    Find the intersection of multiple arrays

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      Rest ...args: T[][]
      +

      arguments

      +
      +
    +

    Returns T[]

      +
    • new array
    • +
    + +
    +

    Example

    intersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isArray.html b/functions/isArray.html new file mode 100644 index 00000000..55b23b38 --- /dev/null +++ b/functions/isArray.html @@ -0,0 +1,84 @@ +isArray | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isArray

+
+
    + +
  • +

    Determine if it is an array

    +
    +
    +

    Parameters

    +
      +
    • +
      target: any
      +

      any target

      +
      +
    +

    Returns target is any[]

      +
    • target is Array
    • +
    + +
    +

    Example

    isArray([]) // true
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isDarkMode.html b/functions/isDarkMode.html new file mode 100644 index 00000000..640d079f --- /dev/null +++ b/functions/isDarkMode.html @@ -0,0 +1,76 @@ +isDarkMode | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isDarkMode

+
+
    + +
  • +

    Determine if dark color mode

    +
    +

    Returns boolean

      +
    • result
    • +
    + +
    +

    Example

    isDarkMode() // true
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isDigitals.html b/functions/isDigitals.html new file mode 100644 index 00000000..8dd1d0be --- /dev/null +++ b/functions/isDigitals.html @@ -0,0 +1,83 @@ +isDigitals | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isDigitals

+
+
    + +
  • +

    Whether or not it is a string consisting of numbers

    +
    +
    +

    Parameters

    +
      +
    • +
      str: string
      +

      the string to be tested

      +
      +
    +

    Returns boolean

      +
    • true/false
    • +
    + +
    +

    Deprecated

    will be removed in the next major release.

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isEqual.html b/functions/isEqual.html new file mode 100644 index 00000000..d66be471 --- /dev/null +++ b/functions/isEqual.html @@ -0,0 +1,96 @@ +isEqual | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isEqual

+
+
    + +
  • +

    Determine if 2 objects are equal

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T

    • +
    • +

      P

    +
    +

    Parameters

    +
      +
    • +
      a: T
      +

      source

      +
      +
    • +
    • +
      b: P
      +

      compare

      +
      +
    +

    Returns boolean

      +
    • a equals to b
    • +
    + +
    +

    Example

    isEqual({ a: 22, b: {} }, { b: {}, a: 22 })
    // true

    isEqual([1, 2], [2, 1])
    // false

    isEqual(NaN, NaN)
    // true +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isExitsFunction.html b/functions/isExitsFunction.html new file mode 100644 index 00000000..f26b0d30 --- /dev/null +++ b/functions/isExitsFunction.html @@ -0,0 +1,84 @@ +isExitsFunction | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isExitsFunction

+
+
    + +
  • +

    The presence or absence of the specified function

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      incoming function name

      +
      +
    +

    Returns boolean

      +
    • true/false
    • +
    + +
    +

    Example

    isExitsFunction('test') // false
    isExitsFunction('console.log') // true +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isExitsVariable.html b/functions/isExitsVariable.html new file mode 100644 index 00000000..583daa3c --- /dev/null +++ b/functions/isExitsVariable.html @@ -0,0 +1,84 @@ +isExitsVariable | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isExitsVariable

+
+
    + +
  • +

    The presence or absence of the specified variable

    +
    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      variable name

      +
      +
    +

    Returns boolean

      +
    • true/false
    • +
    + +
    +

    Example

    isExitsVariable('test') // false
    isExitsVariable('window') // true +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isIterable.html b/functions/isIterable.html new file mode 100644 index 00000000..5d9f9259 --- /dev/null +++ b/functions/isIterable.html @@ -0,0 +1,89 @@ +isIterable | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isIterable

+
+
    + +
  • +

    Determine if it is iterable

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = any

    +
    +

    Parameters

    +
      +
    • +
      target: T | Iterable<T>
      +

      any target

      +
      +
    +

    Returns target is Iterable<T>

      +
    • target is Array
    • +
    + +
    +

    Example

    isIterable([]) // true
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isObject.html b/functions/isObject.html new file mode 100644 index 00000000..01ca6391 --- /dev/null +++ b/functions/isObject.html @@ -0,0 +1,84 @@ +isObject | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isObject

+
+
    + +
  • +

    Determine if target is an object

    +
    +
    +

    Parameters

    +
      +
    • +
      target: any
      +

      any target

      +
      +
    +

    Returns target is Object

      +
    • target is Object
    • +
    + +
    +

    Example

    isObject({}) // true
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isPlainObject.html b/functions/isPlainObject.html new file mode 100644 index 00000000..0601dc1b --- /dev/null +++ b/functions/isPlainObject.html @@ -0,0 +1,84 @@ +isPlainObject | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isPlainObject

+
+
    + +
  • +

    Determine if target is an plain object

    +
    +
    +

    Parameters

    +
      +
    • +
      target: unknown
      +

      any target

      +
      +
    +

    Returns target is PlainObject

      +
    • target is plain Object
    • +
    + +
    +

    Example

    isPlainObject({}) // true
    isPlainObject(window) // false +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/isWindow.html b/functions/isWindow.html new file mode 100644 index 00000000..8bc76a00 --- /dev/null +++ b/functions/isWindow.html @@ -0,0 +1,84 @@ +isWindow | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function isWindow

+
+
    + +
  • +

    Determine if target is an window object

    +
    +
    +

    Parameters

    +
      +
    • +
      target: any
      +

      any

      +
      +
    +

    Returns target is Window

      +
    • target is Window
    • +
    + +
    +

    Example

    isWindow({}) // false
    isWindow(window) // true +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/loadSource.html b/functions/loadSource.html new file mode 100644 index 00000000..084be3f0 --- /dev/null +++ b/functions/loadSource.html @@ -0,0 +1,86 @@ +loadSource | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function loadSource

+
+
    + +
  • +

    Dynamic loading of resources, support js, images, css links, css style strings

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      link to the resource, type must be passed when passing in styleString

      +
      +
    • +
    • +
      option: string | SourceOptions
      +

      parameters: attrs, props, force

      +
      +
    +

    Returns Promise<boolean | string>

      +
    • true|false|imgUrl
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/mapTemplate.html b/functions/mapTemplate.html new file mode 100644 index 00000000..0961c9c0 --- /dev/null +++ b/functions/mapTemplate.html @@ -0,0 +1,89 @@ +mapTemplate | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function mapTemplate

+
+
    + +
  • +

    Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}

    +
    +
    +

    Parameters

    +
      +
    • +
      tmp: string
      +

      Template string

      +
      +
    • +
    • +
      data: Record<string, unknown> | ((value) => unknown)
      +

      Template data of map function

      +
      +
    +

    Returns string

      +
    • result
    • +
    + +
    +

    Example

    const tmp = "My name is ${name}, I'm ${age} years old."
    mapTemplate(tmp, {
    name: 'saqqdy',
    age: 18
    })
    // My name is saqqdy, I'm 18 years old.

    mapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))
    // My name is saqqdy, I'm 28 years old.

    const tmp = "My name is {{name}}, I'm {{age}} years old."
    mapTemplate(tmp, {
    name: 'saqqdy',
    age: 18
    })
    // My name is saqqdy, I'm 18 years old. +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/minus.html b/functions/minus.html new file mode 100644 index 00000000..37131916 --- /dev/null +++ b/functions/minus.html @@ -0,0 +1,89 @@ +minus | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function minus

+
+
    + +
  • +

    Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      Rest ...args: T[][]
      +

      arguments

      +
      +
    +

    Returns T[]

      +
    • new array
    • +
    + +
    +

    Example

    minus([1, 2], [2, '33'], [2, 4]) // [1]
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/mountCss.html b/functions/mountCss.html new file mode 100644 index 00000000..cd1601f4 --- /dev/null +++ b/functions/mountCss.html @@ -0,0 +1,86 @@ +mountCss | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function mountCss

+
+
    + +
  • +

    Dynamic loading of css link resources

    +
    +
    +

    Parameters

    +
      +
    • +
      src: string
      +

      resource address

      +
      +
    • +
    • +
      Optional option: CssOptions
      +

      parameters: attrs, props, force

      +
      +
    +

    Returns Promise<boolean>

      +
    • result
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/mountImg.html b/functions/mountImg.html new file mode 100644 index 00000000..0836254c --- /dev/null +++ b/functions/mountImg.html @@ -0,0 +1,86 @@ +mountImg | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function mountImg

+
+
    + +
  • +

    Dynamic loading of image resources

    +
    +
    +

    Parameters

    +
      +
    • +
      src: string
      +

      resource address

      +
      +
    • +
    • +
      Optional option: ImgOptions
      +

      parameters: attrs, props, force

      +
      +
    +

    Returns Promise<boolean | string>

      +
    • result
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/mountJs.html b/functions/mountJs.html new file mode 100644 index 00000000..e42ee708 --- /dev/null +++ b/functions/mountJs.html @@ -0,0 +1,86 @@ +mountJs | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function mountJs

+
+
    + +
  • +

    Dynamic loading of js linked resources

    +
    +
    +

    Parameters

    +
      +
    • +
      src: string
      +

      resource address

      +
      +
    • +
    • +
      Optional option: JsOptions
      +

      parameters: attrs, props, force

      +
      +
    +

    Returns Promise<boolean>

      +
    • result
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/mountStyle.html b/functions/mountStyle.html new file mode 100644 index 00000000..201518df --- /dev/null +++ b/functions/mountStyle.html @@ -0,0 +1,83 @@ +mountStyle | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function mountStyle

+
+
    + +
  • +

    Dynamic loading of css styles

    +
    +
    +

    Parameters

    +
      +
    • +
      css: string
    • +
    • +
      Optional option: StyleOptions
      +

      parameters: attrs, props

      +
      +
    +

    Returns Promise<boolean>

      +
    • results
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/nextIndex.html b/functions/nextIndex.html new file mode 100644 index 00000000..2ea0a9a5 --- /dev/null +++ b/functions/nextIndex.html @@ -0,0 +1,89 @@ +nextIndex | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function nextIndex

+
+
    + +
  • +

    Return the next zIndex value

    +
    +
    +

    Parameters

    +
      +
    • +
      min: number = 5000
      +

      optional, minimum value

      +
      +
    • +
    • +
      max: number = 10000
      +

      optional, maximum value

      +
      +
    +

    Returns number

      +
    • number
    • +
    + +
    +

    Example

    nextIndex()
    // 1

    nextIndex(1000)
    // 1001

    nextIndex(10, 100)
    // 100 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/nextVersion.html b/functions/nextVersion.html new file mode 100644 index 00000000..5fe49e76 --- /dev/null +++ b/functions/nextVersion.html @@ -0,0 +1,94 @@ +nextVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function nextVersion

+
+
    + +
  • +

    return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)

    +
    +
    +

    Parameters

    +
      +
    • +
      version: string
      +

      version(like: 1.0.0)

      +
      +
    • +
    • +
      Optional type: "major" | "minor" | "patch" | "premajor" | "preminor" | "prepatch" | "prerelease"
      +

      optional, version type

      +
      +
    • +
    • +
      preid: string = ''
      +

      optional, prerelease id

      +
      +
    +

    Returns string

      +
    • new version
    • +
    + +
    +

    Example

    nextVersion('1.2.33') // 1.2.34

    nextVersion('1.2.33', 'major') // 2.0.0

    nextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/openUrl.html b/functions/openUrl.html new file mode 100644 index 00000000..fcad6f76 --- /dev/null +++ b/functions/openUrl.html @@ -0,0 +1,78 @@ +openUrl | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function openUrl

+
+
    + +
  • +

    Open link in new tab (file jump download if browser can't parse)

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      link

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/osVersion-1.html b/functions/osVersion-1.html new file mode 100644 index 00000000..6ca5a8c0 --- /dev/null +++ b/functions/osVersion-1.html @@ -0,0 +1,82 @@ +osVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function osVersion

+
+
    + +
  • +

    Get the system name and version

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional ua: string
      +

      ua or any ua like string, may not be passed, default is navigator.userAgent

      +
      +
    +

    Returns OsVersion | null

    OsVersion|null

    + +
    +

    Example

    // ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
    osVersion() // \{ name: 'iOS', version: '13.3' \}

    // iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
    osVersion() // \{ name: 'iOS', version: '13.2.3' \}

    // mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
    osVersion() // \{ name: 'MacOS', version: '10.15.7' \}

    // windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
    osVersion() // \{ name: 'Windows', version: '10.0' \}

    // windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
    osVersion() // \{ name: 'Windows', version: 'XP' \}

    // windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'
    osVersion() // \{ name: 'WindowsPhone', version: '10.0' \}
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/parseUrlParam.html b/functions/parseUrlParam.html new file mode 100644 index 00000000..3a27a35d --- /dev/null +++ b/functions/parseUrlParam.html @@ -0,0 +1,87 @@ +parseUrlParam | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function parseUrlParam

+
+
    + +
  • +

    parse url params

    +
    +
    +

    Parameters

    +
      +
    • +
      url: string
      +

      url string (like: ?key1=value1&key2=value2)

      +
      +
    • +
    • +
      covert: boolean = false
      +

      Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

      +
      +
    +

    Returns Record<string, unknown>

    object

    + +
    +

    Example

    parseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')
    // \{"key1":"100","key2":"true","key3":"null","key4":"undefined","key5":"NaN","key6":"10.888","key7":"Infinity","key8":"test"\}

    parseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)
    // \{"key1":100,"key2":true,"key3":null,"key5":NaN,"key6":10.888,"key7":Infinity,"key8":"test"\} +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/preloader.html b/functions/preloader.html new file mode 100644 index 00000000..acc8ae6b --- /dev/null +++ b/functions/preloader.html @@ -0,0 +1,88 @@ +preloader | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function preloader

+
+
    + +
  • +

    Image preloading

    +
    +
    +

    Parameters

    +
      +
    • +
      images: string
      +

      images url

      +
      +
    +

    Returns HTMLImageElement

    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      images: string[]
    +

    Returns Record<string, HTMLImageElement>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/promiseFactory.html b/functions/promiseFactory.html new file mode 100644 index 00000000..07e70411 --- /dev/null +++ b/functions/promiseFactory.html @@ -0,0 +1,100 @@ +promiseFactory | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function promiseFactory

+
+
    + +
  • +

    Convert an object to a promise like api

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T extends object

    +
    +

    Parameters

    +
      +
    • +
      original: T
      +

      original object

      +
      +
    • +
    • +
      resolver: (() => Promise<any>)
      +

      resolver function

      +
      +
      +
        +
      • +
          +
        • (): Promise<any>
        • +
        • +

          Returns Promise<any>

    +

    Returns T & PromiseLike<T>

      +
    • result
    • +
    + +
    +

    Example

    import { promiseFactory, waiting } from 'js-cool'

    function promise() {
    const stats = {
    value: 100
    }

    const resolver = () =>
    new Promise(resolve =>
    waiting(2000).then(() => {
    stats.value = 200
    resolve(stats)
    })
    )

    return promiseFactory(stats, resolver)
    }

    const res = promise() // res => 100
    const res = await promise() // res => 200 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomColor.html b/functions/randomColor.html new file mode 100644 index 00000000..7c2bcf21 --- /dev/null +++ b/functions/randomColor.html @@ -0,0 +1,73 @@ +randomColor | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function randomColor

+
+
    + +
  • +

    Generate random hexadecimal colors

    +
    +

    Returns string

      +
    • result
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomNumber.html b/functions/randomNumber.html new file mode 100644 index 00000000..8e5d35b0 --- /dev/null +++ b/functions/randomNumber.html @@ -0,0 +1,89 @@ +randomNumber | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function randomNumber

+
+
    + +
  • +

    Get a random integer

    +
    +
    +

    Parameters

    +
      +
    • +
      min: number = 1
      +

      the minimum value of the random number

      +
      +
    • +
    • +
      max: number = 10
      +

      the maximum value of the random number

      +
      +
    +

    Returns number

      +
    • random number
    • +
    + +
    +

    Example

    randomNumber()
    // 8

    randomNumber(0.1, 0.9)
    // 0.8 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomNumbers.html b/functions/randomNumbers.html new file mode 100644 index 00000000..18d22f7a --- /dev/null +++ b/functions/randomNumbers.html @@ -0,0 +1,91 @@ +randomNumbers | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function randomNumbers

+
+
    + +
  • +

    Generate n random integers that sum to a fixed sum

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional n: number
      +

      Number of generated integers, default: 1

      +
      +
    • +
    • +
      Optional sum: number
      +

      Sum of generated integers, default: 100

      +
      +
    • +
    • +
      Optional noZero: boolean
    +

    Returns number[]

      +
    • numbers
    • +
    + +
    +

    Example

    randomNumbers()
    // [8]

    randomNumbers(4, 5)
    // [1, 1, 2, 1]

    randomNumbers(4, 5, false)
    // [0, 1, 2, 2] +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/randomString.html b/functions/randomString.html new file mode 100644 index 00000000..bfbbd80e --- /dev/null +++ b/functions/randomString.html @@ -0,0 +1,101 @@ +randomString | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function randomString

+
+
    + +
  • +

    Get a random string

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional len: number
      +

      the length of the random string that needs to be obtained

      +
      +
    • +
    • +
      Optional options: boolean | RandomStringOptions
      +

      optional, randomString options

      +
      +
    +

    Returns string

      +
    • random string
    • +
    + +
    +

    Example

    // 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default
    randomString()
    // PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ

    // 2. Generate a 16-bit random string
    randomString(16)
    // coTgZy0mqqMJ1sMM

    // 3. Same effect as #2 above
    randomString({
    length: 16
    })
    // ngCI5aPqJm84t90d

    // 4. Generate containing special characters (old way of passing values, not recommended)
    randomString(true)
    // 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd

    // 5. Same effect as #4 above (recommended)
    randomString({
    charTypes: ['uppercase', 'lowercase', 'number', 'special']
    })
    // m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK

    // 6. Same effect as #4 above, Limit string length to 16 bits
    randomString(16, true)
    // dXz[J_sYM^3d8fnA

    // 7. Generate a 16-bit random number
    randomString({
    length: 16,
    charTypes: 'number'
    })
    // 7450026301030286

    // 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
    randomString({
    length: 16,
    noConfuse: true
    })
    // 8DEGna8ppC4mqyew

    // 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.
    randomString({
    length: 16,
    strict: true
    })
    // PFYAPD5KFqOHIADL +
    +
  • + +
  • +
    +

    Parameters

    +
    +

    Returns string

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/removeEvent.html b/functions/removeEvent.html new file mode 100644 index 00000000..d98a4857 --- /dev/null +++ b/functions/removeEvent.html @@ -0,0 +1,88 @@ +removeEvent | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function removeEvent

+
+
    + +
  • +

    removeEvent removes the event delegate created by addEvent

    +
    +
    +

    Parameters

    +
      +
    • +
      element: AnyObject
      +

      js dom object

      +
      +
    • +
    • +
      type: string
      +

      The type of the event. No need to add on

      +
      +
    • +
    • +
      handler: AnyFunction
      +

      Callback method.

      +
      +
    +

    Returns void

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/searchObject.html b/functions/searchObject.html new file mode 100644 index 00000000..1d015ec0 --- /dev/null +++ b/functions/searchObject.html @@ -0,0 +1,96 @@ +searchObject | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function searchObject

+
+
    + +
  • +

    tree object depth lookup

    +
    +
    +

    Parameters

    +
      +
    • +
      tree: object | any[]
      +

      tree object

      +
      +
    • +
    • +
      expression: any
      +

      required Query method

      +
      +
    • +
    • +
      keySet: SearchKeySet
      +

      optional Default subclass name, query name

      +
      +
    • +
    • +
      number: number = 0
      +

      optional Number of lookups, if not passed, query all

      +
      +
    +

    Returns any[]

      +
    • the queried array
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/setCache.html b/functions/setCache.html new file mode 100644 index 00000000..c016c76c --- /dev/null +++ b/functions/setCache.html @@ -0,0 +1,96 @@ +setCache | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function setCache

+
+
    + +
  • +

    Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      cache name

      +
      +
    • +
    • +
      value: T
      +

      cache data, can be passed directly into Object

      +
      +
    • +
    • +
      Optional seconds: string | number
      +

      cache time (seconds)

      +
      +
    +

    Returns void

    +
    +

    Example

    // set boolean
    setCache('boolean', true)

    // set object
    setCache('object', { name: 'saqqdy' })

    // set number, expires in 20 seconds
    setCache('number', 666, 20) +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/setCookie.html b/functions/setCookie.html new file mode 100644 index 00000000..a87425b3 --- /dev/null +++ b/functions/setCookie.html @@ -0,0 +1,106 @@ +setCookie | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function setCookie

+
+
    + +
  • +

    setCookie method for writing cookies

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T extends string | number | boolean

    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      cookie name

      +
      +
    • +
    • +
      value: T
      +

      Set the value to be stored, either as an object or as a string

      +
      +
    • +
    • +
      seconds: string | number
      +

      cookie validity default 1 day

      +
      +
    • +
    • +
      path: string = '/'
      +

      path, default '/'

      +
      +
    • +
    • +
      samesite: boolean = true
      +

      SameSite, default true

      +
      +
    +

    Returns void

    +
    +

    Example

    // expires in 86400 seconds
    setCookie('token', 'xxxxxx')

    // set to path
    setCookie('token', 'xxxxxx', 20, '/app')

    // enable samesite
    setCookie('number', 666, 20, '/', false) +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/setProperty.html b/functions/setProperty.html new file mode 100644 index 00000000..e46ee72f --- /dev/null +++ b/functions/setProperty.html @@ -0,0 +1,91 @@ +setProperty | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function setProperty

+
+
    + +
  • +

    Set array, object property values based on path strings

    +
    +
    +

    Parameters

    +
      +
    • +
      target: any
      +

      target array, object

      +
      +
    • +
    • +
      prop: string | (() => string)
      +

      set target, can pass function, 'a' | 'a[1].c'

      +
      +
    • +
    • +
      value: any
    +

    Returns any

      +
    • the corresponding value
    • +
    + +
    +

    Example

    const target = {
    a: 1,
    b: [{
    c: 2
    }]
    }

    setProperty(target, 'a') // 1

    setProperty(target, 'b[0].c') // 2

    setProperty(target, () => 'a') // 1 +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/setSession.html b/functions/setSession.html new file mode 100644 index 00000000..4fead3c7 --- /dev/null +++ b/functions/setSession.html @@ -0,0 +1,96 @@ +setSession | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function setSession

+
+
    + +
  • +

    Write sessionStorage

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      name: string
      +

      name

      +
      +
    • +
    • +
      value: T
      +

      Set the value to be stored, either as an object or as a string

      +
      +
    • +
    • +
      Optional seconds: string | number
      +

      the valid time

      +
      +
    +

    Returns void

    +
    +

    Example

    // set boolean
    setSession('boolean', true)

    // set object
    setSession('object', { name: 'saqqdy' })

    // set number, expires in 20 seconds
    setSession('number', 666, 20) +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/shuffle.html b/functions/shuffle.html new file mode 100644 index 00000000..ebb92f3e --- /dev/null +++ b/functions/shuffle.html @@ -0,0 +1,106 @@ +shuffle | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function shuffle

+
+
    + +
  • +

    shuffling algorithm, Reordering arrays or strings

    +
    +
    +

    Parameters

    +
      +
    • +
      value: string
      +

      arrays or strings

      +
      +
    • +
    • +
      Optional size: number
      +

      new array or string length

      +
      +
    +

    Returns string

      +
    • result
    • +
    + +
    +

    Example

    const str = 'abcde'
    const arr = [1,2,3]

    shuffle(str)
    // cdbse

    shuffle(arr)
    // [3, 1, 2]

    shuffle(arr, 2)
    // [3, 2] +
    +
  • + +
  • +
    +

    Type Parameters

    +
      +
    • +

      T extends unknown[] = unknown[]

    +
    +

    Parameters

    +
      +
    • +
      value: T
    • +
    • +
      Optional size: number
    +

    Returns T

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/spliceUrlParam.html b/functions/spliceUrlParam.html new file mode 100644 index 00000000..99f45c12 --- /dev/null +++ b/functions/spliceUrlParam.html @@ -0,0 +1,99 @@ +spliceUrlParam | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function spliceUrlParam

+
+
    + +
  • +

    splice url params

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T extends Record<string, unknown>

    +
    +

    Parameters

    +
      +
    • +
      params: T
      +

      json object

      +
      +
    • +
    • +
      covert: boolean = false
      +

      Convert a null value type (null/undefined/) to an empty string

      +
      +
    • +
    • +
      withQuestionsMark: boolean = true
      +

      Splicing a question mark, default: true

      +
      +
    +

    Returns string

      +
    • result
    • +
    + +
    +

    Example

    spliceUrlParam('\{"key1":"100","key2":"true","key3":"null","key4":"undefined","key4":"测试"\}')
    // ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95

    spliceUrlParam('\{"key1":"100","key2":"true","key3":"null","key4":"undefined"\}', true)
    // ?key1=100&key2=true&key3=&key4=

    spliceUrlParam('\{"key1":"100","key2":"true","key3":"null","key4":"undefined"\}', true, false)
    // key1=100&key2=true&key3=&key4= +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/stopBubble.html b/functions/stopBubble.html new file mode 100644 index 00000000..eaeeb145 --- /dev/null +++ b/functions/stopBubble.html @@ -0,0 +1,81 @@ +stopBubble | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function stopBubble

+
+
    + +
  • +

    Block bubbling

    +
    +
    +

    Parameters

    +
      +
    • +
      e: Event
      +

      dom's event object

      +
      +
    +

    Returns boolean

      +
    • false
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/stopDefault.html b/functions/stopDefault.html new file mode 100644 index 00000000..c38604bb --- /dev/null +++ b/functions/stopDefault.html @@ -0,0 +1,81 @@ +stopDefault | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function stopDefault

+
+
    + +
  • +

    Block default events

    +
    +
    +

    Parameters

    +
      +
    • +
      e: Event
      +

      dom's event object

      +
      +
    +

    Returns boolean

      +
    • false
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/svgToBlob.html b/functions/svgToBlob.html new file mode 100644 index 00000000..6beac5ee --- /dev/null +++ b/functions/svgToBlob.html @@ -0,0 +1,81 @@ +svgToBlob | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function svgToBlob

+
+
    + +
  • +

    svg to blob

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      svg string

      +
      +
    +

    Returns Blob

      +
    • blob
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/toThousands.html b/functions/toThousands.html new file mode 100644 index 00000000..44db4b7a --- /dev/null +++ b/functions/toThousands.html @@ -0,0 +1,84 @@ +toThousands | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function toThousands

+
+
    + +
  • +

    Digital thousandths division

    +
    +
    +

    Parameters

    +
      +
    • +
      num: string | number
      +

      input number

      +
      +
    +

    Returns string

      +
    • the split string
    • +
    + +
    +

    Example

    toThousands(10000000222)
    // 10,000,000,222

    toThousands(100.2232323)
    // 100.2232323

    toThousands(null)
    // '' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/trim.html b/functions/trim.html new file mode 100644 index 00000000..1b4f0449 --- /dev/null +++ b/functions/trim.html @@ -0,0 +1,83 @@ +trim | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function trim

+
+
    + +
  • +

    Remove leading and trailing spaces from strings

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      pass in the string

      +
      +
    +

    Returns string

      +
    • the new string
    • +
    + +
    +

    Deprecated

    will be removed in the next major release.

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/unescape.html b/functions/unescape.html new file mode 100644 index 00000000..4bf3ceba --- /dev/null +++ b/functions/unescape.html @@ -0,0 +1,84 @@ +unescape | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function unescape

+
+
    + +
  • +

    Restore HTML Special Characters

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      string

      +
      +
    +

    Returns string

      +
    • newString
    • +
    + +
    +

    Example

    unescape('&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;')
    // '<div>test<br />string</div>' +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/union.html b/functions/union.html new file mode 100644 index 00000000..4535cb06 --- /dev/null +++ b/functions/union.html @@ -0,0 +1,89 @@ +union | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function union

+
+
    + +
  • +

    Find the concatenation of multiple arrays

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      Rest ...args: T[][]
      +

      arguments

      +
      +
    +

    Returns T[]

      +
    • new array
    • +
    + +
    +

    Example

    union([1, 2], [2, '33'])
    // [1, 2, '33']

    union([1, 2], [2, '33'], [1, 11, 2, '2'])
    // [ 1, 2, '33', 11, '2' ] +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/unique.html b/functions/unique.html new file mode 100644 index 00000000..1de724ee --- /dev/null +++ b/functions/unique.html @@ -0,0 +1,89 @@ +unique | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function unique

+
+
    + +
  • +

    Array de-duplication

    +
    +
    +

    Type Parameters

    +
      +
    • +

      T = unknown

    +
    +

    Parameters

    +
      +
    • +
      arr: T[]
      +

      array data

      +
      +
    +

    Returns T[]

      +
    • new array
    • +
    + +
    +

    Example

    unique([1, 2, 2, '33']) // [1, 2, '33']
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/upperFirst.html b/functions/upperFirst.html new file mode 100644 index 00000000..e730a182 --- /dev/null +++ b/functions/upperFirst.html @@ -0,0 +1,84 @@ +upperFirst | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function upperFirst

+
+
    + +
  • +

    First letter capitalized

    +
    +
    +

    Parameters

    +
      +
    • +
      string: string
      +

      the string to be converted

      +
      +
    +

    Returns string

      +
    • the converted string
    • +
    + +
    +

    Example

    upperFirst('saqqdy') // Saqqdy
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/urlToBlob.html b/functions/urlToBlob.html new file mode 100644 index 00000000..5cf474bb --- /dev/null +++ b/functions/urlToBlob.html @@ -0,0 +1,81 @@ +urlToBlob | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function urlToBlob

+
+
    + +
  • +

    url to blob

    +
    +
    +

    Parameters

    +
      +
    • +
      input: string
      +

      url

      +
      +
    +

    Returns Promise<Blob | null>

      +
    • blob
    • +
    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/uuid.html b/functions/uuid.html new file mode 100644 index 00000000..848ed212 --- /dev/null +++ b/functions/uuid.html @@ -0,0 +1,76 @@ +uuid | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function uuid

+
+
    + +
  • +

    Browser-side generation of uuid, using v4 method

    +
    +

    Returns string

      +
    • uuid
    • +
    + +
    +

    Example

    uuid() // '4222fcfe-5721-4632-bede-6043885be57d'
    +
    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/waiting.html b/functions/waiting.html new file mode 100644 index 00000000..7e841dc0 --- /dev/null +++ b/functions/waiting.html @@ -0,0 +1,83 @@ +waiting | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function waiting

+
+
    + +
  • +

    waiting for a while

    +
    +
    +

    Parameters

    +
      +
    • +
      milliseconds: number
      +

      waiting time (milliseconds)

      +
      +
    • +
    • +
      throwOnTimeout: boolean = false
      +

      throw on timeout

      +
      +
    +

    Returns Promise<void>

    +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/functions/windowSize.html b/functions/windowSize.html new file mode 100644 index 00000000..23ab7177 --- /dev/null +++ b/functions/windowSize.html @@ -0,0 +1,76 @@ +windowSize | index.md - v5.13.0
+
+ +
+
+
+
+ +

Function windowSize

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 00000000..a58a5b0b --- /dev/null +++ b/index.html @@ -0,0 +1,5285 @@ +index.md - v5.13.0
+
+ +
+
+
+
+

index.md - v5.13.0

+
+ +

js-cool

Collection of common JavaScript / TypeScript utilities

+

NPM version +Codacy Badge +tree shaking +typescript +Test coverage +npm download +gzip +License

+

Sonar

+
+ +
+ +

DocumentationChange Log

Read this in other languages: English | 简体中文

+
+ + +

Installation

# use pnpm
pnpm install js-cool

## use npm
npm install --save js-cool +
+

Usage

ES6 module

import { osVersion } from 'js-cool'

osVersion() +
+

Node.js require

const { osVersion } = require('js-cool')

osVersion() +
+

Using unpkg CDN

<script src="https://unpkg.com/js-cool@4.4.0/dist/index.global.prod.js"></script>
<script>
jsCool.browserVersion()
</script> +
+

API Reference

Global Parameters

client

the client method returns a browser result object

+
    +
  • Since: 5.2.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
import { client } from 'js-cool'

client.get(['device', 'browser', 'engine', 'os']) // { device: 'xxx', browser: 'xxx', os: 'xxx', engine: 'xxx' }
client.get('device') // { device: 'xxx' } +
+
    +
  • Types:
  • +
+
declare class Client {
matchMap: Record<InfoKeys, boolean>
root: Window & typeof globalThis
navigator: Navigator
constructor(options: ClientOptions)

get(names?: InfoTypes | InfoTypes[]): Partial<{
device: InfoKeys | undefined
os: InfoKeys | undefined
browser: InfoKeys | undefined
engine: InfoKeys | undefined
language: any
network: any
orientation: string | undefined
}>

getInfoByType(infoKey: InfoKey): InfoKeys | undefined
getOrientationStatus(): 'vertical' | 'horizontal' | undefined
getNetwork(): any
getLanguage(): any
} +
+

pattern

pattern returns some common rules

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: none

    +
  • +
  • Example:

    +
  • +
+
pattern.number.test('333') // true
+
+
    +
  • Types:
  • +
+
declare const pattern: {
any: RegExp
number: RegExp
string: RegExp
postcode: RegExp
url: RegExp
username: RegExp
float: RegExp
email: RegExp
mobile: RegExp
chinese: RegExp
tel: RegExp
qq: RegExp
pass: RegExp
json: RegExp
arrjson: RegExp
array: RegExp
isjson: RegExp
textarea: RegExp
} +
+

Extras for String & Array & Object & Function

clearAttr

Remove all attributes of HTML tags

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstring with html tagsstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
clearAttr('<div id="testID">test</div>')
// '<div>test</div>' +
+
    +
  • Types:
  • +
+
declare function clearAttr(string: string): string
+
+

clearHtml

Remove HTML tags

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstring with html tagsstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
clearHtml('<div>test<br />string</div>')
// 'teststring' +
+
    +
  • Types:
  • +
+
declare function clearHtml(string: string): string
+
+

escape

Escaping HTML Special Characters

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstring with html tagsstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
escape('<div>test<br />string</div>')
// '&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;' +
+
    +
  • Types:
  • +
+
declare function escape(string: string): string
+
+

unescape

Restore HTML Special Characters

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringstringstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
unescape('&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;')
// '<div>test<br />string</div>' +
+
    +
  • Types:
  • +
+
declare function unescape(string: string): string
+
+

getNumber

Get the number in the string

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringpass in a string with a numberstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
getNumber('Chrome123.33')
// '123.33'

getNumber('234test.88')
// '234.88' +
+
    +
  • Types:
  • +
+
declare function getNumber(string: string): string
+
+

camel2Dash

Converts humped strings to -spaced and all lowercase Dash pattern

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringthe string to be convertedstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
camel2Dash('jsCool') // js-cool
+
+
    +
  • Types:
  • +
+
declare function camel2Dash(string: string): string
+
+

dash2Camel

Converts -spaced and all lowercase Dash patterns to humped strings

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
stringthe string to be convertedstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
dash2Camel('js-cool') // jsCool
+
+
    +
  • Types:
  • +
+
declare function dash2Camel(string: string): string
+
+

randomColor

Generate random hexadecimal colors

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
randomColor() // #ff6600
+
+
    +
  • Types:
  • +
+
declare function randomColor(): string
+
+

randomNumber

Get a random number

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
minthe minimum value of the random numbernumber-false1
maxthe maximum value of the random numbernumber-false10
+
    +
  • Returns: number

    +
  • +
  • Example:

    +
  • +
+
randomNumber() // 8
randomNumber(0.1, 0.9) // 0.8 +
+
    +
  • Types:
  • +
+
declare function randomNumber(min?: number, max?: number): number
+
+

randomNumbers

Generate n random integers that sum to a fixed sum

+
    +
  • Since: 5.4.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
nNumber of generated integersnumber-false1
sumSum of generated integersnumber-false100
noZeroGenerate integers that are not zeroboolean-falsetrue
+
    +
  • Returns: Array<number>

    +
  • +
  • Example:

    +
  • +
+
randomNumbers()
// [8]

randomNumbers(4, 5)
// [1, 1, 2, 1]

randomNumbers(4, 5, false)
// [0, 1, 2, 2] +
+
    +
  • Types:
  • +
+
declare function randomNumbers(n?: number, sum?: number): number[]
+
+

randomString

Get a random string

+
+

v5.4.0 widthSpecialChar changed to options, still compatible with old usage, widthSpecialChar=true equivalent to { charTypes: ['uppercase', 'lowercase', 'number', 'special'] }

+
+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
lenthe length of the random string that needs to be obtainednumber-false32
optionsrandomString optionsRandomStringOptions boolean-false{ charTypes: ['uppercase', 'lowercase', 'number'] }
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default
randomString()
// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ

// 2. Generate a 16-bit random string
randomString(16)
// coTgZy0mqqMJ1sMM

// 3. Same effect as #2 above
randomString({
length: 16
})
// ngCI5aPqJm84t90d

// 4. Generate containing special characters (old way of passing values, not recommended)
randomString(true)
// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd

// 5. Same effect as #4 above (recommended)
randomString({
charTypes: ['uppercase', 'lowercase', 'number', 'special']
})
// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK

// 6. Same effect as #4 above, Limit string length to 16 bits
randomString(16, true)
// dXz[J_sYM^3d8fnA

// 7. Generate a 16-bit random number
randomString({
length: 16,
charTypes: 'number'
})
// 7450026301030286

// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
randomString({
length: 16,
noConfuse: true
})
// 8DEGna8ppC4mqyew

// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.
randomString({
length: 16,
strict: true
})
// PFYAPD5KFqOHIADL +
+
    +
  • Types:
  • +
+
declare function randomString(len?: number, options?: RandomStringOptions | boolean): string

declare function randomString(
len?: RandomStringOptions | boolean,
options?: RandomStringOptions | boolean
): string

declare type RandomStringCharType = 'uppercase' | 'lowercase' | 'number' | 'special'

declare interface RandomStringOptions {
length?: number
charTypes?: RandomStringCharType | ArrayOneMore<RandomStringCharType>
/**
* Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
*/
noConfuse?: boolean
/**
* The generated random string must contain each of the listed character types
*/
strict?: boolean
} +
+

shuffle

shuffling algorithm, Reordering arrays or strings

+
    +
  • Since: 5.4.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
valuearrays or stringsarray string-true-
sizenew array or string lengthnumber-false-
+
    +
  • Returns: array | string

    +
  • +
  • Example:

    +
  • +
+
const str = 'abcde'
const arr = [1, 2, 3]

shuffle(str)
// cdbse

shuffle(arr)
// [3, 1, 2]

shuffle(arr, 2)
// [3, 2] +
+
    +
  • Types:
  • +
+
declare function shuffle(value: string, size?: number): string

declare function shuffle<T extends unknown[] = unknown[]>(value: T, size?: number): T +
+

fingerprint

Generating Browser Fingerprints

+
    +
  • Since: 5.2.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
domainkey stringstring-falselocation.host
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
fingerprint('www.saqqdy.com') // wc7sWJJA8
+
+
    +
  • Types:
  • +
+
declare function fingerprint(domain?: string): string | null
+
+

getCHSLength

Get the length of the string, Chinese counts as 2 characters

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
strinput stringstring-true-
+
    +
  • Returns: number

    +
  • +
  • Example:

    +
  • +
+
getCHSLength('测试') // 2
+
+
    +
  • Types:
  • +
+
declare function getCHSLength(str: string): number
+
+

cutCHSString

Intercept string, Chinese counts as 2 bytes

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
strthe string to be interceptedstring-true-
lenlengthnumber-false-
hasDotoutput with dotboolean-falsefalse
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
cutCHSString('测试', 1) // 测
cutCHSString('测试', 1, true) // 测... +
+
    +
  • Types:
  • +
+
declare function cutCHSString(str: string, len?: number, hasDot?: boolean): string
+
+

Determine

isDigitals

Determine if a string is a number

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
strthe string to be testedstring-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isDigitals('2.11') // true
isDigitals('2.3x') // false +
+
    +
  • Types:
  • +
+
declare function isDigitals(str: string): boolean
+
+

isExitsFunction

Determine if a function is defined

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namefunction namestring-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isExitsFunction('test') // false
isExitsFunction('console.log') // true +
+
    +
  • Types:
  • +
+
declare function isExitsFunction(name: string): boolean
+
+

isExitsVariable

Determine if a variable is defined

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namevariable namestring-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isExitsVariable('test') // false
isExitsVariable('window') // true +
+
    +
  • Types:
  • +
+
declare function isExitsVariable(name: string): boolean
+
+

isEqual

Determine if 2 objects are equal

+
    +
  • Since: 5.12.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
asourceany-true-
bcompareany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isEqual({ a: 22, b: {} }, { b: {}, a: 22 })
// true

isEqual([1, 2], [2, 1])
// false

isEqual(NaN, NaN)
// true +
+
    +
  • Types:
  • +
+
declare function isEqual<T, P>(a: T, b: P): boolean
+
+

isWindow

Determine if window object

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isWindow({}) // false
isWindow(window) // true +
+
    +
  • Types:
  • +
+
declare function isWindow<T = any>(target: T): target is Window
+
+

isPlainObject

Determine if target is an plain object

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isPlainObject({}) // true
isPlainObject(window) // false +
+
    +
  • Types:
  • +
+
type Primitive = bigint | boolean | null | number | string | symbol | undefined

type JSONValue = Primitive | PlainObject | JSONArray

// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
interface PlainObject {
[key: string]: JSONValue
}

interface JSONArray extends Array<JSONValue> {}

declare function isPlainObject(target: unknown): target is PlainObject +
+

isDarkMode

Determine if dark color mode

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isDarkMode() // false
+
+
    +
  • Types:
  • +
+
declare function isDarkMode(): boolean
+
+

isObject

Determine if target is an object

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isObject({}) // true
+
+
    +
  • Types:
  • +
+
declare function isObject<T = any>(target: T): target is Object
+
+

isArray

Determine if it is an array

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isArray([]) // true
+
+
    +
  • Types:
  • +
+
declare function isIterable(target: any): target is any[]
+
+

isIterable

Determine if it is iterable

+
    +
  • Since: 5.7.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
isIterable([]) // true
+
+
    +
  • Types:
  • +
+
declare function isIterable<T = any>(target: T | Iterable<T>): target is Iterable<T>
+
+

inBrowser

Determine if it is running on the browser side

+
    +
  • Since: 4.5.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
function test() {
if (!inBrowser) return null
// ...
} +
+
    +
  • Types:
  • +
+
declare const inBrowser: boolean
+
+

inNodeJs

Determine if it is running on node.js

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
if (inNodeJs) {
//
} +
+
    +
  • Types:
  • +
+
declare const inNodeJs: boolean
+
+

windowSize

Get the window size

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: { width, height }

    +
  • +
  • Example:

    +
  • +
+
windowSize()
// { width: 1280, height: 800 } +
+
    +
  • Types:
  • +
+
declare interface WindowSizeObj {
width: number
height: number
}

declare function windowSize(): WindowSizeObj +
+

getAppVersion

Get the APP version number

+
+

deprecated please use 'appVersion' instead

+
+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
appNameapp namestring-true-
withAppwhether to bring the nameboolean-false-
userAgentua or any ua like string, may not be passedstring-falsenavigator.userAgent
+
    +
  • Returns: string | boolean | null

    +
  • +
  • Example:

    +
  • +
+
// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'

getAppVersion('Chrome') // 114.0.0.0
getAppVersion('Safari', true) // Safari/537.36 +
+
    +
  • Types:
  • +
+
declare function getAppVersion(
appName: string,
withApp?: boolean,
userAgent?: string
): string | boolean | null +
+

appVersion

Get the app version number

+
    +
  • Since: 5.1.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
appNameapp namestring-true-
uaua or any ua like string, may not be passedstring-falsenavigator.userAgent
ignoreCasewhether to ignore casebooleantrue/falsefalsetrue
+
    +
  • Returns: string | null

    +
  • +
  • Example:

    +
  • +
+
// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'

appVersion('Chrome') // 114.0.0.0
appVersion('Safari') // 537.36
appVersion('appname', false) // null
appVersion('appname') // 1.0.0-beta.8 +
+
    +
  • Types:
  • +
+
declare function appVersion(appName: string): string | null
declare function appVersion(appName: string, ua: string): string | null
declare function appVersion(appName: string, ua: boolean): string | null
declare function appVersion(appName: string, ua: string, ignoreCase: boolean): string | null +
+

getOsVersion

Get the phone system version

+
+

deprecated: please use 'osVersion' instead

+
+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
osNamesystem type string Android, iPod, iWatch or iPhonestring-true-
withOSwhether to bring the namestring-false-
userAgentua or any ua like string, may not be passedstring-falsenavigator.userAgent
+
    +
  • Returns: string | boolean | null

    +
  • +
  • Example:

    +
  • +
+
getOsVersion('iPhone')
// '13.2.3'

getOsVersion('iPhone', true)
// 'iPhone/13.2.3' +
+
    +
  • Types:
  • +
+
declare function getOsVersion(
osName: string,
withOS?: boolean,
userAgent?: string
): string | boolean | null +
+

osVersion

get the system version

+
    +
  • Since: 5.1.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
uaua or any ua like string, may not be passedstring-falsenavigator.userAgent
+
    +
  • Returns: OsVersion | null

    +
  • +
  • Example:

    +
  • +
+
// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
osVersion() // \{ name: 'iOS', version: '13.3' \}
// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
osVersion() // \{ name: 'iOS', version: '13.2.3' \}
// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
osVersion() // \{ name: 'MacOS', version: '10.15.7' \}
// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
osVersion() // \{ name: 'Windows', version: '10.0' \}
// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
osVersion() // \{ name: 'Windows', version: 'XP' \}
// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'
osVersion() // \{ name: 'WindowsPhone', version: '10.0' \} +
+
    +
  • Types:
  • +
+
declare interface OsVersion {
name: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS'
version: string
}

declare function osVersion(ua?: string): OsVersion | null +
+

browserVersion

Get the browser name and version

+
    +
  • Since: 5.2.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
uaua or any ua like string, may not be passedstring-falsenavigator.userAgent
+
    +
  • Returns: BrowserVersion | null

    +
  • +
  • Example:

    +
  • +
+
// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
browserVersion() // \{ name: 'Chrome', version: '114.0.0.0' \} +
+
    +
  • Types:
  • +
+
declare interface BrowserVersion {
name: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS'
version: string
}

declare function browserVersion(ua?: string): BrowserVersion | null +
+

compareVersion

+

v5.8.0 support compare tag version

+
+

Version number size comparison, tag version: rc > beta > alpha > other

+
    +
  • Since: 4.7.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputinput versionstring-true-
comparecompare versionstring-true-
+
    +
  • Returns: 0 | 1 | -1

    +
  • +
  • Example:

    +
  • +
+
compareVersion('1.11.0', '1.9.9')
// => 1: 1=Version 1.11.0 is newer than 1.9.9

compareVersion('1.11.0', '1.11.0')
// => 0: 0=Versions 1.11.0 and 1.11.0 are the same

compareVersion('1.11.0', '1.99.0')
// => -1: -1=Version 1.11.0 is older than 1.99.0

compareVersion('1.0.0.0.0.10', '1.0')
// => -1

// compare tag version: rc > beta > alpha > other
compareVersion('1.11.0', '1.11.0-beta.1')
// => -1

compareVersion('1.11.0-beta.1', '1.11.0')
// => -1

compareVersion('1.11.0-beta.10', '1.11.0-beta.10')
// => 0

compareVersion('1.11.0-alpha.10', '1.11.0-beta.1')
// => -1

compareVersion('1.11.0-alpha.10', '1.11.0-rc.1')
// => -1

compareVersion('1.11.0-tag.10', '1.11.0-alpha.1')
// => -1

compareVersion('1.11.0-tag.10', '1.11.0-tag.1')
// => 1

compareVersion('1.11.0-release.10', '1.11.0-tag.1')
// => 1 +
+
    +
  • Types:
  • +
+
declare function compareVersion(input: string, compare: string): 0 | 1 | -1
+
+

parseUrlParam

parse url params. (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlurl string (like: ?key1=value1&key2=value2)string-true-
covertConverts a specific string to a corresponding valuebooleantrue/falsefalsefalse
+
    +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
parseUrlParam(
'?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test'
)
// \{"key1":"100","key2":"true","key3":"null","key4":"undefined","key5":"NaN","key6":"10.888","key7":"Infinity","key8":"test"\}

parseUrlParam(
'?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test',
true
)
// \{"key1":100,"key2":true,"key3":null,"key5":NaN,"key6":10.888,"key7":Infinity,"key8":"test"\} +
+
    +
  • Types:
  • +
+
declare function parseUrlParam(url: string, covert?: boolean): Record<string, unknown>
+
+

spliceUrlParam

Splice URL parameters (single layer only)

+
    +
  • Since: 5.3.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
paramsjson objectobject-true-
covertConvert a null value type (null/undefined/) to an empty stringbooleantrue/falsefalsefalse
withQuestionsMarkSplicing a question markbooleantrue/falsefalsetrue
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
spliceUrlParam({ key1: '100', key2: 'true', key3: 'null', key4: 'undefined', key4: '测试' }) // ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95
spliceUrlParam({ key1: '100', key2: 'true', key3: 'null', key4: 'undefined' }, true) // ?key1=100&key2=true&key3=&key4=
spliceUrlParam({ key1: '100', key2: 'true', key3: 'null', key4: 'undefined' }, true, false) // key1=100&key2=true&key3=&key4= +
+
    +
  • Types:
  • +
+
declare function spliceUrlParam(
params: Record<string, unknown>,
covert?: boolean,
withQuestionsMark?: boolean
): string | null +
+

getDirParam

Get the URL parameter in the form of a directory

+
+

It will be refactored and renamed getDirParams in the next major release.

+
+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlhttp urlobject-true-
+
    +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
//
+
+
    +
  • Types:
  • +
+
declare interface DirParamType {
path?: string[]
host?: string
}

declare function getDirParam(url: string): DirParamType +
+

getQueryParam

Get a single query parameter (behind "#")

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
keykey namestring-true-
urlpass in the url stringstring-falselocation.href
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
getQueryParam('key1')
// key1 => xxx

getQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')
// key1 => 200 +
+
    +
  • Types:
  • +
+
declare function getQueryParam(key: string): string | undefined

declare function getQueryParam(key: string, url: string): string | undefined +
+

getQueryParams

Get all query parameters (behind "#"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlpass in the url stringstring-falselocation.href
covertConverts a specific string to a corresponding valuebooleantrue/falsefalsefalse
+
    +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
getQueryParams('https://test.com?key1=100#/home?key1=200')
// \{"key1":"200"\}

getQueryParams('https://test.com?key1=100#/home?key1=200', true)
// \{"key1":200\}

getQueryParams(true)
// \{"key1":200\} +
+
    +
  • Types:
  • +
+
declare function getQueryParams(url?: string, covert?: boolean): Record<string, unknown> | null
+
+

getUrlParam

Get a single URL parameter (from the "location.search", before "#")

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
keykey namestring-true-
urlpass in the url stringstring-falselocation.href
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
getUrlParam('key1')
// key1 => xxx

getUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')
// key1 => 100 +
+
    +
  • Types:
  • +
+
declare function getUrlParam(key: string): string | undefined

declare function getUrlParam(key: string, url: string): string | undefined +
+

getUrlParams

Get all URL parameters (from the "location.search", before "#"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlpass in the url stringstring-falselocation.href
covertConverts a specific string to a corresponding valuebooleantrue/falsefalsefalse
+
    +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
getUrlParams('https://test.com?key1=100#/home?key1=200')
// \{"key1":"100"\}

getUrlParams('https://test.com?key1=100#/home?key1=200', true)
// \{"key1":100\}

getUrlParams(true)
// \{"key1":100\} +
+
    +
  • Types:
  • +
+
declare function getUrlParams(url?: string, covert?: boolean): Record<string, unknown> | null
+
+

localStorage & sessionStorage & Cookie

getCache

Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
import { getCache, setCache } from 'js-cool'

const data1 = 100
const data2 = { a: 10 }
const data3 = null

setCache('data1', data1)
setCache('data2', data2)
setCache('data3', data3)

getCache('data1') // 100
getCache('data2') // {a:10}
getCache('data3') // null

getCache('data4') // null +
+
    +
  • Types:
  • +
+
declare function getCache(name: string): any
+
+

setCache

Set the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
valuecache data, can be passed directly into Objectany-true-
secondscache time (seconds)number-false-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
import { getCache, setCache } from 'js-cool'

const data1 = 100
const data2 = { a: 10 }
const data3 = null

setCache('data1', data1)
setCache('data2', data2, 10)

getCache('data1') // 100
getCache('data2') // {a:10}

setTimeout(() => {
getCache('data2') // null
}, 15000) +
+
    +
  • Types:
  • +
+
declare function setCache<T = unknown>(name: string, value: T, seconds?: number | string): void
+
+

delCache

Delete localStorage

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecache key namestring-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
delCache('data')
+
+
    +
  • Types:
  • +
+
declare function delCache(name: string): void
+
+

getSession

Get the session, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
const data1 = 100
const data2 = { a: 10 }
const data3 = null

setSession('data1', data1)
setSession('data2', data2)
setSession('data3', data3)

getSession('data1') // 100
getSession('data2') // {a:10}
getSession('data3') // null

getSession('data4') // null +
+
    +
  • Types:
  • +
+
declare function getSession(name: string): any
+
+

setSession

Set the session, if the deposited is Object, the retrieved is also Object, no need to convert again

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
valuesession data, can be passed directly into Objectany-true-
secondssession time (seconds)number-false-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
import { getSession, setSession } from 'js-cool'

const data1 = 100
const data2 = { a: 10 }
const data3 = null

setSession('data1', data1)
setSession('data2', data2, 10)

getSession('data1') // 100
getSession('data2') // {a:10}

setTimeout(() => {
getSession('data2') // null
}, 15000) +
+
    +
  • Types:
  • +
+
declare function setSession<T = unknown>(name: string, value: T, seconds?: number | string): void
+
+

delSession

Delete sessionStorage

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namesession key namestring-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
delSession('data')
+
+
    +
  • Types:
  • +
+
declare function delSession(name: string): void
+
+

getCookie

Get cookie by name

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
getCookie('data1') // 100
+
+
    +
  • Types:
  • +
+
declare function getCookie(name: string): string
+
+

getCookies

Get all cookies

+
    +
  • Since: 5.6.0

    +
  • +
  • Arguments: 'none'

    +
  • +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
getCookies()
// { token: 'xxx', name: 'saqqdy' } +
+
    +
  • Types:
  • +
+
declare function getCookies(): Record<string, string>
+
+

setCookie

Set cookie

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
valuecookie data, can be passed directly into Objectany-true-
secondscookie time (seconds)number-false-
pathcookie pathstring-false/
samesiteSameSite typestringStrict/Lax /NonefalseNone
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
import { getCookie, setCookie } from 'js-cool'

const data1 = 100
const data2 = 200

setCookie('data1', data1)
setCookie('data2', data2, 10)

getCookie('data1') // 100
getCookie('data2') // 200

setTimeout(() => {
getCookie('data2') // null
}, 15000) +
+
    +
  • Types:
  • +
+
declare function setCookie<T extends string | number | boolean>(
name: string,
value: T,
seconds: string | number,
path?: string,
samesite?: boolean
): void +
+

delCookie

Delete cookie

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
namecookie key namestring-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
delCookie('data')
+
+
    +
  • Types:
  • +
+
declare function delCookie(name: string): void
+
+

Base64 & UTF8

encodeBase64

convert strings, numbers to base64

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be encodedstring/number-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
encodeBase64('data')
+
+
    +
  • Types:
  • +
+
declare function encodeBase64(name: string): string
+
+

decodeBase64

base64 decoding

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be decodedstring/number-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
decodeBase64('data')
+
+
    +
  • Types:
  • +
+
declare function decodeBase64(name: string): string
+
+

encodeUtf8

convert strings, numbers to utf8

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be encodedstring/number-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
encodeUtf8('data')
+
+
    +
  • Types:
  • +
+
declare function encodeUtf8(name: string): string
+
+

decodeUtf8

utf8 decoding

+
    +
  • Since: 1.0.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputthe string to be decodedstring/number-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
decodeUtf8('data')
+
+
    +
  • Types:
  • +
+
declare function decodeUtf8(name: string): string
+
+

Events

stopBubble

stop bubbling

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
edom's event objectEvent-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
stopBubble(event)
+
+
    +
  • Types:
  • +
+
declare function stopBubble(e: Event): boolean
+
+

stopDefault

stop default events

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
edom's event objectEvent-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
stopDefault(event)
+
+
    +
  • Types:
  • +
+
declare function stopDefault(e: Event): boolean
+
+

addEvent

event delegate, support multiple delegates

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
elementjs dom objectHTMLElement-true-
typeThe type of the event. No need to add onstring-true-
handlerCallback methodfunction-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
addEvent(document, 'click', functionName)
+
+
    +
  • Types:
  • +
+
declare function addEvent(element: AnyObject, type: string, handler: AnyFunction): void
+
+

removeEvent

removeEvent removes the event delegate created by addEvent

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
elementjs dom objectHTMLElement-true-
typeThe type of the event. No need to add onstring-true-
handlerCallback methodfunction-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
removeEvent(document, 'click', functionName)
+
+
    +
  • Types:
  • +
+
declare function removeEvent(element: AnyObject, type: string, handler: AnyFunction): void
+
+

getScrollPosition

Get slide to top and bottom return 'top' 'bottom', recommend using limit flow

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: 'top' | 'bottom' | undefined

    +
  • +
  • Example:

    +
  • +
+
getScrollPosition() // ‘bottom’
+
+
    +
  • Types:
  • +
+
declare function getScrollPosition(): string | void
+
+

Utilities

nextIndex

return the next zIndex value

+
+

change mix defaults to 0

+
+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
minminimum valuenumber-false0
maxmaximum valuenumber-false-
+
    +
  • Returns: number

    +
  • +
  • Example:

    +
  • +
+
nextIndex() // 1

nextIndex(1000) // 1001

nextIndex(10, 100) // 100 +
+
    +
  • Types:
  • +
+
declare function nextIndex(min?: number, max?: number): number
+
+

nextVersion

return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)

+
    +
  • Since: 5.10.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
versionversion(like: 1.0.0)string-true-
typeversion typemajor | minor | patch | premajor | preminor | prepatch | prerelease-falsepatch
preidprerelease idstring-false''
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
nextVersion('1.2.33') // 1.2.34

nextVersion('1.2.33', 'major') // 2.0.0

nextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1 +
+
    +
  • Types:
  • +
+
declare function nextVersion(
version: string,
type?: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease',
preid?: string
): string +
+

promiseFactory

Convert an object to a promise like api

+
    +
  • Since: 5.10.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
originaloriginal objectobject-true-
resolverresolver functionFunction-true-
+
    +
  • Returns: T & PromiseLike<T>

    +
  • +
  • Example:

    +
  • +
+
import { promiseFactory, waiting } from 'js-cool'

function promise() {
const stats = {
value: 100
}

const resolver = () =>
new Promise(resolve =>
waiting(2000).then(() => {
stats.value = 200
resolve(stats)
})
)

return promiseFactory(stats, resolver)
}

const res = promise()
// res => 100
const res = await promise()
// res => 200 +
+
    +
  • Types:
  • +
+
declare function promiseFactory<T extends object>(
original: T,
resolver: () => Promise<any>
): T & PromiseLike<T> +
+

fixNumber

truncate a few decimal places, not 0 for shortage

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
numberthe number of digits to be processednumber/string-true-
nthe number of decimal places to keepnumber-false2
+
    +
  • Returns: string | number

    +
  • +
  • Example:

    +
  • +
+
fixNumber('100.888')
// 100.88

fixNumber('100.8', 2)
// 100.8

fixNumber('100.8888', 3)
// 100.888 +
+
    +
  • Types:
  • +
+
declare function fixNumber(number: string | number, n?: number): number
+
+

mapTemplate

Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}

+
    +
  • Since: 5.9.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
tmpTemplate stringstring-true-
dataTemplate data of map functionFunction| Object-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
const tmp = "My name is ${name}, I'm ${age} years old."
mapTemplate(tmp, {
name: 'saqqdy',
age: 18
})
// My name is saqqdy, I'm 18 years old.

mapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 })[key])
// My name is saqqdy, I'm 28 years old.

const tmp1 = "My name is {{name}}, I'm {{age}} years old."
mapTemplate(tmp1, {
name: 'saqqdy',
age: 18
})
// My name is saqqdy, I'm 18 years old. +
+
    +
  • Types:
  • +
+
declare function mapTemplate(
tmp: string,
data: ((value: string) => unknown) | Record<string, unknown>
): string +
+

extend

deep copy

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetboolean or array or objectboolean/ArrayOneMore<ExtendData>-true-
...argsarray or objectArrayOneMore<ExtendData>-true-
+
    +
  • Returns: array | object

    +
  • +
  • Example:

    +
  • +
+
extend(true, {}, {})
+
+
    +
  • Types:
  • +
+
declare function extend(
target: ExtendObjectData,
...args: ArrayOneMore<ExtendObjectData>
): ExtendObjectData

declare function extend(target: boolean, ...args: ArrayOneMore<ExtendObjectData>): ExtendObjectData

declare function extend(
target: ExtendArrayData,
...args: ArrayOneMore<ExtendArrayData>
): ExtendArrayData

declare function extend(target: boolean, ...args: ArrayOneMore<ExtendArrayData>): ExtendArrayData

declare type ExtendArrayData = any[]

declare type ExtendData = ExtendArrayData | ExtendObjectData

declare type ExtendObjectData = Record<string, any> +
+

delay

anti-dither throttling

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
const delay = new Delay()

delay.register('key', () => {
//
}) +
+
    +
  • Types:
  • +
+
declare function delay(): {
map: any
register(id: string, fn: AnyFunction, time: number, boo: boolean): void
destroy(id: string): void
} +
+

getType

Get the target type

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targetany targetany-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
getType({}) // object
getType([]) // array
getType(new Promise()) // promise
getType(new Date()) // date
getType(async () => {}) // function
getType(navigator) // navigator
getType(global) // global
getType(window) // window
getType(Symbol('')) // symbol +
+
    +
  • Types:
  • +
+
declare function getType<T = any>(
target: T
):
| 'string'
| 'number'
| 'bigint'
| 'boolean'
| 'symbol'
| 'undefined'
| 'object'
| 'function'
| 'window'
| 'error'
| 'promise'
| 'math'
| 'document'
| 'navigator'
| 'global'
| 'array'
| 'date'
| 'regexp'
| 'null' +
+

getFileType

Determine file type based on link suffix

+
    +
  • Since: 5.11.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlfile urlstring-true-
+
    +
  • Returns: object

    +
  • +
  • Example:

    +
  • +
+
getFileType('/name.png')
// { "suffix": "png", "type": "image" }

getFileType('/name.PDF')
// { "suffix": "pdf", "type": "pdf" }

getFileType('/name.xyz')
// { "suffix": "xyz", "type": "other" } +
+
    +
  • Types:
  • +
+
declare function getFileType(url: string): {
suffix: string
type: 'audio' | 'video' | 'image' | 'other' | 'word' | 'txt' | 'excel' | 'pdf' | 'ppt' | 'zip'
} +
+

cleanData

Data cleaning methods

+
    +
  • Since: 1.0.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
datathe object to be cleanedobject-true-
mapthe data queue to be cleaned, can be passed as array or objectarray/object-true-
nullFixthe value returned if there is no corresponding property, the default does not return the propertyany-false-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
//
+
+
    +
  • Types:
  • +
+
declare function cleanData(data: any, map: any[] | AnyObject, nullFix?: any): any
+
+

download

Several ways of file downloading:

+
    +
  1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);
  2. +
  3. using a tag download attribute (or js create a tag);
  4. +
  5. browser-recognizable pdf, txt files, back-end compatible with handling attachment;
  6. +
  7. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request
  8. +
+
    +
  • Since: 1.0.5

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlurl linkstring-true-
filenamefile namestring-true-
typedownload typestringhref/open/download/requestfalsedownload
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
download('https://unpkg.com/browse/js-cool@5.2.0/dist/index.global.prod.js')
+
+
    +
  • Types:
  • +
+
declare function download(url: string, filename: string, type?: string): void
+
+

searchObject

tree object depth lookup

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
treetree objectarray/object-true-
expressionrequired Query methodany-true-
keySetoptional Default subclass name, query nameSearchKeySet-true-
numberoptional Number of lookups, if not passed, query allnumber-false-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
//
+
+
    +
  • Types:
  • +
+
declare function searchObject(
tree: object | any[],
expression: any,
keySet: SearchKeySet,
number?: number
): any[] +
+

openUrl

Open link in new tab (file jump download if browser can't parse)

+
    +
  • Since: 1.0.6

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlhttp urlstring-true-
+
    +
  • Returns: boolean | undefined

    +
  • +
  • Example:

    +
  • +
+
openUrl('https://www.saqqdy.com/js-cool')
+
+
    +
  • Types:
  • +
+
declare function openUrl(url: string): void
+
+

copy

copy to clipboard

+
    +
  • Since: 5.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
valueany valueany-true-
+
    +
  • Returns: boolean | undefined

    +
  • +
  • Example:

    +
  • +
+
copy('10000')
+
+
    +
  • Types:
  • +
+
declare function copy(value: string): boolean | undefined
+
+

toThousands

Digital thousandths division

+
    +
  • Since: 3.0.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
numthe numberstring/number-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
toThousands(10000) // '10,000'
+
+
    +
  • Types:
  • +
+
declare function toThousands(num: string | number): string
+
+

all

return true if the provided predicate function returns true for all elements in a set, otherwise return false

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrthe target arrayarray-true-
fnthe judgment methodfunction-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
all([4, 2, 3], x => x > 1)
// true +
+
    +
  • Types:
  • +
+
declare const all: <T = unknown>(arr: T[], fn: AnyFunction) => boolean
+
+

any

Returns true if the provided predicate function returns true for at least one element of a set, false otherwise

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrthe target arrayarray-true-
fnthe judgment methodfunction-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
any([0, 1, 2, 0], x => x >= 2)
// true +
+
    +
  • Types:
  • +
+
declare const any: <T = unknown>(arr: T[], fn: AnyFunction) => boolean
+
+

uuid

generate uuid on browser side, use v4 method

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments: none

    +
  • +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
uuid() // '4222fcfe-5721-4632-bede-6043885be57d'
+
+
    +
  • Types:
  • +
+
declare const uuid: () => string
+
+

CSVToArray

Converts a comma-separated string of values (CSV) to a 2D array.

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
datacsv datastring-true-
delimiterdelimiterstring-false','
omitFirstRowthe first row is the table header databoolean-falsefalse
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
CSVToArray('a,b\\nc,d') // `[['a','b'],['c','d']]`
CSVToArray('a;b\\\nc;d', ';') // `[['a','b'],['c','d']]`
CSVToArray('col1,col2\\\na,b\\\nc,d', ',', true) // `[['a','b'],['c','d']]` +
+
    +
  • Types:
  • +
+
declare const CSVToArray: (data: string, delimiter?: string, omitFirstRow?: boolean) => string[][]
+
+

arrayToCSV

Converts a two-dimensional array to a comma-separated string of values (CSV).

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrjson dataarray-true-
delimiterdelimiterstring-false','
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
arrayToCSV([
['a', 'b'],
['c', 'd']
])
// '"a", "b" \n "c", "d"'

arrayToCSV(
[
['a', 'b'],
['c', 'd']
],
';'
)
// '"a"; "b"\n "c"; "d"'

arrayToCSV([
['a', '"b" great'],
['c', 3.1415]
])
// '"a", """b"" great"\n "c",3.1415' +
+
    +
  • Types:
  • +
+
declare function arrayToCSV<T extends unknown[][]>(data: T, delimiter?: string): string
+
+

CSVToJSON

Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
datacsv datastring-true-
delimiterdelimiterstring-false','
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
CSVToJSON('col1,col2\\na,b\\\nc,d')
// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`

CSVToJSON('col1;col2\\\na;b\\\nc;d', ';')
// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]` +
+
    +
  • Types:
  • +
+
declare function CSVToJSON(data: string, delimiter?: string): any[]
+
+

JSONToCSV

Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrjson dataarray-true-
columnsthe specified columnsarray-true-
delimiterdelimiterstring-false','
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b']) // 'a,b\n "1", "2"\n "3", "4"\n "6",""\n"", "7"'
JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';') // 'a;b\n "1"; "2"\n "3"; "4"\n "6";""\n""; "7"' +
+
    +
  • Types:
  • +
+
declare const JSONToCSV: (arr: any[], columns: any[], delimiter?: string) => string
+
+

RGBToHex

Converts RGB component values to color codes.

+
    +
  • Since: 1.0.9

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
rthe 1st value of RGBnumber-true-
gRGB's 2nd valuenumber-true-
bRGB's 3nd valuenumber-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
RGBToHex(255, 165, 1) // 'ffa501'
+
+
    +
  • Types:
  • +
+
declare const RGBToHex: (r: number, g: number, b: number) => string
+
+

intersect

Find the intersection of multiple arrays

+
    +
  • Since: 2.2.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • Returns: array

    +
  • +
  • Example:

    +
  • +
+
intersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]
+
+
    +
  • Types:
  • +
+
declare function intersect<T = unknown>(...args: T[][]): T[]
+
+

union

Find the concatenation of multiple arrays

+
    +
  • Since: 2.2.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • Returns: array

    +
  • +
  • Example:

    +
  • +
+
union([1, 2], [2, '33']) // [1, 2, '33']
+
+
    +
  • Types:
  • +
+
declare function union<T = unknown>(...args: T[][]): T[]
+
+

minus

Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of

+
    +
  • Since: 2.2.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • Returns: array

    +
  • +
  • Example:

    +
  • +
+
minus([1, 2], [2, '33'], [2, 4]) // [1]
+
+
    +
  • Types:
  • +
+
declare function minus<T = unknown>(...args: T[][]): T[]
+
+

complement

Find the complement of multiple arrays

+
    +
  • Since: 2.2.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
...arrarray targetsarray-true-
+
    +
  • Returns: array

    +
  • +
  • Example:

    +
  • +
+
complement([1, 2], [2, '33'], [2]) // [1, '33']
+
+
    +
  • Types:
  • +
+
declare function complement<T = unknown>(...args: T[][]): T[]
+
+

contains

Whether the array contains the specified element

+
    +
  • Since: 2.2.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrarray targetarray-true-
itemany array memberany-true-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
contains([1, 2], 2) // true
contains([1, 2], 3) // false +
+
    +
  • Types:
  • +
+
declare function contains(arr: any[], item: any): boolean
+
+

unique

Array de-duplication

+
    +
  • Since: 2.2.1

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
arrarray targetarray-true-
+
    +
  • Returns: array

    +
  • +
  • Example:

    +
  • +
+
unique([1, 2, 2, '33']) // [1, 2, '33']
+
+
    +
  • Types:
  • +
+
declare function unique<T = unknown>(arr: T[]): T[]
+
+

fillIPv6

ipv6 address completion

+
    +
  • Since: 2.2.2

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
ipip addressstring-true-
+
    +
  • Returns: string

    +
  • +
  • Example:

    +
  • +
+
fillIPv6('2409:8005:800::2') // '2409:8005:0800:0000:0000:0000:0000:0002'
fillIPv6('2409:8005:800::1c') // '2409:8005:0800:0000:0000:0000:0000:001c' +
+
    +
  • Types:
  • +
+
declare function fillIPv6(ip: string): string
+
+

getProperty

Get array, object property values based on path string

+
    +
  • Since: 2.2.4

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targettarget array, objectarray/object-true-
propquery target, can pass functionstring/function-true-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
const target = {
a: 1,
b: [
{
c: 2
}
]
}
getProperty(target, 'a') // 1
getProperty(target, 'b[0].c') // 2
getProperty(target, () => 'a') // 1 +
+
    +
  • Types:
  • +
+
declare function getProperty(
target: any,
prop:
| string
| {
(): string
}
): any +
+

setProperty

Set array, object property values based on path string

+
    +
  • Since: 2.7.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
targettarget array, objectarray/object-true-
propset target, can pass function, 'a' | 'a[1].c'string/function-true-
valuevalueany-true-
+
    +
  • Returns: any

    +
  • +
  • Example:

    +
  • +
+
const target = {
a: 1,
b: [
{
c: 2
}
]
}
setProperty(target, 'a') // 1
setProperty(target, 'b[0].c') // 2
setProperty(target, () => 'a') // 1 +
+
    +
  • Types:
  • +
+
declare function setProperty(
target: any,
prop:
| string
| {
(): string
},
value: any
): any +
+

loadSource

load resources dynamically, support js, images, css links, css style strings

+
    +
  • Since: 2.8.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urllink to the resource, type must be passed when passing in styleStringstring-true-
optionsparameters: attrs, props, forceSourceOptions-false-
+
    +
  • Returns: boolean | imageUrl

    +
  • +
  • Example:

    +
  • +
+
loadSource('/source/url', options)
+
+
    +
  • Types:
  • +
+
import { ImageAttributes } from 'mount-image'
import { LinkAttributes } from 'mount-css'
import { ScriptAttributes } from 'mount-script'
import { StyleAttributes } from 'mount-style'

declare function loadSource(
url: string,
option: SourceFileType | SourceOptions
): Promise<boolean | string>

declare type SourceFileType = 'js' | 'img' | 'css' | 'style' | string

declare interface SourceOptions {
type: SourceFileType
attrs?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes
props?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes
force?: boolean
} +
+

mountCss

dynamically load css link resources

+
    +
  • Since: 2.8.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceCssOptions-false-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
mountCss('/source/url', options)
+
+
    +
  • Types:
  • +
+
declare interface CssOptions {
attrs?: LinkAttributes
props?: LinkAttributes
force?: boolean
}

declare interface HTMLLinkElementEX extends HTMLLinkElement {
onreadystatechange?: any
readyState?: 'loaded' | 'complete'
}

declare type LinkAttributes = Pick<
HTMLLinkElement,
| 'as'
| 'charset'
| 'crossOrigin'
| 'disabled'
| 'href'
| 'hreflang'
| 'imageSizes'
| 'imageSrcset'
| 'integrity'
| 'media'
| 'referrerPolicy'
| 'rel'
| 'rev'
| 'target'
| 'type'
>

declare function mountCss(src: string, option?: CssOptions): Promise<boolean> +
+

mountImg

load image resource dynamically

+
    +
  • Since: 2.8.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceImgOptions-false-
+
    +
  • Returns: boolean | imageUrl

    +
  • +
  • Example:

    +
  • +
+
mountImg('/source/url', options)
+
+
    +
  • Types:
  • +
+
declare interface HTMLImageElementEX extends HTMLImageElement {
onreadystatechange?: any
readyState?: 'loaded' | 'complete'
}

declare type ImageAttributes = Pick<
HTMLImageElement,
| 'align'
| 'alt'
| 'border'
| 'crossOrigin'
| 'decoding'
| 'height'
| 'hspace'
| 'isMap'
| 'loading'
| 'longDesc'
| 'lowsrc'
| 'name'
| 'referrerPolicy'
| 'sizes'
| 'src'
| 'srcset'
| 'useMap'
| 'vspace'
| 'width'
>

declare interface ImgOptions {
attrs?: ImageAttributes
props?: ImageAttributes
force?: boolean
}

declare function mountImage(src: string, option?: ImgOptions): Promise<boolean | string> +
+

mountJs

load js link resources dynamically

+
    +
  • Since: 2.8.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceJsOptions-false-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
mountJs('/source/url', options)
+
+
    +
  • Types:
  • +
+
declare interface HTMLScriptElementEX extends HTMLScriptElement {
onreadystatechange?: any
readyState?: 'loaded' | 'complete'
}

declare interface JsOptions {
attrs?: ScriptAttributes
props?: ScriptAttributes
force?: boolean
}

declare function mountJs(src: string, option?: JsOptions): Promise<boolean>

declare type ScriptAttributes = Pick<
HTMLScriptElement,
| 'async'
| 'charset'
| 'crossOrigin'
| 'defer'
| 'event'
| 'htmlFor'
| 'integrity'
| 'noModule'
| 'referrerPolicy'
| 'src'
| 'text'
| 'type'
> +
+

mountStyle

load css styles dynamically

+
    +
  • Since: 2.8.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
urlresource urlstring-true-
optionsparameters: attrs, props, forceStyleOptions-false-
+
    +
  • Returns: boolean

    +
  • +
  • Example:

    +
  • +
+
mountStyle('/source/url', options)
+
+
    +
  • Types:
  • +
+
declare function mountStyle(css: string, option?: StyleOptions): Promise<boolean>

declare type StyleAttributes = Pick<HTMLStyleElement, 'disabled' | 'media' | 'type'>

declare interface StyleOptions {
attrs?: StyleAttributes
props?: StyleAttributes
} +
+

preloader

Image preloading

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
imagesimages urlstring array-true-
+
    +
  • Returns: void

    +
  • +
  • Example:

    +
  • +
+
preloader('path/of/image')

preloader(['path/of/image']) +
+
    +
  • Types:
  • +
+
declare function preloader(images: string): HTMLImageElement

declare function preloader(images: string[]): Record<string, HTMLImageElement> +
+

waiting

+

v5.8.1 Support throw on timeout

+
+

waiting for a while

+
    +
  • Since: 5.5.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
millisecondswaiting time (milliseconds)number-true-
throwOnTimeoutthrow on timeoutboolean-falsefalse
+
    +
  • Returns: Promise<void>

    +
  • +
  • Example:

    +
  • +
+
waiting(2000)

await waiting(2000, true)
// reject +
+
    +
  • Types:
  • +
+
declare function waiting(milliseconds: number, throwOnTimeout?: boolean): Promise<void>
+
+

awaitTo

Async await wrapper for easy error handling

+
+

v5.7.0 Extend awaitTo to support passing in multiple promises

+
+
    +
  • Since: 5.2.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
promisepromise functionPromise Promise[]-true-
...promisesPromise rest paramsPromise[]-false-
+
    +
  • Returns: [Error, undefined] or [null, data | data[]]

    +
  • +
  • Example:

    +
  • +
+
import { awaitTo as to } from 'js-cool'

// 1. simple use
const [err, data] = await to(new Promise())
if (err) {
// handle request error
}

// 2. Pass in multiple promises
const [err, data] = await to(promise1, promise2)
// or
const [err, data] = await to([promise1, promise2]) +
+
    +
  • Types:
  • +
+
declare function awaitTo<T, E = Error>(promise: Promise<T>): Promise<[E, undefined] | [null, T]>
+
+

Blob arrayBuffer base64 file blobUrl

arrayBufferToBase64

arrayBuffer转Base64

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputarrayBuffer dataArrayBuffer-true-
mimeimage mimeString-falseimage/png
+
    +
  • Returns: String

    +
  • +
  • Example:

    +
  • +
+
arrayBufferToBase64(arrayBuffer, 'image/png')
// data:image/png;base64,xxxxxxxxxxxx +
+
    +
  • Types:
  • +
+
declare function arrayBufferToBase64(input: ArrayBuffer, mime?: string): string
+
+

arrayBufferToBlob

arrayBuffer转Blob

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputarrayBuffer dataArrayBuffer-true-
mimeimage mimeString-falseimage/png
+
    +
  • Returns: Blob

    +
  • +
  • Example:

    +
  • +
+
arrayBufferToBase64(arrayBuffer, 'image/png')
// Blob +
+
    +
  • Types:
  • +
+
declare function arrayBufferToBlob(input: ArrayBuffer, mime?: string): Blob
+
+

base64ToArrayBuffer

base64转ArrayBuffer

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputbase64 stringString-true-
+
    +
  • Returns: ArrayBuffer

    +
  • +
  • Example:

    +
  • +
+
base64ToArrayBuffer(base64)
// ArrayBuffer +
+
    +
  • Types:
  • +
+
declare function base64ToArrayBuffer(input: string): ArrayBuffer
+
+

base64ToBlob

base64转Blob

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputbase64 stringString-true-
+
    +
  • Returns: Blob

    +
  • +
  • Example:

    +
  • +
+
base64ToBlob(base64)
// Blob +
+
    +
  • Types:
  • +
+
declare function base64ToBlob(input: string): Blob
+
+

base64ToFile

base64转File

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputbase64 stringString-true-
fileNamefile nameString-true-
+
    +
  • Returns: File

    +
  • +
  • Example:

    +
  • +
+
base64ToFile(base64, 'image.png')
// File +
+
    +
  • Types:
  • +
+
declare function base64ToFile(input: string, fileName: string): File
+
+

blobToArrayBuffer

blob转ArrayBuffer

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputblob dataBlob-true-
+
    +
  • Returns: ArrayBuffer

    +
  • +
  • Example:

    +
  • +
+
blobToArrayBuffer(blob).then(data => {
// ArrayBuffer
}) +
+
    +
  • Types:
  • +
+
declare function blobToArrayBuffer(input: Blob): Promise<ArrayBuffer | null>
+
+

blobToBase64

blob转Base64

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputblob dataBlob-true-
+
    +
  • Returns: String

    +
  • +
  • Example:

    +
  • +
+
blobToBase64(blob).then(data => {
// data:image/png;base64,xxxxxxxxxxxx
}) +
+
    +
  • Types:
  • +
+
declare function blobToBase64(input: Blob): Promise<string | null>
+
+

blobToUrl

blob转Url

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputblob dataBlob-true-
+
    +
  • Returns: Object

    +
  • +
  • Example:

    +
  • +
+
blobToUrl(blob)
// blob:xxxxxxx +
+
    +
  • Types:
  • +
+
declare function blobToUrl(input: Blob): string
+
+

fileToBase64

file转Base64

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputfile dataFile-true-
+
    +
  • Returns: String

    +
  • +
  • Example:

    +
  • +
+
fileToBase64(file).then(data => {
// data:image/png;base64,xxxxxxxxxxxx
}) +
+
    +
  • Types:
  • +
+
declare function fileToBase64(input: File): Promise<string | null>
+
+

svgToBlob

svg转Blob

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputsvg stringString-true-
+
    +
  • Returns: Blob

    +
  • +
  • Example:

    +
  • +
+
svgToBlob(svg)
// Blob +
+
    +
  • Types:
  • +
+
declare function svgToBlob(input: string): Blob
+
+

urlToBlob

url转Blob

+
    +
  • Since: 5.13.0

    +
  • +
  • Arguments:

    +
  • +
+ + + + + + + + + + + + + + + + + + + +
ParametersDescriptionTypeOptionalRequiredDefault
inputurlString-true-
+
    +
  • Returns: Blob

    +
  • +
  • Example:

    +
  • +
+
urlToBlob(url).then(blob => {
// Blob
}) +
+
    +
  • Types:
  • +
+
declare function urlToBlob(input: string): Promise<Blob | null>
+
+

Support & Issues

Please open an issue here.

+

License

MIT

+
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/AnyFunction.html b/interfaces/AnyFunction.html new file mode 100644 index 00000000..a874a644 --- /dev/null +++ b/interfaces/AnyFunction.html @@ -0,0 +1,78 @@ +AnyFunction | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface AnyFunction

+
+

Hierarchy

+
+
+
    + +
  • +
    +

    Parameters

    +
      +
    • +
      Rest ...args: any[]
    +

    Returns any

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/ArrayOne.html b/interfaces/ArrayOne.html new file mode 100644 index 00000000..8c298ca7 --- /dev/null +++ b/interfaces/ArrayOne.html @@ -0,0 +1,92 @@ +ArrayOne | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface ArrayOne<T>

+
+

Type Parameters

+
    +
  • +

    T

+
+

Hierarchy

+
    +
  • ArrayOne
+
+
+
+ +
+
+

Properties

+
0 +
+
+

Properties

+
+ +
0: T
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/BrowserVersion.html b/interfaces/BrowserVersion.html new file mode 100644 index 00000000..93a57d73 --- /dev/null +++ b/interfaces/BrowserVersion.html @@ -0,0 +1,94 @@ +BrowserVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface BrowserVersion

+
+

Hierarchy

+
    +
  • BrowserVersion
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
name: "Safari" | "Chrome" | "IE" | "Edge" | "Firefox" | "Firefox Focus" | "Chromium" | "Opera" | "Vivaldi" | "Yandex" | "Arora" | "Lunascape" | "QupZilla" | "Coc Coc" | "Kindle" | "Iceweasel" | "Konqueror" | "Iceape" | "SeaMonkey" | "Epiphany" | "360" | "360SE" | "360EE" | "Maxthon" | "QQBrowser" | "QQ" | "Baidu" | "UC" | "Sogou" | "Liebao" | "LBBROWSER" | "2345Explorer" | "115Browser" | "TheWorld" | "XiaoMi" | "Vivo" | "Quark" | "Qiyu" | "Wechat" | "WechatWork" | "Taobao" | "Alipay" | "Weibo" | "Douban" | "Suning" | "iQiYi" | "DingTalk" | "Huawei"
+
+ +
version: string
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/DirParamType.html b/interfaces/DirParamType.html new file mode 100644 index 00000000..7b361ddd --- /dev/null +++ b/interfaces/DirParamType.html @@ -0,0 +1,94 @@ +DirParamType | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface DirParamType

+
+

Hierarchy

+
    +
  • DirParamType
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
host?: string
+
+ +
path?: string[]
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/JSONArray.html b/interfaces/JSONArray.html new file mode 100644 index 00000000..a2648ac8 --- /dev/null +++ b/interfaces/JSONArray.html @@ -0,0 +1,1670 @@ +JSONArray | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface JSONArray

+
+

Hierarchy

+
+
+
+
+ +
+
+

Properties

+
+ +
[unscopables]: {
    [unscopables]?: boolean;
    length?: boolean;
    [iterator]?: any;
    at?: any;
    concat?: any;
    copyWithin?: any;
    entries?: any;
    every?: any;
    fill?: any;
    filter?: any;
    find?: any;
    findIndex?: any;
    findLast?: any;
    findLastIndex?: any;
    flat?: any;
    flatMap?: any;
    forEach?: any;
    includes?: any;
    indexOf?: any;
    join?: any;
    keys?: any;
    lastIndexOf?: any;
    map?: any;
    pop?: any;
    push?: any;
    reduce?: any;
    reduceRight?: any;
    reverse?: any;
    shift?: any;
    slice?: any;
    some?: any;
    sort?: any;
    splice?: any;
    toLocaleString?: any;
    toReversed?: any;
    toSorted?: any;
    toSpliced?: any;
    toString?: any;
    unshift?: any;
    values?: any;
    with?: any;
}
+

Is an object whose properties have the value 'true' +when they will be absent when used in a 'with' statement.

+
+
+

Type declaration

+
    +
  • +
    Optional Readonly [unscopables]?: boolean
    +

    Is an object whose properties have the value 'true' +when they will be absent when used in a 'with' statement.

    +
    +
  • +
  • +
    Optional length?: boolean
    +

    Gets or sets the length of the array. This is a number one higher than the highest index in the array.

    +
    +
+
+
+ +
length: number
+

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

+
+
+
+

Methods

+
+ +
    + +
  • +

    Iterator

    +
    +

    Returns IterableIterator<JSONValue>

    +
+
+ +
    + +
  • +

    Returns the item located at the specified index.

    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +

      The zero-based index of the desired code unit. A negative index will count back from the last item.

      +
      +
    +

    Returns JSONValue

    +
+
+ +
    + +
  • +

    Combines two or more arrays. +This method returns a new array without modifying any existing arrays.

    +
    +
    +

    Parameters

    +
      +
    • +
      Rest ...items: ConcatArray<JSONValue>[]
      +

      Additional arrays and/or items to add to the end of the array.

      +
      +
    +

    Returns JSONValue[]

    +
  • + +
  • +

    Combines two or more arrays. +This method returns a new array without modifying any existing arrays.

    +
    +
    +

    Parameters

    +
      +
    • +
      Rest ...items: (JSONValue | ConcatArray<JSONValue>)[]
      +

      Additional arrays and/or items to add to the end of the array.

      +
      +
    +

    Returns JSONValue[]

    +
+
+ +
    + +
  • +

    Returns the this object after copying a section of the array identified by start and end +to the same array starting at position target

    +
    +
    +

    Parameters

    +
      +
    • +
      target: number
      +

      If target is negative, it is treated as length+target where length is the +length of the array.

      +
      +
    • +
    • +
      start: number
      +

      If start is negative, it is treated as length+start. If end is negative, it +is treated as length+end.

      +
      +
    • +
    • +
      Optional end: number
      +

      If not specified, length of the this object is used as its default value.

      +
      +
    +

    Returns JSONArray

    +
+
+ +
    + +
  • +

    Returns an iterable of key, value pairs for every entry in the array

    +
    +

    Returns IterableIterator<[number, JSONValue]>

    +
+
+ +
    + +
  • +

    Determines whether all the members of an array satisfy the specified test.

    +
    +
    +

    Type Parameters

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => value is S)
      +

      A function that accepts up to three arguments. The every method calls +the predicate function for each element in the array until the predicate returns a value +which is coercible to the Boolean value false, or until the end of the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): value is S
        • +
        • +
          +

          Parameters

          +
          +

          Returns value is S

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the predicate function. +If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns this is S[]

    +
  • + +
  • +

    Determines whether all the members of an array satisfy the specified test.

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => unknown)
      +

      A function that accepts up to three arguments. The every method calls +the predicate function for each element in the array until the predicate returns a value +which is coercible to the Boolean value false, or until the end of the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the predicate function. +If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns boolean

    +
+
+ +
    + +
  • +

    Changes all array elements from start to end index to a static value and returns the modified array

    +
    +
    +

    Parameters

    +
      +
    • +
      value: JSONValue
      +

      value to fill array section with

      +
      +
    • +
    • +
      Optional start: number
      +

      index to start filling the array at. If start is negative, it is treated as +length+start where length is the length of the array.

      +
      +
    • +
    • +
      Optional end: number
      +

      index to stop filling the array at. If end is negative, it is treated as +length+end.

      +
      +
    +

    Returns JSONArray

    +
+
+ +
    + +
  • +

    Returns the elements of an array that meet the condition specified in a callback function.

    +
    +
    +

    Type Parameters

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => value is S)
      +

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): value is S
        • +
        • +
          +

          Parameters

          +
          +

          Returns value is S

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns S[]

    +
  • + +
  • +

    Returns the elements of an array that meet the condition specified in a callback function.

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => unknown)
      +

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns JSONValue[]

    +
+
+ +
    + +
  • +

    Returns the value of the first element in the array where predicate is true, and undefined +otherwise.

    +
    +
    +

    Type Parameters

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, obj) => value is S)
      +

      find calls predicate once for each element of the array, in ascending +order, until it finds one where predicate returns true. If such an element is found, find +immediately returns that element value. Otherwise, find returns undefined.

      +
      +
      +
        +
      • +
          +
        • (value, index, obj): value is S
        • +
        • +
          +

          Parameters

          +
          +

          Returns value is S

    • +
    • +
      Optional thisArg: any
      +

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +
      +
    +

    Returns undefined | S

    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, obj) => unknown)
      +
        +
      • +
          +
        • (value, index, obj): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
    +

    Returns JSONValue

+
+ +
    + +
  • +

    Returns the index of the first element in the array where predicate is true, and -1 +otherwise.

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, obj) => unknown)
      +

      find calls predicate once for each element of the array, in ascending +order, until it finds one where predicate returns true. If such an element is found, +findIndex immediately returns that element index. Otherwise, findIndex returns -1.

      +
      +
      +
        +
      • +
          +
        • (value, index, obj): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
      +

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +
      +
    +

    Returns number

    +
+
+ +
    + +
  • +

    Returns the value of the last element in the array where predicate is true, and undefined +otherwise.

    +
    +
    +

    Type Parameters

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => value is S)
      +

      findLast calls predicate once for each element of the array, in descending +order, until it finds one where predicate returns true. If such an element is found, findLast +immediately returns that element value. Otherwise, findLast returns undefined.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): value is S
        • +
        • +
          +

          Parameters

          +
          +

          Returns value is S

    • +
    • +
      Optional thisArg: any
      +

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +
      +
    +

    Returns undefined | S

    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => unknown)
      +
        +
      • +
          +
        • (value, index, array): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
    +

    Returns JSONValue

+
+ +
    + +
  • +

    Returns the index of the last element in the array where predicate is true, and -1 +otherwise.

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => unknown)
      +

      findLastIndex calls predicate once for each element of the array, in descending +order, until it finds one where predicate returns true. If such an element is found, +findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
      +

      If provided, it will be used as the this value for each invocation of +predicate. If it is not provided, undefined is used instead.

      +
      +
    +

    Returns number

    +
+
+ +
    + +
  • +

    Returns a new array with all sub-array elements concatenated into it recursively up to the +specified depth.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      A

    • +
    • +

      D extends number = 1

    +
    +

    Parameters

    +
      +
    • +
      this: A
    • +
    • +
      Optional depth: D
      +

      The maximum recursion depth

      +
      +
    +

    Returns FlatArray<A, D>[]

    +
+
+ +
    + +
  • +

    Calls a defined callback function on each element of an array. Then, flattens the result into +a new array. +This is identical to a map followed by flat with depth 1.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      U

    • +
    • +

      This = undefined

    +
    +

    Parameters

    +
      +
    • +
      callback: ((this, value, index, array) => U | readonly U[])
      +

      A function that accepts up to three arguments. The flatMap method calls the +callback function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (this, value, index, array): U | readonly U[]
        • +
        • +
          +

          Parameters

          +
          +

          Returns U | readonly U[]

    • +
    • +
      Optional thisArg: This
      +

      An object to which the this keyword can refer in the callback function. If +thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns U[]

    +
+
+ +
    + +
  • +

    Performs the specified action for each element in an array.

    +
    +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((value, index, array) => void)
      +

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): void
        • +
        • +
          +

          Parameters

          +
          +

          Returns void

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns void

    +
+
+ +
    + +
  • +

    Determines whether an array includes a certain element, returning true or false as appropriate.

    +
    +
    +

    Parameters

    +
      +
    • +
      searchElement: JSONValue
      +

      The element to search for.

      +
      +
    • +
    • +
      Optional fromIndex: number
      +

      The position in this array at which to begin searching for searchElement.

      +
      +
    +

    Returns boolean

    +
+
+ +
    + +
  • +

    Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

    +
    +
    +

    Parameters

    +
      +
    • +
      searchElement: JSONValue
      +

      The value to locate in the array.

      +
      +
    • +
    • +
      Optional fromIndex: number
      +

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

      +
      +
    +

    Returns number

    +
+
+ +
    + +
  • +

    Adds all the elements of an array into a string, separated by the specified separator string.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional separator: string
      +

      A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

      +
      +
    +

    Returns string

    +
+
+ +
    + +
  • +

    Returns an iterable of keys in the array

    +
    +

    Returns IterableIterator<number>

    +
+
+ +
    + +
  • +

    Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

    +
    +
    +

    Parameters

    +
      +
    • +
      searchElement: JSONValue
      +

      The value to locate in the array.

      +
      +
    • +
    • +
      Optional fromIndex: number
      +

      The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

      +
      +
    +

    Returns number

    +
+
+ +
    + +
  • +

    Calls a defined callback function on each element of an array, and returns an array that contains the results.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      U

    +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((value, index, array) => U)
      +

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): U
        • +
        • +
          +

          Parameters

          +
          +

          Returns U

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns U[]

    +
+
+ +
    + +
  • +

    Removes the last element from an array and returns it. +If the array is empty, undefined is returned and the array is not modified.

    +
    +

    Returns JSONValue

    +
+
+ +
    + +
  • +

    Appends new elements to the end of an array, and returns the new length of the array.

    +
    +
    +

    Parameters

    +
      +
    • +
      Rest ...items: JSONValue[]
      +

      New elements to add to the array.

      +
      +
    +

    Returns number

    +
+
+ +
    + +
  • +

    Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +
    +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((previousValue, currentValue, currentIndex, array) => JSONValue)
      +

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      +
      +
      +
    +

    Returns JSONValue

    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((previousValue, currentValue, currentIndex, array) => JSONValue)
      +
    • +
    • +
      initialValue: JSONValue
    +

    Returns JSONValue

  • + +
  • +

    Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      U

    +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((previousValue, currentValue, currentIndex, array) => U)
      +

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (previousValue, currentValue, currentIndex, array): U
        • +
        • +
          +

          Parameters

          +
            +
          • +
            previousValue: U
          • +
          • +
            currentValue: JSONValue
          • +
          • +
            currentIndex: number
          • +
          • +
            array: JSONValue[]
          +

          Returns U

    • +
    • +
      initialValue: U
      +

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

      +
      +
    +

    Returns U

    +
+
+ +
    + +
  • +

    Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +
    +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((previousValue, currentValue, currentIndex, array) => JSONValue)
      +

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      +
      +
      +
    +

    Returns JSONValue

    +
  • + +
  • +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((previousValue, currentValue, currentIndex, array) => JSONValue)
      +
    • +
    • +
      initialValue: JSONValue
    +

    Returns JSONValue

  • + +
  • +

    Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      U

    +
    +

    Parameters

    +
      +
    • +
      callbackfn: ((previousValue, currentValue, currentIndex, array) => U)
      +

      A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

      +
      +
      +
        +
      • +
          +
        • (previousValue, currentValue, currentIndex, array): U
        • +
        • +
          +

          Parameters

          +
            +
          • +
            previousValue: U
          • +
          • +
            currentValue: JSONValue
          • +
          • +
            currentIndex: number
          • +
          • +
            array: JSONValue[]
          +

          Returns U

    • +
    • +
      initialValue: U
      +

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

      +
      +
    +

    Returns U

    +
+
+ +
    + +
  • +

    Reverses the elements in an array in place. +This method mutates the array and returns a reference to the same array.

    +
    +

    Returns JSONValue[]

    +
+
+ +
    + +
  • +

    Removes the first element from an array and returns it. +If the array is empty, undefined is returned and the array is not modified.

    +
    +

    Returns JSONValue

    +
+
+ +
    + +
  • +

    Returns a copy of a section of an array. +For both start and end, a negative index can be used to indicate an offset from the end of the array. +For example, -2 refers to the second to last element of the array.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional start: number
      +

      The beginning index of the specified portion of the array. +If start is undefined, then the slice begins at index 0.

      +
      +
    • +
    • +
      Optional end: number
      +

      The end index of the specified portion of the array. This is exclusive of the element at the index 'end'. +If end is undefined, then the slice extends to the end of the array.

      +
      +
    +

    Returns JSONValue[]

    +
+
+ +
    + +
  • +

    Determines whether the specified callback function returns true for any element of an array.

    +
    +
    +

    Parameters

    +
      +
    • +
      predicate: ((value, index, array) => unknown)
      +

      A function that accepts up to three arguments. The some method calls +the predicate function for each element in the array until the predicate returns a value +which is coercible to the Boolean value true, or until the end of the array.

      +
      +
      +
        +
      • +
          +
        • (value, index, array): unknown
        • +
        • +
          +

          Parameters

          +
          +

          Returns unknown

    • +
    • +
      Optional thisArg: any
      +

      An object to which the this keyword can refer in the predicate function. +If thisArg is omitted, undefined is used as the this value.

      +
      +
    +

    Returns boolean

    +
+
+ +
    + +
  • +

    Sorts an array in place. +This method mutates the array and returns a reference to the same array.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional compareFn: ((a, b) => number)
      +

      Function used to determine the order of the elements. It is expected to return +a negative value if the first argument is less than the second argument, zero if they're equal, and a positive +value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.

      +
      [11,2,22,1].sort((a, b) => a - b)
      +
      +
      +
      +
    +

    Returns JSONArray

    +
+
+ +
    + +
  • +

    Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

    +
    +
    +

    Parameters

    +
      +
    • +
      start: number
      +

      The zero-based location in the array from which to start removing elements.

      +
      +
    • +
    • +
      Optional deleteCount: number
      +

      The number of elements to remove.

      +
      +
    +

    Returns JSONValue[]

    An array containing the elements that were deleted.

    + +
  • + +
  • +

    Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

    +
    +
    +

    Parameters

    +
      +
    • +
      start: number
      +

      The zero-based location in the array from which to start removing elements.

      +
      +
    • +
    • +
      deleteCount: number
      +

      The number of elements to remove.

      +
      +
    • +
    • +
      Rest ...items: JSONValue[]
      +

      Elements to insert into the array in place of the deleted elements.

      +
      +
    +

    Returns JSONValue[]

    An array containing the elements that were deleted.

    + +
+
+ +
    + +
  • +

    Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

    +
    +

    Returns string

    +
+
+ +
    + +
  • +

    Returns a copy of an array with its elements reversed.

    +
    +

    Returns JSONValue[]

    +
+
+ +
    + +
  • +

    Returns a copy of an array with its elements sorted.

    +
    +
    +

    Parameters

    +
      +
    • +
      Optional compareFn: ((a, b) => number)
      +

      Function used to determine the order of the elements. It is expected to return +a negative value if the first argument is less than the second argument, zero if they're equal, and a positive +value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.

      +
      [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
      +
      +
      +
      +
    +

    Returns JSONValue[]

    +
+
+ +
    + +
  • +

    Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.

    +
    +
    +

    Parameters

    +
      +
    • +
      start: number
      +

      The zero-based location in the array from which to start removing elements.

      +
      +
    • +
    • +
      deleteCount: number
      +

      The number of elements to remove.

      +
      +
    • +
    • +
      Rest ...items: JSONValue[]
      +

      Elements to insert into the copied array in place of the deleted elements.

      +
      +
    +

    Returns JSONValue[]

    The copied array.

    + +
  • + +
  • +

    Copies an array and removes elements while returning the remaining elements.

    +
    +
    +

    Parameters

    +
      +
    • +
      start: number
      +

      The zero-based location in the array from which to start removing elements.

      +
      +
    • +
    • +
      Optional deleteCount: number
      +

      The number of elements to remove.

      +
      +
    +

    Returns JSONValue[]

    A copy of the original array with the remaining elements.

    + +
+
+ +
    + +
  • +

    Returns a string representation of an array.

    +
    +

    Returns string

    +
+
+ +
    + +
  • +

    Inserts new elements at the start of an array, and returns the new length of the array.

    +
    +
    +

    Parameters

    +
      +
    • +
      Rest ...items: JSONValue[]
      +

      Elements to insert at the start of the array.

      +
      +
    +

    Returns number

    +
+
+ +
    + +
  • +

    Returns an iterable of values in the array

    +
    +

    Returns IterableIterator<JSONValue>

    +
+
+ +
    + +
  • +

    Copies an array, then overwrites the value at the provided index with the +given value. If the index is negative, then it replaces from the end +of the array.

    +
    +
    +

    Parameters

    +
      +
    • +
      index: number
      +

      The index of the value to overwrite. If the index is +negative, then it replaces from the end of the array.

      +
      +
    • +
    • +
      value: JSONValue
      +

      The value to write into the copied array.

      +
      +
    +

    Returns JSONValue[]

    The copied array with the updated value.

    + +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/OsVersion.html b/interfaces/OsVersion.html new file mode 100644 index 00000000..f92d1dce --- /dev/null +++ b/interfaces/OsVersion.html @@ -0,0 +1,94 @@ +OsVersion | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface OsVersion

+
+

Hierarchy

+
    +
  • OsVersion
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
name: "Windows" | "MacOS" | "Android" | "iOS" | "WindowsPhone" | "Debian" | "WebOS"
+
+ +
version: string
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/PlainObject.html b/interfaces/PlainObject.html new file mode 100644 index 00000000..1632a270 --- /dev/null +++ b/interfaces/PlainObject.html @@ -0,0 +1,69 @@ +PlainObject | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface PlainObject

+
+

Hierarchy

+
    +
  • PlainObject
+
+

Indexable

+
[key: string]: JSONValue
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/RandomStringOptions.html b/interfaces/RandomStringOptions.html new file mode 100644 index 00000000..c61b6e61 --- /dev/null +++ b/interfaces/RandomStringOptions.html @@ -0,0 +1,114 @@ +RandomStringOptions | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface RandomStringOptions

+
+

Hierarchy

+
    +
  • RandomStringOptions
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
+
+ +
length?: number
+
+ +
noConfuse?: boolean
+

Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1

+
+
+
+ +
strict?: boolean
+

The generated random string must contain each of the listed character types

+
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/SearchKeySet.html b/interfaces/SearchKeySet.html new file mode 100644 index 00000000..01f8bc42 --- /dev/null +++ b/interfaces/SearchKeySet.html @@ -0,0 +1,97 @@ +SearchKeySet | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface SearchKeySet

+
+

Hierarchy

+
    +
  • SearchKeySet
+
+

Indexable

+
[prop: string]: any
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
childName: string
+
+ +
keyName: string
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/Version.html b/interfaces/Version.html new file mode 100644 index 00000000..e3d2e2b9 --- /dev/null +++ b/interfaces/Version.html @@ -0,0 +1,115 @@ +Version | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface Version

+
+

Hierarchy

+
    +
  • Version
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
major: number
+
+ +
minor: number
+
+ +
patch: number
+
+ +
preid: string
+
+ +
release?: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/interfaces/WindowSizeObj.html b/interfaces/WindowSizeObj.html new file mode 100644 index 00000000..32f00535 --- /dev/null +++ b/interfaces/WindowSizeObj.html @@ -0,0 +1,94 @@ +WindowSizeObj | index.md - v5.13.0
+
+ +
+
+
+
+ +

Interface WindowSizeObj

+
+

Hierarchy

+
    +
  • WindowSizeObj
+
+
+
+ +
+
+

Properties

+
+
+

Properties

+
+ +
height: number
+
+ +
width: number
+
+ +
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/modules.html b/modules.html new file mode 100644 index 00000000..6c30aa00 --- /dev/null +++ b/modules.html @@ -0,0 +1,218 @@ +index.md - v5.13.0
+
+ +
+
+
+
+

index.md - v5.13.0

+
+
+

Index

+
+

Namespaces

+
+
+

Interfaces

+
+
+

Type Aliases

+
+
+

Variables

+
+
+

Functions

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/modules/addEvent.html b/modules/addEvent.html new file mode 100644 index 00000000..1e5cc603 --- /dev/null +++ b/modules/addEvent.html @@ -0,0 +1,70 @@ +addEvent | index.md - v5.13.0
+
+ +
+
+
+
+ +

Namespace addEvent

+
+
+

Index

+
+

Variables

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/out.json b/out.json new file mode 100644 index 00000000..a15a3e4c --- /dev/null +++ b/out.json @@ -0,0 +1,53394 @@ +{ + "id": 0, + "name": "index.md", + "variant": "project", + "kind": 1, + "flags": {}, + "children": [ + { + "id": 660, + "name": "addEvent", + "variant": "declaration", + "kind": 4, + "flags": {}, + "children": [ + { + "id": 661, + "name": "guid", + "variant": "declaration", + "kind": 32, + "flags": {}, + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 36, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/addEvent.ts#L36" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Variables", + "children": [ + 661 + ] + } + ], + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/addEvent.ts#L12" + }, + { + "fileName": "src/addEvent.ts", + "line": 36, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/addEvent.ts#L36" + } + ] + }, + { + "id": 902, + "name": "AnyFunction", + "variant": "declaration", + "kind": 256, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L3" + } + ], + "signatures": [ + { + "id": 903, + "name": "AnyFunction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L4" + } + ], + "parameters": [ + { + "id": 904, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": 901, + "name": "AnyObject", + "package": "js-cool" + } + ] + }, + { + "id": 905, + "name": "ArrayOne", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 906, + "name": "0", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L8" + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 906 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 7, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L7" + } + ], + "typeParameters": [ + { + "id": 907, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ] + }, + { + "id": 546, + "name": "BrowserVersion", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 547, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L4" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "Safari" + }, + { + "type": "literal", + "value": "Chrome" + }, + { + "type": "literal", + "value": "IE" + }, + { + "type": "literal", + "value": "Edge" + }, + { + "type": "literal", + "value": "Firefox" + }, + { + "type": "literal", + "value": "Firefox Focus" + }, + { + "type": "literal", + "value": "Chromium" + }, + { + "type": "literal", + "value": "Opera" + }, + { + "type": "literal", + "value": "Vivaldi" + }, + { + "type": "literal", + "value": "Yandex" + }, + { + "type": "literal", + "value": "Arora" + }, + { + "type": "literal", + "value": "Lunascape" + }, + { + "type": "literal", + "value": "QupZilla" + }, + { + "type": "literal", + "value": "Coc Coc" + }, + { + "type": "literal", + "value": "Kindle" + }, + { + "type": "literal", + "value": "Iceweasel" + }, + { + "type": "literal", + "value": "Konqueror" + }, + { + "type": "literal", + "value": "Iceape" + }, + { + "type": "literal", + "value": "SeaMonkey" + }, + { + "type": "literal", + "value": "Epiphany" + }, + { + "type": "literal", + "value": "360" + }, + { + "type": "literal", + "value": "360SE" + }, + { + "type": "literal", + "value": "360EE" + }, + { + "type": "literal", + "value": "Maxthon" + }, + { + "type": "literal", + "value": "QQBrowser" + }, + { + "type": "literal", + "value": "QQ" + }, + { + "type": "literal", + "value": "Baidu" + }, + { + "type": "literal", + "value": "UC" + }, + { + "type": "literal", + "value": "Sogou" + }, + { + "type": "literal", + "value": "Liebao" + }, + { + "type": "literal", + "value": "LBBROWSER" + }, + { + "type": "literal", + "value": "2345Explorer" + }, + { + "type": "literal", + "value": "115Browser" + }, + { + "type": "literal", + "value": "TheWorld" + }, + { + "type": "literal", + "value": "XiaoMi" + }, + { + "type": "literal", + "value": "Vivo" + }, + { + "type": "literal", + "value": "Quark" + }, + { + "type": "literal", + "value": "Qiyu" + }, + { + "type": "literal", + "value": "Wechat" + }, + { + "type": "literal", + "value": "WechatWork" + }, + { + "type": "literal", + "value": "Taobao" + }, + { + "type": "literal", + "value": "Alipay" + }, + { + "type": "literal", + "value": "Weibo" + }, + { + "type": "literal", + "value": "Douban" + }, + { + "type": "literal", + "value": "Suning" + }, + { + "type": "literal", + "value": "iQiYi" + }, + { + "type": "literal", + "value": "DingTalk" + }, + { + "type": "literal", + "value": "Huawei" + } + ] + } + }, + { + "id": 548, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 53, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L53" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 547, + 548 + ] + } + ], + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L3" + } + ] + }, + { + "id": 566, + "name": "DirParamType", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 568, + "name": "host", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 567, + "name": "path", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L2" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 568, + 567 + ] + } + ], + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L1" + } + ] + }, + { + "id": 161, + "name": "JSONArray", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 452, + "name": "[unscopables]", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 13 + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 453, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "children": [ + { + "id": 494, + "name": "[unscopables]", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isOptional": true, + "isReadonly": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 13 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 454, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Gets or sets the length of the array. This is a number one higher than the highest index in the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1318, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 493, + "name": "[iterator]", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 58, + "character": 4 + } + ] + }, + { + "id": 486, + "name": "at", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ] + }, + { + "id": 459, + "name": "concat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1342, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1348, + "character": 4 + } + ] + }, + { + "id": 479, + "name": "copyWithin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ] + }, + { + "id": 480, + "name": "entries", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 63, + "character": 4 + } + ] + }, + { + "id": 469, + "name": "every", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1425, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1434, + "character": 4 + } + ] + }, + { + "id": 478, + "name": "fill", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ] + }, + { + "id": 473, + "name": "filter", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1461, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1467, + "character": 4 + } + ] + }, + { + "id": 476, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ] + }, + { + "id": 477, + "name": "findIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ] + }, + { + "id": 487, + "name": "findLast", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ] + }, + { + "id": 488, + "name": "findLastIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ] + }, + { + "id": 485, + "name": "flat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 79, + "character": 4 + } + ] + }, + { + "id": 484, + "name": "flatMap", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 68, + "character": 4 + } + ] + }, + { + "id": 471, + "name": "forEach", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1449, + "character": 4 + } + ] + }, + { + "id": 483, + "name": "includes", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ] + }, + { + "id": 467, + "name": "indexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1410, + "character": 4 + } + ] + }, + { + "id": 460, + "name": "join", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1353, + "character": 4 + } + ] + }, + { + "id": 481, + "name": "keys", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 68, + "character": 4 + } + ] + }, + { + "id": 468, + "name": "lastIndexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1416, + "character": 4 + } + ] + }, + { + "id": 472, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1455, + "character": 4 + } + ] + }, + { + "id": 457, + "name": "pop", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1331, + "character": 4 + } + ] + }, + { + "id": 458, + "name": "push", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1336, + "character": 4 + } + ] + }, + { + "id": 474, + "name": "reduce", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1473, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1474, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1480, + "character": 4 + } + ] + }, + { + "id": 475, + "name": "reduceRight", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1486, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1487, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1493, + "character": 4 + } + ] + }, + { + "id": 461, + "name": "reverse", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1358, + "character": 4 + } + ] + }, + { + "id": 462, + "name": "shift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1363, + "character": 4 + } + ] + }, + { + "id": 463, + "name": "slice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1373, + "character": 4 + } + ] + }, + { + "id": 470, + "name": "some", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1443, + "character": 4 + } + ] + }, + { + "id": 464, + "name": "sort", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1384, + "character": 4 + } + ] + }, + { + "id": 465, + "name": "splice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1391, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + } + ] + }, + { + "id": 456, + "name": "toLocaleString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1326, + "character": 4 + } + ] + }, + { + "id": 489, + "name": "toReversed", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ] + }, + { + "id": 490, + "name": "toSorted", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ] + }, + { + "id": 491, + "name": "toSpliced", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ] + }, + { + "id": 455, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1322, + "character": 4 + } + ] + }, + { + "id": 466, + "name": "unshift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1404, + "character": 4 + } + ] + }, + { + "id": 482, + "name": "values", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 73, + "character": 4 + } + ] + }, + { + "id": 492, + "name": "with", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true, + "isOptional": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 494, + 454 + ] + }, + { + "title": "Methods", + "children": [ + 493, + 486, + 459, + 479, + 480, + 469, + 478, + 473, + 476, + 477, + 487, + 488, + 485, + 484, + 471, + 483, + 467, + 460, + 481, + 468, + 472, + 457, + 458, + 474, + 475, + 461, + 462, + 463, + 470, + 464, + 465, + 456, + 489, + 490, + 491, + 455, + 466, + 482, + 492 + ] + } + ], + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "line": 97, + "character": 35 + } + ] + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[unscopables]" + } + }, + { + "id": 162, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Gets or sets the length of the array. This is a number one higher than the highest index in the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1318, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.length" + } + }, + { + "id": 450, + "name": "[iterator]", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 58, + "character": 4 + } + ], + "signatures": [ + { + "id": 451, + "name": "[iterator]", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Iterator" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 58, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[iterator]" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.[iterator]" + } + }, + { + "id": 399, + "name": "at", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ], + "signatures": [ + { + "id": 400, + "name": "at", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the item located at the specified index." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "line": 24, + "character": 4 + } + ], + "parameters": [ + { + "id": 401, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based index of the desired code unit. A negative index will count back from the last item." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.at" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.at" + } + }, + { + "id": 172, + "name": "concat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1342, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1348, + "character": 4 + } + ], + "signatures": [ + { + "id": 173, + "name": "concat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1342, + "character": 4 + } + ], + "parameters": [ + { + "id": 174, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arrays and/or items to add to the end of the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ConcatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ConcatArray", + "package": "typescript" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + }, + { + "id": 175, + "name": "concat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1348, + "character": 4 + } + ], + "parameters": [ + { + "id": 176, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Additional arrays and/or items to add to the end of the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ConcatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "ConcatArray", + "package": "typescript" + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.concat" + } + }, + { + "id": 366, + "name": "copyWithin", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ], + "signatures": [ + { + "id": 367, + "name": "copyWithin", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 62, + "character": 4 + } + ], + "parameters": [ + { + "id": 368, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If target is negative, it is treated as length+target where length is the\nlength of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 369, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 370, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If not specified, length of the this object is used as its default value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 161, + "name": "JSONArray", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.copyWithin" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.copyWithin" + } + }, + { + "id": 371, + "name": "entries", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 63, + "character": 4 + } + ], + "signatures": [ + { + "id": 372, + "name": "entries", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of key, value pairs for every entry in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 63, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "tuple", + "elements": [ + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + ] + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.entries" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.entries" + } + }, + { + "id": 214, + "name": "every", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1425, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1434, + "character": 4 + } + ], + "signatures": [ + { + "id": 215, + "name": "every", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether all the members of an array satisfy the specified test." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1425, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 216, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 217, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 218, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1425, + "character": 34 + } + ], + "signatures": [ + { + "id": 219, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1425, + "character": 34 + } + ], + "parameters": [ + { + "id": 220, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 221, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 222, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 223, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "this", + "asserts": false, + "targetType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + }, + { + "id": 224, + "name": "every", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether all the members of an array satisfy the specified test." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1434, + "character": 4 + } + ], + "parameters": [ + { + "id": 225, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 226, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1434, + "character": 21 + } + ], + "signatures": [ + { + "id": 227, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1434, + "character": 21 + } + ], + "parameters": [ + { + "id": 228, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 229, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 230, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 231, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.every" + } + }, + { + "id": 361, + "name": "fill", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ], + "signatures": [ + { + "id": 362, + "name": "fill", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Changes all array elements from " + }, + { + "kind": "code", + "text": "`start`" + }, + { + "kind": "text", + "text": " to " + }, + { + "kind": "code", + "text": "`end`" + }, + { + "kind": "text", + "text": " index to a static " + }, + { + "kind": "code", + "text": "`value`" + }, + { + "kind": "text", + "text": " and returns the modified array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 51, + "character": 4 + } + ], + "parameters": [ + { + "id": 363, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "value to fill array section with" + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 364, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 365, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "index to stop filling the array at. If end is negative, it is treated as\nlength+end." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": 161, + "name": "JSONArray", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.fill" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.fill" + } + }, + { + "id": 260, + "name": "filter", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1461, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1467, + "character": 4 + } + ], + "signatures": [ + { + "id": 261, + "name": "filter", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the elements of an array that meet the condition specified in a callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1461, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 262, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 263, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 264, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1461, + "character": 35 + } + ], + "signatures": [ + { + "id": 265, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1461, + "character": 35 + } + ], + "parameters": [ + { + "id": 266, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 267, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 268, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 269, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + }, + { + "id": 270, + "name": "filter", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the elements of an array that meet the condition specified in a callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1467, + "character": 4 + } + ], + "parameters": [ + { + "id": 271, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 272, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1467, + "character": 22 + } + ], + "signatures": [ + { + "id": 273, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1467, + "character": 22 + } + ], + "parameters": [ + { + "id": 274, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 275, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 276, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 277, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.filter" + } + }, + { + "id": 334, + "name": "find", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ], + "signatures": [ + { + "id": 335, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the value of the first element in the array where predicate is true, and undefined\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 336, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 337, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 338, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 33 + } + ], + "signatures": [ + { + "id": 339, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 29, + "character": 33 + } + ], + "parameters": [ + { + "id": 340, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 341, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 342, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 343, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + }, + { + "id": 344, + "name": "find", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 4 + } + ], + "parameters": [ + { + "id": 345, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 346, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 20 + } + ], + "signatures": [ + { + "id": 347, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 30, + "character": 20 + } + ], + "parameters": [ + { + "id": 348, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 349, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 350, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 351, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.find" + } + }, + { + "id": 352, + "name": "findIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ], + "signatures": [ + { + "id": 353, + "name": "findIndex", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the first element in the array where predicate is true, and -1\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 4 + } + ], + "parameters": [ + { + "id": 354, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 355, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 25 + } + ], + "signatures": [ + { + "id": 356, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "line": 41, + "character": 25 + } + ], + "parameters": [ + { + "id": 357, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 358, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 359, + "name": "obj", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 360, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findIndex" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findIndex" + } + }, + { + "id": 402, + "name": "findLast", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ], + "signatures": [ + { + "id": 403, + "name": "findLast", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the value of the last element in the array where predicate is true, and undefined\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 404, + "name": "S", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "parameters": [ + { + "id": 405, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "findLast calls predicate once for each element of the array, in descending\norder, until it finds one where predicate returns true. If such an element is found, findLast\nimmediately returns that element value. Otherwise, findLast returns undefined." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 406, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 37 + } + ], + "signatures": [ + { + "id": 407, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 29, + "character": 37 + } + ], + "parameters": [ + { + "id": 408, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 409, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 410, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "predicate", + "name": "value", + "asserts": false, + "targetType": { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 411, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "reference", + "target": -1, + "name": "S", + "refersToTypeParameter": true + } + ] + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + }, + { + "id": 412, + "name": "findLast", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 4 + } + ], + "parameters": [ + { + "id": 413, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 414, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 24 + } + ], + "signatures": [ + { + "id": 415, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 30, + "character": 24 + } + ], + "parameters": [ + { + "id": 416, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 417, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 418, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 419, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLast" + } + }, + { + "id": 420, + "name": "findLastIndex", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ], + "signatures": [ + { + "id": 421, + "name": "findLastIndex", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the last element in the array where predicate is true, and -1\notherwise." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 4 + } + ], + "parameters": [ + { + "id": 422, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "findLastIndex calls predicate once for each element of the array, in descending\norder, until it finds one where predicate returns true. If such an element is found,\nfindLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 423, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 29 + } + ], + "signatures": [ + { + "id": 424, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 41, + "character": 29 + } + ], + "parameters": [ + { + "id": 425, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 426, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 427, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 428, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLastIndex" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.findLastIndex" + } + }, + { + "id": 393, + "name": "flat", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 79, + "character": 4 + } + ], + "signatures": [ + { + "id": 394, + "name": "flat", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 79, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 395, + "name": "A", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 396, + "name": "D", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "default": { + "type": "literal", + "value": 1 + } + } + ], + "parameters": [ + { + "id": 397, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": -1, + "name": "A", + "refersToTypeParameter": true + } + }, + { + "id": 398, + "name": "depth", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The maximum recursion depth" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "D", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "FlatArray" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "A", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": -1, + "name": "D", + "refersToTypeParameter": true + } + ], + "name": "FlatArray", + "package": "typescript" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flat" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flat" + } + }, + { + "id": 381, + "name": "flatMap", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 68, + "character": 4 + } + ], + "signatures": [ + { + "id": 382, + "name": "flatMap", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 68, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 383, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + }, + { + "id": 384, + "name": "This", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + }, + "default": { + "type": "intrinsic", + "name": "undefined" + } + } + ], + "parameters": [ + { + "id": 385, + "name": "callback", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 386, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 69, + "character": 18 + } + ], + "signatures": [ + { + "id": 387, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "line": 69, + "character": 18 + } + ], + "parameters": [ + { + "id": 388, + "name": "this", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": -1, + "name": "This", + "refersToTypeParameter": true + } + }, + { + "id": 389, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 390, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 391, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + }, + { + "type": "typeOperator", + "operator": "readonly", + "target": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + } + } + ] + } + } + ] + } + } + }, + { + "id": 392, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "This", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flatMap" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.flatMap" + } + }, + { + "id": 241, + "name": "forEach", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1449, + "character": 4 + } + ], + "signatures": [ + { + "id": 242, + "name": "forEach", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Performs the specified action for each element in an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1449, + "character": 4 + } + ], + "parameters": [ + { + "id": 243, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 244, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1449, + "character": 24 + } + ], + "signatures": [ + { + "id": 245, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1449, + "character": 24 + } + ], + "parameters": [ + { + "id": 246, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 247, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 248, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 249, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.forEach" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.forEach" + } + }, + { + "id": 377, + "name": "includes", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ], + "signatures": [ + { + "id": 378, + "name": "includes", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether an array includes a certain element, returning true or false as appropriate." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "line": 25, + "character": 4 + } + ], + "parameters": [ + { + "id": 379, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The element to search for." + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 380, + "name": "fromIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The position in this array at which to begin searching for searchElement." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.includes" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.includes" + } + }, + { + "id": 206, + "name": "indexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1410, + "character": 4 + } + ], + "signatures": [ + { + "id": 207, + "name": "indexOf", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the first occurrence of a value in an array, or -1 if it is not present." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1410, + "character": 4 + } + ], + "parameters": [ + { + "id": 208, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to locate in the array." + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 209, + "name": "fromIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.indexOf" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.indexOf" + } + }, + { + "id": 177, + "name": "join", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1353, + "character": 4 + } + ], + "signatures": [ + { + "id": 178, + "name": "join", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Adds all the elements of an array into a string, separated by the specified separator string." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1353, + "character": 4 + } + ], + "parameters": [ + { + "id": 179, + "name": "separator", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.join" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.join" + } + }, + { + "id": 373, + "name": "keys", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 68, + "character": 4 + } + ], + "signatures": [ + { + "id": 374, + "name": "keys", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of keys in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 68, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "number" + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.keys" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.keys" + } + }, + { + "id": 210, + "name": "lastIndexOf", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1416, + "character": 4 + } + ], + "signatures": [ + { + "id": 211, + "name": "lastIndexOf", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1416, + "character": 4 + } + ], + "parameters": [ + { + "id": 212, + "name": "searchElement", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to locate in the array." + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 213, + "name": "fromIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.lastIndexOf" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.lastIndexOf" + } + }, + { + "id": 250, + "name": "map", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1455, + "character": 4 + } + ], + "signatures": [ + { + "id": 251, + "name": "map", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls a defined callback function on each element of an array, and returns an array that contains the results." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1455, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 252, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 253, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 254, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1455, + "character": 23 + } + ], + "signatures": [ + { + "id": 255, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1455, + "character": 23 + } + ], + "parameters": [ + { + "id": 256, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 257, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 258, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 259, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.map" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.map" + } + }, + { + "id": 167, + "name": "pop", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1331, + "character": 4 + } + ], + "signatures": [ + { + "id": 168, + "name": "pop", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1331, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.pop" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.pop" + } + }, + { + "id": 169, + "name": "push", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1336, + "character": 4 + } + ], + "signatures": [ + { + "id": 170, + "name": "push", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Appends new elements to the end of an array, and returns the new length of the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1336, + "character": 4 + } + ], + "parameters": [ + { + "id": 171, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "New elements to add to the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.push" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.push" + } + }, + { + "id": 278, + "name": "reduce", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1473, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1474, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1480, + "character": 4 + } + ], + "signatures": [ + { + "id": 279, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1473, + "character": 4 + } + ], + "parameters": [ + { + "id": 280, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 281, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1473, + "character": 23 + } + ], + "signatures": [ + { + "id": 282, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1473, + "character": 23 + } + ], + "parameters": [ + { + "id": 283, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 284, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 285, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 286, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 287, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1474, + "character": 4 + } + ], + "parameters": [ + { + "id": 288, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1474, + "character": 23 + } + ], + "signatures": [ + { + "id": 290, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1474, + "character": 23 + } + ], + "parameters": [ + { + "id": 291, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 292, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 293, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 294, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 295, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 296, + "name": "reduce", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1480, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 297, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 298, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 299, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1480, + "character": 26 + } + ], + "signatures": [ + { + "id": 300, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1480, + "character": 26 + } + ], + "parameters": [ + { + "id": 301, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + }, + { + "id": 302, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 303, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 304, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 305, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value." + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduce" + } + }, + { + "id": 306, + "name": "reduceRight", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1486, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1487, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1493, + "character": 4 + } + ], + "signatures": [ + { + "id": 307, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1486, + "character": 4 + } + ], + "parameters": [ + { + "id": 308, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 309, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1486, + "character": 28 + } + ], + "signatures": [ + { + "id": 310, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1486, + "character": 28 + } + ], + "parameters": [ + { + "id": 311, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 312, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 313, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 314, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 315, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1487, + "character": 4 + } + ], + "parameters": [ + { + "id": 316, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reflection", + "declaration": { + "id": 317, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1487, + "character": 28 + } + ], + "signatures": [ + { + "id": 318, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1487, + "character": 28 + } + ], + "parameters": [ + { + "id": 319, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 320, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 321, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 322, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 323, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 324, + "name": "reduceRight", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1493, + "character": 4 + } + ], + "typeParameter": [ + { + "id": 325, + "name": "U", + "variant": "typeParam", + "kind": 131072, + "flags": { + "isExternal": true + } + } + ], + "parameters": [ + { + "id": 326, + "name": "callbackfn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 327, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1493, + "character": 31 + } + ], + "signatures": [ + { + "id": 328, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1493, + "character": 31 + } + ], + "parameters": [ + { + "id": 329, + "name": "previousValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + }, + { + "id": 330, + "name": "currentValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 331, + "name": "currentIndex", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 332, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 333, + "name": "initialValue", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value." + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "U", + "refersToTypeParameter": true + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reduceRight" + } + }, + { + "id": 180, + "name": "reverse", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1358, + "character": 4 + } + ], + "signatures": [ + { + "id": 181, + "name": "reverse", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1358, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reverse" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.reverse" + } + }, + { + "id": 182, + "name": "shift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1363, + "character": 4 + } + ], + "signatures": [ + { + "id": 183, + "name": "shift", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1363, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.shift" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.shift" + } + }, + { + "id": 184, + "name": "slice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1373, + "character": 4 + } + ], + "signatures": [ + { + "id": 185, + "name": "slice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1373, + "character": 4 + } + ], + "parameters": [ + { + "id": 186, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 187, + "name": "end", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.slice" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.slice" + } + }, + { + "id": 232, + "name": "some", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1443, + "character": 4 + } + ], + "signatures": [ + { + "id": 233, + "name": "some", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determines whether the specified callback function returns true for any element of an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1443, + "character": 4 + } + ], + "parameters": [ + { + "id": 234, + "name": "predicate", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array." + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 235, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1443, + "character": 20 + } + ], + "signatures": [ + { + "id": 236, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1443, + "character": 20 + } + ], + "parameters": [ + { + "id": 237, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 238, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 239, + "name": "array", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + }, + { + "id": 240, + "name": "thisArg", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.some" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.some" + } + }, + { + "id": 188, + "name": "sort", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1384, + "character": 4 + } + ], + "signatures": [ + { + "id": 189, + "name": "sort", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sorts an array in place.\nThis method mutates the array and returns a reference to the same array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1384, + "character": 4 + } + ], + "parameters": [ + { + "id": 190, + "name": "compareFn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n" + }, + { + "kind": "code", + "text": "```ts\n[11,2,22,1].sort((a, b) => a - b)\n```" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 191, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1384, + "character": 21 + } + ], + "signatures": [ + { + "id": 192, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1384, + "character": 21 + } + ], + "parameters": [ + { + "id": 193, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 194, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ], + "type": { + "type": "reference", + "target": 161, + "name": "JSONArray", + "package": "js-cool" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.sort" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.sort" + } + }, + { + "id": 195, + "name": "splice", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1391, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + } + ], + "signatures": [ + { + "id": 196, + "name": "splice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "An array containing the elements that were deleted." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1391, + "character": 4 + } + ], + "parameters": [ + { + "id": 197, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 198, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + }, + { + "id": 199, + "name": "splice", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "An array containing the elements that were deleted." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1399, + "character": 4 + } + ], + "parameters": [ + { + "id": 200, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 201, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 202, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elements to insert into the array in place of the deleted elements." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.splice" + } + }, + { + "id": 165, + "name": "toLocaleString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1326, + "character": 4 + } + ], + "signatures": [ + { + "id": 166, + "name": "toLocaleString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a string representation of an array. The elements are converted to string using their toLocaleString methods." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1326, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toLocaleString" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toLocaleString" + } + }, + { + "id": 429, + "name": "toReversed", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ], + "signatures": [ + { + "id": 430, + "name": "toReversed", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of an array with its elements reversed." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 46, + "character": 4 + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toReversed" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toReversed" + } + }, + { + "id": 431, + "name": "toSorted", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ], + "signatures": [ + { + "id": 432, + "name": "toSorted", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a copy of an array with its elements sorted." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 4 + } + ], + "parameters": [ + { + "id": 433, + "name": "compareFn", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n" + }, + { + "kind": "code", + "text": "```ts\n[11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]\n```" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 434, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 25 + } + ], + "signatures": [ + { + "id": 435, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 57, + "character": 25 + } + ], + "parameters": [ + { + "id": 436, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + { + "id": 437, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSorted" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSorted" + } + }, + { + "id": 438, + "name": "toSpliced", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + }, + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ], + "signatures": [ + { + "id": 439, + "name": "toSpliced", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The copied array." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 66, + "character": 4 + } + ], + "parameters": [ + { + "id": 440, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 441, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 442, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elements to insert into the copied array in place of the deleted elements." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + }, + { + "id": 443, + "name": "toSpliced", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copies an array and removes elements while returning the remaining elements." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "A copy of the original array with the remaining elements." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 74, + "character": 4 + } + ], + "parameters": [ + { + "id": 444, + "name": "start", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The zero-based location in the array from which to start removing elements." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 445, + "name": "deleteCount", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The number of elements to remove." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toSpliced" + } + }, + { + "id": 163, + "name": "toString", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1322, + "character": 4 + } + ], + "signatures": [ + { + "id": 164, + "name": "toString", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns a string representation of an array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1322, + "character": 4 + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toString" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.toString" + } + }, + { + "id": 203, + "name": "unshift", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1404, + "character": 4 + } + ], + "signatures": [ + { + "id": 204, + "name": "unshift", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Inserts new elements at the start of an array, and returns the new length of the array." + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "line": 1404, + "character": 4 + } + ], + "parameters": [ + { + "id": 205, + "name": "items", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elements to insert at the start of the array." + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.unshift" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.unshift" + } + }, + { + "id": 375, + "name": "values", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 73, + "character": 4 + } + ], + "signatures": [ + { + "id": 376, + "name": "values", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns an iterable of values in the array" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "line": 73, + "character": 4 + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "IterableIterator" + }, + "typeArguments": [ + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "IterableIterator", + "package": "typescript" + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.values" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.values" + } + }, + { + "id": 446, + "name": "with", + "variant": "declaration", + "kind": 2048, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ], + "signatures": [ + { + "id": 447, + "name": "with", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Copies an array, then overwrites the value at the provided index with the\ngiven value. If the index is negative, then it replaces from the end\nof the array." + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "The copied array with the updated value." + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "line": 85, + "character": 4 + } + ], + "parameters": [ + { + "id": 448, + "name": "index", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The index of the value to overwrite. If the index is\nnegative, then it replaces from the end of the array." + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 449, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The value to write into the copied array." + } + ] + }, + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + }, + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.with" + } + } + ], + "inheritedFrom": { + "type": "reference", + "target": -1, + "name": "Array.with" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 452, + 162 + ] + }, + { + "title": "Methods", + "children": [ + 450, + 399, + 172, + 366, + 371, + 214, + 361, + 260, + 334, + 352, + 402, + 420, + 393, + 381, + 241, + 377, + 206, + 177, + 373, + 210, + 250, + 167, + 169, + 278, + 306, + 180, + 182, + 184, + 232, + 188, + 195, + 165, + 429, + 431, + 438, + 163, + 203, + 375, + 446 + ] + } + ], + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L14" + } + ], + "extendedTypes": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array" + }, + "typeArguments": [ + { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + ], + "name": "Array", + "package": "typescript" + } + ] + }, + { + "id": 540, + "name": "OsVersion", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 541, + "name": "name", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L4" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "Windows" + }, + { + "type": "literal", + "value": "MacOS" + }, + { + "type": "literal", + "value": "Android" + }, + { + "type": "literal", + "value": "iOS" + }, + { + "type": "literal", + "value": "WindowsPhone" + }, + { + "type": "literal", + "value": "Debian" + }, + { + "type": "literal", + "value": "WebOS" + } + ] + } + }, + { + "id": 542, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 5, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L5" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 541, + 542 + ] + } + ], + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 3, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L3" + } + ] + }, + { + "id": 157, + "name": "PlainObject", + "variant": "declaration", + "kind": 256, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 10, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L10" + } + ], + "indexSignature": { + "id": 158, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L11" + } + ], + "parameters": [ + { + "id": 159, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 160, + "name": "JSONValue", + "package": "js-cool" + } + } + }, + { + "id": 110, + "name": "RandomStringOptions", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 112, + "name": "charTypes", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L9" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 115, + "name": "RandomStringCharType", + "package": "js-cool" + }, + { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 115, + "name": "RandomStringCharType", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + ] + } + }, + { + "id": 111, + "name": "length", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L8" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 113, + "name": "noConfuse", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1" + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L13" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 114, + "name": "strict", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The generated random string must contain each of the listed character types" + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 17, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 112, + 111, + 113, + 114 + ] + } + ], + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 7, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L7" + } + ] + }, + { + "id": 752, + "name": "SearchKeySet", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 753, + "name": "childName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 754, + "name": "keyName", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 753, + 754 + ] + } + ], + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L1" + } + ], + "indexSignature": { + "id": 755, + "name": "__index", + "variant": "signature", + "kind": 8192, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L4" + } + ], + "parameters": [ + { + "id": 756, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 678, + "name": "Version", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 679, + "name": "major", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 680, + "name": "minor", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 681, + "name": "patch", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 4, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L4" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 682, + "name": "preid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 5, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L5" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 683, + "name": "release", + "variant": "declaration", + "kind": 1024, + "flags": { + "isOptional": true + }, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 6, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 679, + 680, + 681, + 682, + 683 + ] + } + ], + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L1" + } + ] + }, + { + "id": 511, + "name": "WindowSizeObj", + "variant": "declaration", + "kind": 256, + "flags": {}, + "children": [ + { + "id": 513, + "name": "height", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 3, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L3" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 512, + "name": "width", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 2, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 513, + 512 + ] + } + ], + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 1, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L1" + } + ] + }, + { + "id": 901, + "name": "AnyObject", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 1, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L1" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + }, + "extendedBy": [ + { + "type": "reference", + "target": 902, + "name": "AnyFunction" + } + ] + }, + { + "id": 908, + "name": "ArrayOneMore", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 11, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L11" + } + ], + "typeParameters": [ + { + "id": 909, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": 905, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "ArrayOne", + "package": "js-cool" + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + }, + { + "id": 910, + "name": "ArrayTwoMore", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 13, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L13" + } + ], + "typeParameters": [ + { + "id": 914, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reflection", + "declaration": { + "id": 911, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 912, + "name": "0", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L14" + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 913, + "name": "1", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L15" + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 912, + 913 + ] + } + ], + "sources": [ + { + "fileName": "src/types.ts", + "line": 13, + "character": 30, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L13" + } + ] + } + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + }, + { + "id": 715, + "name": "ExtendArrayData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 5, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L5" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 717, + "name": "ExtendData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 9, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L9" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + }, + { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + ] + } + }, + { + "id": 716, + "name": "ExtendObjectData", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 7, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L7" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 160, + "name": "JSONValue", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 7, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L7" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 156, + "name": "Primitive", + "package": "js-cool" + }, + { + "type": "reference", + "target": 157, + "name": "PlainObject", + "package": "js-cool" + }, + { + "type": "reference", + "target": 161, + "name": "JSONArray", + "package": "js-cool" + } + ] + } + }, + { + "id": 927, + "name": "MaybePromiseOrGetter", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 34, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L34" + } + ], + "typeParameters": [ + { + "id": 931, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 928, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 34, + "character": 52, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L34" + } + ], + "signatures": [ + { + "id": 929, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "typeParameter": [ + { + "id": 930, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + ] + } + }, + { + "id": 924, + "name": "OmitPartial", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 30, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L30" + } + ], + "typeParameters": [ + { + "id": 925, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 926, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": -1, + "name": "P", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Partial" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Partial", + "package": "typescript" + }, + { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 918, + "name": "OmitRequired", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 22, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L22" + } + ], + "typeParameters": [ + { + "id": 919, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 920, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": -1, + "name": "P", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Required" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Required", + "package": "typescript" + }, + { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 921, + "name": "PickPartial", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 26, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L26" + } + ], + "typeParameters": [ + { + "id": 922, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 923, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": -1, + "name": "P", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + "optionalModifier": "+" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 915, + "name": "PickRequired", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/types.ts", + "line": 18, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/types.ts#L18" + } + ], + "typeParameters": [ + { + "id": 916, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 917, + "name": "K", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "typeOperator", + "operator": "keyof", + "target": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "mapped", + "parameter": "P", + "parameterType": { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + }, + "templateType": { + "type": "indexedAccess", + "indexType": { + "type": "reference", + "target": -1, + "name": "P", + "refersToTypeParameter": true + }, + "objectType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + "optionalModifier": "-" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Omit" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": -1, + "name": "K", + "refersToTypeParameter": true + } + ], + "name": "Omit", + "package": "typescript" + } + ] + } + }, + { + "id": 156, + "name": "Primitive", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 3, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L3" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "bigint" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "symbol" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 115, + "name": "RandomStringCharType", + "variant": "declaration", + "kind": 2097152, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 5, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L5" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "uppercase" + }, + { + "type": "literal", + "value": "lowercase" + }, + { + "type": "literal", + "value": "number" + }, + { + "type": "literal", + "value": "special" + } + ] + } + }, + { + "id": 932, + "name": "default", + "variant": "declaration", + "kind": 32, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 130, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L130" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 933, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1065, + "name": "CSVToArray", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 156, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L156" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1066, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToArray.ts#L20" + } + ], + "signatures": [ + { + "id": 1067, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to a 2D array." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToArray('a,b\\\\nc,d')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('a;b\\\\\\nc;d', ';')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('col1,col2\\\\\\na,b\\\\\\nc,d', ',', true)\n// `[['a','b'],['c','d']]`.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToArray.ts#L20" + } + ], + "parameters": [ + { + "id": 1068, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1069, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "separator, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + }, + { + "id": 1070, + "name": "omitFirstRow", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the first row is the table header data, default false" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ] + } + } + }, + { + "id": 1077, + "name": "CSVToJSON", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 158, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L158" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1078, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToJSON.ts#L16" + } + ], + "signatures": [ + { + "id": 1079, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToJSON('col1,col2\\\\na,b\\\\\\nc,d')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n\nCSVToJSON('col1;col2\\\\\\na;b\\\\\\nc;d', ';')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- json" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToJSON.ts#L16" + } + ], + "parameters": [ + { + "id": 1080, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1081, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + } + } + }, + { + "id": 1082, + "name": "JSONToCSV", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 159, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L159" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1083, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 17, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/JSONToCSV.ts#L17" + } + ], + "signatures": [ + { + "id": 1084, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])\n// 'a,b\\n \"1\", \"2\"\\n \"3\", \"4\"\\n \"6\",\"\"\\n\"\", \"7\"'\n\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')\n// 'a;b\\n \"1\"; \"2\"\\n \"3\"; \"4\"\\n \"6\";\"\"\\n\"\"; \"7\"'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 17, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/JSONToCSV.ts#L17" + } + ], + "parameters": [ + { + "id": 1085, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1086, + "name": "columns", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the specified columns" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1087, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 941, + "name": "RGBToHex", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 133, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L133" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 942, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/RGBToHex.ts#L14" + } + ], + "signatures": [ + { + "id": 943, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts RGB component values to color codes." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nRGBToHex(255, 165, 1)\n// 'ffa501'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- hex value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/RGBToHex.ts#L14" + } + ], + "parameters": [ + { + "id": 944, + "name": "r", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the 1st value of RGB" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 945, + "name": "g", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 2nd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 946, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 3rd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 947, + "name": "addEvent", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 134, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L134" + } + ], + "type": { + "type": "query", + "queryType": { + "type": "reference", + "target": 655, + "name": "addEvent", + "package": "js-cool" + } + } + }, + { + "id": 948, + "name": "all", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 135, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L135" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 949, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/all.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/all.ts#L15" + } + ], + "signatures": [ + { + "id": 950, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nall([4, 2, 3], x => x > 1)\n// true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/all.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/all.ts#L15" + } + ], + "typeParameter": [ + { + "id": 951, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 952, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + }, + { + "id": 953, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 954, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 136, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L136" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 955, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/any.ts", + "line": 14, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/any.ts#L14" + } + ], + "signatures": [ + { + "id": 956, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nany([0, 1, 2, 0], x => x >= 2)\n// true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/any.ts", + "line": 14, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/any.ts#L14" + } + ], + "typeParameter": [ + { + "id": 957, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 958, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + }, + { + "id": 959, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1165, + "name": "appVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 172, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L172" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1166, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L19" + }, + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L20" + }, + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L21" + }, + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L22" + }, + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L23" + } + ], + "signatures": [ + { + "id": 1167, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L19" + } + ], + "parameters": [ + { + "id": 1168, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1169, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 1170, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1171, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1172, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 1173, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1174, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 1175, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L22" + } + ], + "parameters": [ + { + "id": 1176, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1177, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1178, + "name": "ignoreCase", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1405, + "name": "arrayBufferToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 215, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L215" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1406, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBase64.ts#L8" + } + ], + "signatures": [ + { + "id": 1407, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBase64.ts#L8" + } + ], + "parameters": [ + { + "id": 1408, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 1409, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, default: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'image/png'" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1410, + "name": "arrayBufferToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 216, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L216" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1411, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 1412, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 1413, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 1414, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, default: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'image/png'" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1071, + "name": "arrayToCSV", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 157, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L157" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1072, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 19, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayToCSV.ts#L19" + } + ], + "signatures": [ + { + "id": 1073, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a two-dimensional array to a comma-separated string of values (CSV)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\narrayToCSV([['a', 'b'], ['c', 'd']])\n// '\"a\", \"b\" \\n \"c\", \"d\"'\n\narrayToCSV([['a', 'b'], ['c', 'd']], ';')\n// '\"a\"; \"b\"\\n \"c\"; \"d\"'\n\narrayToCSV([['a', '\"b\" great'], ['c', 3.1415]])\n// '\"a\", \"\"\"b\"\" great\"\\n \"c\",3.1415'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 19, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayToCSV.ts#L19" + } + ], + "typeParameter": [ + { + "id": 1074, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + } + ], + "parameters": [ + { + "id": 1075, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 1076, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1390, + "name": "awaitTo", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 214, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L214" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1391, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L10" + }, + { + "fileName": "src/awaitTo.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L11" + }, + { + "fileName": "src/awaitTo.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L12" + }, + { + "fileName": "src/awaitTo.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L16" + } + ], + "signatures": [ + { + "id": 1392, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- [Error, undefined] | [null, data | data[]]" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L10" + } + ], + "typeParameter": [ + { + "id": 1393, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1394, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1395, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": -1, + "name": "E", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 1396, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L11" + } + ], + "typeParameter": [ + { + "id": 1397, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1398, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1399, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": -1, + "name": "E", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 1400, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L12" + } + ], + "typeParameter": [ + { + "id": 1401, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1402, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1403, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 1404, + "name": "promises", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": -1, + "name": "E", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1415, + "name": "base64ToArrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 217, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L217" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1416, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToArrayBuffer.ts#L9" + } + ], + "signatures": [ + { + "id": 1417, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToArrayBuffer.ts#L9" + } + ], + "parameters": [ + { + "id": 1418, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1419, + "name": "base64ToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 218, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L218" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1420, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToBlob.ts#L9" + } + ], + "signatures": [ + { + "id": 1421, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToBlob.ts#L9" + } + ], + "parameters": [ + { + "id": 1422, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1423, + "name": "base64ToFile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 219, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L219" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1424, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToFile.ts#L10" + } + ], + "signatures": [ + { + "id": 1425, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to file" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToFile.ts#L10" + } + ], + "parameters": [ + { + "id": 1426, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1427, + "name": "fileName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1428, + "name": "blobToArrayBuffer", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 220, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L220" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1429, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToArrayBuffer.ts#L7" + } + ], + "signatures": [ + { + "id": 1430, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToArrayBuffer.ts#L7" + } + ], + "parameters": [ + { + "id": 1431, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1432, + "name": "blobToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 221, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L221" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1433, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToBase64.ts#L7" + } + ], + "signatures": [ + { + "id": 1434, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToBase64.ts#L7" + } + ], + "parameters": [ + { + "id": 1435, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1436, + "name": "blobToUrl", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 222, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L222" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1437, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToUrl.ts#L7" + } + ], + "signatures": [ + { + "id": 1438, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to blobUrl" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blobUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToUrl.ts#L7" + } + ], + "parameters": [ + { + "id": 1439, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1206, + "name": "browserVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 179, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L179" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1207, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 67, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L67" + } + ], + "signatures": [ + { + "id": 1208, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the browser name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\nbrowserVersion() // \\{ name: 'Chrome', version: '114.0.0.0' \\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "BrowserVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 67, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L67" + } + ], + "parameters": [ + { + "id": 1209, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 546, + "name": "BrowserVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1010, + "name": "camel2Dash", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 147, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L147" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1011, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/camel2Dash.ts#L7" + } + ], + "signatures": [ + { + "id": 1012, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts humped strings to -spaced and all lowercase Dash pattern" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/camel2Dash.ts#L7" + } + ], + "parameters": [ + { + "id": 1013, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1014, + "name": "cleanData", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 148, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L148" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1015, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cleanData.ts#L16" + } + ], + "signatures": [ + { + "id": 1016, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Data cleaning methods" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cleaned object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cleanData.ts#L16" + } + ], + "parameters": [ + { + "id": 1017, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the object to be cleaned, must be passed" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1018, + "name": "map", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the data queue to be cleaned, can be passed as array or object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + { + "type": "reference", + "target": 901, + "name": "AnyObject", + "package": "js-cool" + } + ] + } + }, + { + "id": 1019, + "name": "nullFix", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1020, + "name": "clearAttr", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 149, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L149" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1021, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearAttr.ts#L7" + } + ], + "signatures": [ + { + "id": 1022, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove all attributes of HTML tags" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearAttr.ts#L7" + } + ], + "parameters": [ + { + "id": 1023, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1024, + "name": "clearHtml", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 150, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L150" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1025, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearHtml.ts#L7" + } + ], + "signatures": [ + { + "id": 1026, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removing HTML tags" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearHtml.ts#L7" + } + ], + "parameters": [ + { + "id": 1027, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1036, + "name": "client", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 153, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L153" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1037, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 9, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L9" + } + ], + "signatures": [ + { + "id": 1038, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The client method returns a browser judgment result: " + }, + { + "kind": "code", + "text": "`{ ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }`" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "Will be refactored for the next major release" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the common ua match table, if name is passed, then returns whether the terminal matches true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/client.ts", + "line": 9, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L9" + } + ], + "parameters": [ + { + "id": 1039, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + }, + { + "id": 1040, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, pass in a custom ua, default takes the browser's navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "navigator.userAgent" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reflection", + "declaration": { + "id": 1041, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1049, + "name": "ANDROID", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 23, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1043, + "name": "GECKO", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 16, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L16" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1042, + "name": "IE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 15, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L15" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1048, + "name": "IOS", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 22, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L22" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/)" + }, + { + "id": 1051, + "name": "IPAD", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 25, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L25" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1050, + "name": "IPHONE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 24, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1047, + "name": "MOBILE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 20, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/AppleWebKit.*Mobile.*/)" + }, + { + "id": 1045, + "name": "OPERA", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 18, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L18" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1054, + "name": "QQ", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 29, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L29" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExpMatchArray" + }, + "name": "RegExpMatchArray", + "package": "typescript" + } + ] + }, + "defaultValue": "..." + }, + { + "id": 1052, + "name": "QQBROWSER", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 27, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1046, + "name": "TRIDENT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 19, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L19" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1044, + "name": "WEBKIT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 17, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 1053, + "name": "WEIXIN", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 28, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L28" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1049, + 1043, + 1042, + 1048, + 1051, + 1050, + 1047, + 1045, + 1054, + 1052, + 1046, + 1044, + 1053 + ] + } + ], + "sources": [ + { + "fileName": "src/client.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L14" + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "id": 1187, + "name": "compareVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 175, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L175" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1188, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 47, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/compareVersion.ts#L47" + } + ], + "signatures": [ + { + "id": 1189, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Version number size comparison, tag version: rc \\> beta \\> alpha \\> other" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncompareVersion('1.11.0', '1.9.9')\n// => 1: 1=Version 1.11.0 is newer than 1.9.9\n\ncompareVersion('1.11.0', '1.11.0')\n// => 0: 0=Versions 1.11.0 and 1.11.0 are the same\n\ncompareVersion('1.11.0', '1.99.0')\n// => -1: -1=Version 1.11.0 is older than 1.99.0\n\ncompareVersion('1.0.0.0.0.10', '1.0')\n// => -1\n\n// compare tag version: rc > beta > alpha > other\ncompareVersion('1.11.0', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-beta.1', '1.11.0')\n// => -1\n\ncompareVersion('1.11.0-beta.10', '1.11.0-beta.10')\n// => 0\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-rc.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-alpha.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-tag.1')\n// => 1\n\ncompareVersion('1.11.0-release.10', '1.11.0-tag.1')\n// => 1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "1/0/-1" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 47, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/compareVersion.ts#L47" + } + ], + "parameters": [ + { + "id": 1190, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1191, + "name": "compare", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 1 + }, + { + "type": "literal", + "value": -1 + } + ] + } + } + ] + } + } + }, + { + "id": 1055, + "name": "complement", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 154, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L154" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1056, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/complement.ts#L15" + } + ], + "signatures": [ + { + "id": 1057, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the complement of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncomplement([1, 2], [2, '33'], [2]) // [1, '33']\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/complement.ts#L15" + } + ], + "typeParameter": [ + { + "id": 1058, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1059, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1060, + "name": "contains", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 155, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L155" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1061, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/contains.ts#L13" + } + ], + "signatures": [ + { + "id": 1062, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the array contains the specified element" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncontains([1, 2], 2) // true\ncontains([1, 2], 3) // false\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/contains.ts#L13" + } + ], + "parameters": [ + { + "id": 1063, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 1064, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target to find" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1456, + "name": "copy", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 227, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L227" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1457, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/copy.ts#L9" + } + ], + "signatures": [ + { + "id": 1458, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "copy to clipboard" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/copy.ts#L9" + } + ], + "parameters": [ + { + "id": 1459, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ] + } + } + }, + { + "id": 1088, + "name": "cutCHSString", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 160, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L160" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1089, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cutCHSString.ts#L9" + } + ], + "signatures": [ + { + "id": 1090, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept string, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the intercepted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cutCHSString.ts#L9" + } + ], + "parameters": [ + { + "id": 1091, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be intercepted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1092, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "str.length" + }, + { + "id": 1093, + "name": "hasDot", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1094, + "name": "dash2Camel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 161, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L161" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1095, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/dash2Camel.ts#L7" + } + ], + "signatures": [ + { + "id": 1096, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts -spaced and all lowercase Dash patterns to humped strings" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/dash2Camel.ts#L7" + } + ], + "parameters": [ + { + "id": 1097, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1098, + "name": "decodeBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 162, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L162" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1099, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 1100, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 decoding" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 1101, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be decoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1102, + "name": "decodeUtf8", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 163, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L163" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1103, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeUtf8.ts#L7" + } + ], + "signatures": [ + { + "id": 1104, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Decoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeUtf8.ts#L7" + } + ], + "parameters": [ + { + "id": 1105, + "name": "utftext", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 971, + "name": "delCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 139, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L139" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 972, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCache.ts#L6" + } + ], + "signatures": [ + { + "id": 973, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete localStorage" + } + ] + }, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCache.ts#L6" + } + ], + "parameters": [ + { + "id": 974, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1006, + "name": "delCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 146, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L146" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1007, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCookie.ts#L8" + } + ], + "signatures": [ + { + "id": 1008, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete cookie" + } + ] + }, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCookie.ts#L8" + } + ], + "parameters": [ + { + "id": 1009, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 986, + "name": "delSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 142, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L142" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 987, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delSession.ts#L6" + } + ], + "signatures": [ + { + "id": 988, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete sessionStorage" + } + ] + }, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delSession.ts#L6" + } + ], + "parameters": [ + { + "id": 989, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1106, + "name": "delay", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 164, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L164" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1107, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L8" + } + ], + "signatures": [ + { + "id": 1108, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "debounce & throttle" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "class" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L8" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1109, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1110, + "name": "map", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 10, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L10" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "..." + }, + { + "id": 1117, + "name": "destroy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 42, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L42" + } + ], + "signatures": [ + { + "id": 1118, + "name": "destroy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 42, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L42" + } + ], + "parameters": [ + { + "id": 1119, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 1111, + "name": "register", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L11" + } + ], + "signatures": [ + { + "id": 1112, + "name": "register", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L11" + } + ], + "parameters": [ + { + "id": 1113, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1114, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + }, + { + "id": 1115, + "name": "time", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1116, + "name": "boo", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1110 + ] + }, + { + "title": "Methods", + "children": [ + 1117, + 1111 + ] + } + ], + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L9" + } + ] + } + } + } + ] + } + } + }, + { + "id": 935, + "name": "download", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 132, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L132" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 936, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "signatures": [ + { + "id": 937, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Several ways of file downloading:\r\n1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);\r\n2. using a tag download attribute (or js create a tag);\r\n3. browser-recognizable pdf, txt files, back-end compatible with handling attachment;\r\n4. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "parameters": [ + { + "id": 938, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 939, + "name": "filename", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "filename" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 940, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "download type 'href','open','download','request'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1120, + "name": "encodeBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 165, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L165" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1121, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 1122, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "String, number to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 1123, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be encoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1124, + "name": "encodeUtf8", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 166, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L166" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1125, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeUtf8.ts#L7" + } + ], + "signatures": [ + { + "id": 1126, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Encoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the UTF-8 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeUtf8.ts#L7" + } + ], + "parameters": [ + { + "id": 1127, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1028, + "name": "escape", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 151, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L151" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1029, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/escape.ts#L12" + } + ], + "signatures": [ + { + "id": 1030, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Escaping HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nescape('
test
string
')\n// '<div>test<br />string</div>'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/escape.ts#L12" + } + ], + "parameters": [ + { + "id": 1031, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1128, + "name": "extend", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 167, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L167" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1129, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 40, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L40" + }, + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L41" + }, + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L42" + }, + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L43" + }, + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L44" + } + ], + "signatures": [ + { + "id": 1130, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "extend greedy" + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 40, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L40" + } + ], + "parameters": [ + { + "id": 1131, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1132, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1133, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L41" + } + ], + "parameters": [ + { + "id": 1134, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1135, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 1136, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L42" + } + ], + "parameters": [ + { + "id": 1137, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 1138, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 1139, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L43" + } + ], + "parameters": [ + { + "id": 1140, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1141, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1440, + "name": "fileToBase64", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 223, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L223" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1441, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fileToBase64.ts#L9" + } + ], + "signatures": [ + { + "id": 1442, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fileToBase64.ts#L9" + } + ], + "parameters": [ + { + "id": 1443, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1142, + "name": "fillIPv6", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 168, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L168" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1143, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fillIPv6.ts#L14" + } + ], + "signatures": [ + { + "id": 1144, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read full IPv6" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfillIPv6('2409:8005:800::2')\n// '2409:8005:0800:0000:0000:0000:0000:0002'\n\nfillIPv6('2409:8005:800::1c')\n// '2409:8005:0800:0000:0000:0000:0000:001c'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fillIPv6.ts#L14" + } + ], + "parameters": [ + { + "id": 1145, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1264, + "name": "fingerprint", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 188, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L188" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1265, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fingerprint.ts#L9" + } + ], + "signatures": [ + { + "id": 1266, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generating Browser Fingerprints" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- fingerprint" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fingerprint.ts#L9" + } + ], + "parameters": [ + { + "id": 1267, + "name": "domain", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key string, default: location.host" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ] + } + } + }, + { + "id": 1146, + "name": "fixNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 169, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L169" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1147, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fixNumber.ts#L21" + } + ], + "signatures": [ + { + "id": 1148, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept the decimal places, do not fill in the missing 0" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfixNumber('100.888')\n// 100.88\n\nfixNumber('100.8', 2)\n// 100.8\n\nfixNumber('100.8888', 3)\n// 100.888\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fixNumber.ts#L21" + } + ], + "parameters": [ + { + "id": 1149, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of digits to be processed, required" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 1150, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of decimal places to keep, default is 2" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1159, + "name": "getAppVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 171, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L171" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1160, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getAppVersion.ts#L10" + } + ], + "signatures": [ + { + "id": 1161, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version number" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'appVersion' instead" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getAppVersion.ts#L10" + } + ], + "parameters": [ + { + "id": 1162, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1163, + "name": "withApp", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1164, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default is navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1179, + "name": "getCHSLength", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 173, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L173" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1180, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCHSLength.ts#L12" + } + ], + "signatures": [ + { + "id": 1181, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the length of the text, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCHSLength('测试')\n// 2\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- length" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCHSLength.ts#L12" + } + ], + "parameters": [ + { + "id": 1182, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 960, + "name": "getCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 137, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L137" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 961, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCache.ts#L23" + } + ], + "signatures": [ + { + "id": 962, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2)\nsetCache('data3', data3)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\ngetCache('data3') // null\n\ngetCache('data4') // null\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- data, if it's an object, it's also an object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCache.ts#L23" + } + ], + "parameters": [ + { + "id": 963, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 990, + "name": "getCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 143, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L143" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 991, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookie.ts#L12" + } + ], + "signatures": [ + { + "id": 992, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read cookie by name" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookie('data1')\n// 100\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookie.ts#L12" + } + ], + "parameters": [ + { + "id": 993, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 994, + "name": "getCookies", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 144, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L144" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 995, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookies.ts#L11" + } + ], + "signatures": [ + { + "id": 996, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read all cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookies()\n// \\{ token: 'xxx', name: 'saqqdy' \\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie values" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookies.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1183, + "name": "getDirParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 174, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L174" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1184, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L13" + } + ], + "signatures": [ + { + "id": 1185, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get directory form URL parameters" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "It will be refactored and renamed getDirParams in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- parameter object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L13" + } + ], + "parameters": [ + { + "id": 1186, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 566, + "name": "DirParamType", + "package": "js-cool" + } + } + ] + } + } + }, + { + "id": 1276, + "name": "getFileType", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 191, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L191" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1277, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L18" + } + ], + "signatures": [ + { + "id": 1278, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine file type based on link suffix" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetFileType('/name.png')\n// { \"suffix\": \"png\", \"type\": \"image\" }\n\ngetFileType('/name.PDF')\n// { \"suffix\": \"pdf\", \"type\": \"pdf\" }\n\ngetFileType('/name.xyz')\n// { \"suffix\": \"xyz\", \"type\": \"other\" }\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L18" + } + ], + "parameters": [ + { + "id": 1279, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1280, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1281, + "name": "suffix", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 47, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L47" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1282, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 48, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L48" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "audio" + }, + { + "type": "literal", + "value": "video" + }, + { + "type": "literal", + "value": "image" + }, + { + "type": "literal", + "value": "other" + }, + { + "type": "literal", + "value": "word" + }, + { + "type": "literal", + "value": "txt" + }, + { + "type": "literal", + "value": "excel" + }, + { + "type": "literal", + "value": "pdf" + }, + { + "type": "literal", + "value": "ppt" + }, + { + "type": "literal", + "value": "zip" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1281, + 1282 + ] + } + ], + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 46, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L46" + } + ] + } + } + } + ] + } + } + }, + { + "id": 1192, + "name": "getNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 176, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L176" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1193, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getNumber.ts#L15" + } + ], + "signatures": [ + { + "id": 1194, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the number in the string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetNumber('Chrome123.33')\n// '123.33'.\n\ngetNumber('234test.88')\n// '234.88'.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a pure numeric string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getNumber.ts#L15" + } + ], + "parameters": [ + { + "id": 1195, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in a string with a number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1196, + "name": "getOsVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 177, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L177" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1197, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getOsVersion.ts#L20" + } + ], + "signatures": [ + { + "id": 1198, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the phone system version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\ngetOsVersion('iPhone')\n// '13.2.3'\n\ngetOsVersion('iPhone', true)\n// 'iPhone/13.2.3'\n```" + } + ] + }, + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'osVersion' instead" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getOsVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 1199, + "name": "osName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "system type string Android, iPod, iWatch or iPhone" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1200, + "name": "withOS", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1201, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default takes navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1226, + "name": "getProperty", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 182, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L182" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1227, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "signatures": [ + { + "id": 1228, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get array, object property values based on path string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n }]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "parameters": [ + { + "id": 1229, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1230, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "query target, can pass function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 1231, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "signatures": [ + { + "id": 1232, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1210, + "name": "getQueryParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 180, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L180" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1211, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L19" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L20" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L21" + } + ], + "signatures": [ + { + "id": 1212, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single query parameter (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L19" + } + ], + "parameters": [ + { + "id": 1213, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 1214, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L20" + } + ], + "parameters": [ + { + "id": 1215, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1216, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + }, + { + "id": 1217, + "name": "getQueryParams", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 181, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L181" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1218, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L22" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L23" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L24" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L25" + } + ], + "signatures": [ + { + "id": 1219, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L22" + } + ], + "parameters": [ + { + "id": 1220, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1221, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L23" + } + ], + "parameters": [ + { + "id": 1222, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1223, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L24" + } + ], + "parameters": [ + { + "id": 1224, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1225, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1268, + "name": "getScrollPosition", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 189, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L189" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1269, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getScrollPosition.ts#L7" + } + ], + "signatures": [ + { + "id": 1270, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get slide to top and bottom return 'top' 'bottom', recommend using limit flow" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- position" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getScrollPosition.ts#L7" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": "bottom" + }, + { + "type": "literal", + "value": "top" + } + ] + } + } + ] + } + } + }, + { + "id": 975, + "name": "getSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 140, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L140" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 976, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getSession.ts#L23" + } + ], + "signatures": [ + { + "id": 977, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2)\nsetSession('data3', data3)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\ngetSession('data3') // null\n\ngetSession('data4') // null\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- sessionStorage" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getSession.ts#L23" + } + ], + "parameters": [ + { + "id": 978, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 1271, + "name": "getType", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 190, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L190" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1272, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getType.ts#L7" + } + ], + "signatures": [ + { + "id": 1273, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the target type" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "type" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getType.ts#L7" + } + ], + "typeParameter": [ + { + "id": 1274, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1275, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "string" + }, + { + "type": "literal", + "value": "number" + }, + { + "type": "literal", + "value": "bigint" + }, + { + "type": "literal", + "value": "boolean" + }, + { + "type": "literal", + "value": "symbol" + }, + { + "type": "literal", + "value": "undefined" + }, + { + "type": "literal", + "value": "object" + }, + { + "type": "literal", + "value": "function" + }, + { + "type": "literal", + "value": "window" + }, + { + "type": "literal", + "value": "error" + }, + { + "type": "literal", + "value": "promise" + }, + { + "type": "literal", + "value": "math" + }, + { + "type": "literal", + "value": "document" + }, + { + "type": "literal", + "value": "navigator" + }, + { + "type": "literal", + "value": "global" + }, + { + "type": "literal", + "value": "null" + }, + { + "type": "literal", + "value": "array" + }, + { + "type": "literal", + "value": "date" + }, + { + "type": "literal", + "value": "regexp" + } + ] + } + } + ] + } + } + }, + { + "id": 1295, + "name": "getUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 194, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L194" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1296, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L19" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L20" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L21" + } + ], + "signatures": [ + { + "id": 1297, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single URL parameter (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L19" + } + ], + "parameters": [ + { + "id": 1298, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 1299, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L20" + } + ], + "parameters": [ + { + "id": 1300, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1301, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + } + } + }, + { + "id": 1302, + "name": "getUrlParams", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 195, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L195" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1303, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L22" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L23" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L24" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L25" + } + ], + "signatures": [ + { + "id": 1304, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L22" + } + ], + "parameters": [ + { + "id": 1305, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1306, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L23" + } + ], + "parameters": [ + { + "id": 1307, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 1308, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L24" + } + ], + "parameters": [ + { + "id": 1309, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1310, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1359, + "name": "inBrowser", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 207, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L207" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1360, + "name": "inNodeJs", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 208, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L208" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 1311, + "name": "intersect", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 196, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L196" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1312, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/intersect.ts#L13" + } + ], + "signatures": [ + { + "id": 1313, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the intersection of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nintersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/intersect.ts#L13" + } + ], + "typeParameter": [ + { + "id": 1314, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1315, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1343, + "name": "isArray", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 203, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L203" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1344, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isArray.ts#L11" + } + ], + "signatures": [ + { + "id": 1345, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is an array" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisArray([]) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isArray.ts#L11" + } + ], + "parameters": [ + { + "id": 1346, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + } + ] + } + } + }, + { + "id": 1356, + "name": "isDarkMode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 206, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L206" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1357, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDarkMode.ts#L10" + } + ], + "signatures": [ + { + "id": 1358, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if dark color mode" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisDarkMode() // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDarkMode.ts#L10" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1316, + "name": "isDigitals", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 197, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L197" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1317, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDigitals.ts#L8" + } + ], + "signatures": [ + { + "id": 1318, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not it is a string consisting of numbers" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDigitals.ts#L8" + } + ], + "parameters": [ + { + "id": 1319, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be tested" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1328, + "name": "isEqual", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 200, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L200" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1329, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 122, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isEqual.ts#L122" + } + ], + "signatures": [ + { + "id": 1330, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if 2 objects are equal" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisEqual({ a: 22, b: {} }, { b: {}, a: 22 })\n// true\n\nisEqual([1, 2], [2, 1])\n// false\n\nisEqual(NaN, NaN)\n// true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a equals to b" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 122, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isEqual.ts#L122" + } + ], + "typeParameter": [ + { + "id": 1331, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 1332, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 1333, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 1334, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "P", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1320, + "name": "isExitsFunction", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 198, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L198" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1321, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsFunction.ts#L14" + } + ], + "signatures": [ + { + "id": 1322, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified function" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsFunction('test') // false\nisExitsFunction('console.log') // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsFunction.ts#L14" + } + ], + "parameters": [ + { + "id": 1323, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "incoming function name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1324, + "name": "isExitsVariable", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 199, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L199" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1325, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsVariable.ts#L12" + } + ], + "signatures": [ + { + "id": 1326, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified variable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsVariable('test') // false\nisExitsVariable('window') // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsVariable.ts#L12" + } + ], + "parameters": [ + { + "id": 1327, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "variable name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1347, + "name": "isIterable", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 204, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L204" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1348, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isIterable.ts#L11" + } + ], + "signatures": [ + { + "id": 1349, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is iterable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisIterable([]) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isIterable.ts#L11" + } + ], + "typeParameter": [ + { + "id": 1350, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 1351, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + ] + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1339, + "name": "isObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 202, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L202" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1340, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isObject.ts#L13" + } + ], + "signatures": [ + { + "id": 1341, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisObject({}) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isObject.ts#L13" + } + ], + "parameters": [ + { + "id": 1342, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Object" + }, + "name": "Object", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1352, + "name": "isPlainObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 205, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L205" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1353, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L27" + } + ], + "signatures": [ + { + "id": 1354, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an plain object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisPlainObject({}) // true\nisPlainObject(window) // false\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is plain Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L27" + } + ], + "parameters": [ + { + "id": 1355, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": 157, + "name": "PlainObject", + "package": "js-cool" + } + } + } + ] + } + } + }, + { + "id": 1335, + "name": "isWindow", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 201, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L201" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1336, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isWindow.ts#L14" + } + ], + "signatures": [ + { + "id": 1337, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an window object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisWindow({}) // false\nisWindow(window) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Window" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isWindow.ts#L14" + } + ], + "parameters": [ + { + "id": 1338, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Window" + }, + "name": "Window", + "package": "typescript" + } + } + } + ] + } + } + }, + { + "id": 1537, + "name": "loadSource", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 241, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L241" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1538, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "signatures": [ + { + "id": 1539, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of resources, support js, images, css links, css style strings" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true|false|imgUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "parameters": [ + { + "id": 1540, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link to the resource, type must be passed when passing in styleString" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1541, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "SourceOptions" + }, + "name": "SourceOptions", + "package": "load-source" + } + ] + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1151, + "name": "mapTemplate", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 170, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L170" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1152, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L27" + } + ], + "signatures": [ + { + "id": 1153, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst tmp = \"My name is ${name}, I'm ${age} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n\nmapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))\n// My name is saqqdy, I'm 28 years old.\n\nconst tmp = \"My name is {{name}}, I'm {{age}} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L27" + } + ], + "parameters": [ + { + "id": 1154, + "name": "tmp", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1155, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template data of map function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 1156, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 29, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L29" + } + ], + "signatures": [ + { + "id": 1157, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 29, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L29" + } + ], + "parameters": [ + { + "id": 1158, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1361, + "name": "minus", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 209, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L209" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1362, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/minus.ts#L14" + } + ], + "signatures": [ + { + "id": 1363, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nminus([1, 2], [2, '33'], [2, 4]) // [1]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/minus.ts#L14" + } + ], + "typeParameter": [ + { + "id": 1364, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1365, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1542, + "name": "mountCss", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 242, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L242" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1543, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 1544, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css link resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 1545, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1546, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "CssOptions" + }, + "name": "CssOptions", + "package": "mount-css" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1547, + "name": "mountImg", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 243, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L243" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1548, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 1549, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of image resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 1550, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1551, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "ImgOptions" + }, + "name": "ImgOptions", + "package": "mount-image" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1552, + "name": "mountJs", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 244, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L244" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1553, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "signatures": [ + { + "id": 1554, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of js linked resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "parameters": [ + { + "id": 1555, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1556, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "JsOptions" + }, + "name": "JsOptions", + "package": "mount-script" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1557, + "name": "mountStyle", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 245, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L245" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1558, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "signatures": [ + { + "id": 1559, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css styles" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- results" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "parameters": [ + { + "id": 1560, + "name": "css", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1561, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "StyleOptions" + }, + "name": "StyleOptions", + "package": "mount-style" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1366, + "name": "nextIndex", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 210, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L210" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1367, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextIndex.ts#L31" + } + ], + "signatures": [ + { + "id": 1368, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Return the next zIndex value" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextIndex()\n// 1\n\nnextIndex(1000)\n// 1001\n\nnextIndex(10, 100)\n// 100\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextIndex.ts#L31" + } + ], + "parameters": [ + { + "id": 1369, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, minimum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "5000" + }, + { + "id": 1370, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, maximum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10000" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1371, + "name": "nextVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 211, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L211" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1372, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L25" + } + ], + "signatures": [ + { + "id": 1373, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextVersion('1.2.33') // 1.2.34\n\nnextVersion('1.2.33', 'major') // 2.0.0\n\nnextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new version" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L25" + } + ], + "parameters": [ + { + "id": 1374, + "name": "version", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "version(like: 1.0.0)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1375, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, version type" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "major" + }, + { + "type": "literal", + "value": "minor" + }, + { + "type": "literal", + "value": "patch" + }, + { + "type": "literal", + "value": "premajor" + }, + { + "type": "literal", + "value": "preminor" + }, + { + "type": "literal", + "value": "prepatch" + }, + { + "type": "literal", + "value": "prerelease" + } + ] + } + }, + { + "id": 1376, + "name": "preid", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, prerelease id" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1452, + "name": "openUrl", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 226, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L226" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1453, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/openUrl.ts#L6" + } + ], + "signatures": [ + { + "id": 1454, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Open link in new tab (file jump download if browser can't parse)" + } + ] + }, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/openUrl.ts#L6" + } + ], + "parameters": [ + { + "id": 1455, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1202, + "name": "osVersion", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 178, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L178" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1203, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L35" + } + ], + "signatures": [ + { + "id": 1204, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the system name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.3' \\}\n\n// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.2.3' \\}\n\n// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'MacOS', version: '10.15.7' \\}\n\n// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: '10.0' \\}\n\n// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: 'XP' \\}\n\n// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'\nosVersion() // \\{ name: 'WindowsPhone', version: '10.0' \\}\n\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "OsVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L35" + } + ], + "parameters": [ + { + "id": 1205, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 540, + "name": "OsVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + } + } + }, + { + "id": 1283, + "name": "parseUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 192, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L192" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1284, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/parseUrlParam.ts#L18" + } + ], + "signatures": [ + { + "id": 1285, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parse url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')\n// \\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key5\":\"NaN\",\"key6\":\"10.888\",\"key7\":\"Infinity\",\"key8\":\"test\"\\}\n\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)\n// \\{\"key1\":100,\"key2\":true,\"key3\":null,\"key5\":NaN,\"key6\":10.888,\"key7\":Infinity,\"key8\":\"test\"\\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/parseUrlParam.ts#L18" + } + ], + "parameters": [ + { + "id": 1286, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url string (like: ?key1=value1&key2=value2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1287, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1460, + "name": "pattern", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 228, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L228" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1461, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 1462, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L8" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1477, + "name": "array", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 25, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L25" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1476, + "name": "arrjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 24, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L24" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1471, + "name": "chinese", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 19, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L19" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1469, + "name": "email", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L15" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1468, + "name": "float", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L14" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1478, + "name": "isjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 26, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L26" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1475, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 23, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L23" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1470, + "name": "mobile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 18, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L18" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1463, + "name": "number", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L9" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1474, + "name": "pass", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 22, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L22" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1465, + "name": "postcode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1473, + "name": "qq", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 21, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L21" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1464, + "name": "string", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 10, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L10" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1472, + "name": "tel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 20, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L20" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1479, + "name": "textarea", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 27, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L27" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1466, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 12, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 1467, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L13" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1462, + 1477, + 1476, + 1471, + 1469, + 1468, + 1478, + 1475, + 1470, + 1463, + 1474, + 1465, + 1473, + 1464, + 1472, + 1479, + 1466, + 1467 + ] + } + ], + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 7, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L7" + } + ] + } + } + }, + { + "id": 1562, + "name": "preloader", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 246, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L246" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1563, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L6" + }, + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L7" + }, + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L8" + } + ], + "signatures": [ + { + "id": 1564, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Image preloading" + } + ] + }, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L6" + } + ], + "parameters": [ + { + "id": 1565, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "images url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + }, + { + "id": 1566, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L7" + } + ], + "parameters": [ + { + "id": 1567, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1377, + "name": "promiseFactory", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 212, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L212" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1378, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L31" + } + ], + "signatures": [ + { + "id": 1379, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert an object to a promise like api" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nimport { promiseFactory, waiting } from 'js-cool'\n\nfunction promise() {\n const stats = {\n value: 100\n }\n\n const resolver = () =>\n new Promise(resolve =>\n waiting(2000).then(() => {\n stats.value = 200\n resolve(stats)\n })\n )\n\n return promiseFactory(stats, resolver)\n}\n\nconst res = promise() // res => 100\nconst res = await promise() // res => 200\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L31" + } + ], + "typeParameter": [ + { + "id": 1380, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "parameters": [ + { + "id": 1381, + "name": "original", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "original object" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 1382, + "name": "resolver", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resolver function" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 1383, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 33, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L33" + } + ], + "signatures": [ + { + "id": 1384, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 33, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L33" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "PromiseLike" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "PromiseLike", + "package": "typescript" + } + ] + } + } + ] + } + } + }, + { + "id": 1233, + "name": "randomColor", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 183, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L183" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1234, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomColor.ts#L6" + } + ], + "signatures": [ + { + "id": 1235, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate random hexadecimal colors" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomColor.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1236, + "name": "randomNumber", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 184, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L184" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1237, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumber.ts#L16" + } + ], + "signatures": [ + { + "id": 1238, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random integer" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumber()\n// 8\n\nrandomNumber(0.1, 0.9)\n// 0.8\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumber.ts#L16" + } + ], + "parameters": [ + { + "id": 1239, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the minimum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + }, + { + "id": 1240, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the maximum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + } + } + }, + { + "id": 1241, + "name": "randomNumbers", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 185, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L185" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1242, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumbers.ts#L23" + } + ], + "signatures": [ + { + "id": 1243, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate n random integers that sum to a fixed sum" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumbers()\n// [8]\n\nrandomNumbers(4, 5)\n// [1, 1, 2, 1]\n\nrandomNumbers(4, 5, false)\n// [0, 1, 2, 2]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- numbers" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumbers.ts#L23" + } + ], + "parameters": [ + { + "id": 1244, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of generated integers, default: 1" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1245, + "name": "sum", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sum of generated integers, default: 100" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1246, + "name": "noZero", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ] + } + } + }, + { + "id": 1247, + "name": "randomString", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 186, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L186" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1248, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 77, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L77" + }, + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L78" + }, + { + "fileName": "src/randomString.ts", + "line": 82, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L82" + } + ], + "signatures": [ + { + "id": 1249, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n\tlength: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n\tcharTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n\tlength: 16,\n\tcharTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n\tlength: 16,\n\tnoConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n\tlength: 16,\n\tstrict: true\n})\n// PFYAPD5KFqOHIADL\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 77, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L77" + } + ], + "parameters": [ + { + "id": 1250, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the length of the random string that needs to be obtained" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1251, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, randomString options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 110, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1252, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L78" + } + ], + "parameters": [ + { + "id": 1253, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 110, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + }, + { + "id": 1254, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 110, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1480, + "name": "removeEvent", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 229, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L229" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1481, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/removeEvent.ts#L10" + } + ], + "signatures": [ + { + "id": 1482, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "removeEvent removes the event delegate created by addEvent" + } + ] + }, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/removeEvent.ts#L10" + } + ], + "parameters": [ + { + "id": 1483, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 901, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 1484, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of the event. No need to add on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1485, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback method." + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1486, + "name": "searchObject", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 230, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L230" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1487, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L16" + } + ], + "signatures": [ + { + "id": 1488, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object depth lookup" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the queried array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L16" + } + ], + "parameters": [ + { + "id": 1489, + "name": "tree", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + }, + { + "id": 1490, + "name": "expression", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "required Query method" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1491, + "name": "keySet", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Default subclass name, query name" + } + ] + }, + "type": { + "type": "reference", + "target": 752, + "name": "SearchKeySet", + "package": "js-cool" + } + }, + { + "id": 1492, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Number of lookups, if not passed, query all" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + } + } + }, + { + "id": 964, + "name": "setCache", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 138, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L138" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 965, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCache.ts#L24" + } + ], + "signatures": [ + { + "id": 966, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetCache('boolean', true)\n\n// set object\nsetCache('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetCache('number', 666, 20)\n```" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCache.ts#L24" + } + ], + "typeParameter": [ + { + "id": 967, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 968, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 969, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache data, can be passed directly into Object" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 970, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache time (seconds)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 997, + "name": "setCookie", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 145, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L145" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 998, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCookie.ts#L21" + } + ], + "signatures": [ + { + "id": 999, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "setCookie method for writing cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// expires in 86400 seconds\nsetCookie('token', 'xxxxxx')\n\n// set to path\nsetCookie('token', 'xxxxxx', 20, '/app')\n\n// enable samesite\nsetCookie('number', 666, 20, '/', false)\n```" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCookie.ts#L21" + } + ], + "typeParameter": [ + { + "id": 1000, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "parameters": [ + { + "id": 1001, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1002, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 1003, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie validity default 1 day" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 1004, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "path, default '/'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'/'" + }, + { + "id": 1005, + "name": "samesite", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SameSite, default true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1493, + "name": "setProperty", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 231, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L231" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1494, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "signatures": [ + { + "id": 1495, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set array, object property values based on path strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n }]\n}\n\nsetProperty(target, 'a') // 1\n\nsetProperty(target, 'b[0].c') // 2\n\nsetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the corresponding value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "parameters": [ + { + "id": 1496, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 1497, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "set target, can pass function, 'a' | 'a[1].c'" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 1498, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "signatures": [ + { + "id": 1499, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 1500, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + } + }, + { + "id": 979, + "name": "setSession", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 141, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L141" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 980, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setSession.ts#L24" + } + ], + "signatures": [ + { + "id": 981, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Write sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetSession('boolean', true)\n\n// set object\nsetSession('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetSession('number', 666, 20)\n```" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setSession.ts#L24" + } + ], + "typeParameter": [ + { + "id": 982, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 983, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 984, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 985, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the valid time" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + } + }, + { + "id": 1255, + "name": "shuffle", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 187, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L187" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1256, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L22" + }, + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L23" + }, + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L24" + } + ], + "signatures": [ + { + "id": 1257, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "shuffling algorithm, Reordering arrays or strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1,2,3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L22" + } + ], + "parameters": [ + { + "id": 1258, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1259, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "new array or string length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 1260, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L23" + } + ], + "typeParameter": [ + { + "id": 1261, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "parameters": [ + { + "id": 1262, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 1263, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + } + }, + { + "id": 1288, + "name": "spliceUrlParam", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 193, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L193" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1289, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/spliceUrlParam.ts#L20" + } + ], + "signatures": [ + { + "id": 1290, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "splice url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key4\":\"测试\"\\}')\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95\n\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\"\\}', true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\"\\}', true, false)\n// key1=100&key2=true&key3=&key4=\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/spliceUrlParam.ts#L20" + } + ], + "typeParameter": [ + { + "id": 1291, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 1292, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "json object" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 1293, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a null value type (null/undefined/) to an empty string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + }, + { + "id": 1294, + "name": "withQuestionsMark", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Splicing a question mark, default: true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1501, + "name": "stopBubble", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 232, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L232" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1502, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopBubble.ts#L7" + } + ], + "signatures": [ + { + "id": 1503, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block bubbling" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopBubble.ts#L7" + } + ], + "parameters": [ + { + "id": 1504, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1505, + "name": "stopDefault", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 233, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L233" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1506, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopDefault.ts#L7" + } + ], + "signatures": [ + { + "id": 1507, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block default events" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopDefault.ts#L7" + } + ], + "parameters": [ + { + "id": 1508, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + } + } + }, + { + "id": 1444, + "name": "svgToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 224, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L224" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1445, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/svgToBlob.ts#L7" + } + ], + "signatures": [ + { + "id": 1446, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/svgToBlob.ts#L7" + } + ], + "parameters": [ + { + "id": 1447, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1509, + "name": "toThousands", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 234, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L234" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1510, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/toThousands.ts#L18" + } + ], + "signatures": [ + { + "id": 1511, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Digital thousandths division" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ntoThousands(10000000222)\n// 10,000,000,222\n\ntoThousands(100.2232323)\n// 100.2232323\n\ntoThousands(null)\n// ''\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the split string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/toThousands.ts#L18" + } + ], + "parameters": [ + { + "id": 1512, + "name": "num", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input number" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1513, + "name": "trim", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 235, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L235" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1514, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/trim.ts#L8" + } + ], + "signatures": [ + { + "id": 1515, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove leading and trailing spaces from strings" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/trim.ts#L8" + } + ], + "parameters": [ + { + "id": 1516, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1032, + "name": "unescape", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 152, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L152" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1033, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unescape.ts#L12" + } + ], + "signatures": [ + { + "id": 1034, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restore HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunescape('<div>test<br />string</div>')\n// '
test
string
'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unescape.ts#L12" + } + ], + "parameters": [ + { + "id": 1035, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1517, + "name": "union", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 236, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L236" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1518, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/union.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/union.ts#L18" + } + ], + "signatures": [ + { + "id": 1519, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the concatenation of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunion([1, 2], [2, '33'])\n// [1, 2, '33']\n\nunion([1, 2], [2, '33'], [1, 11, 2, '2'])\n// [ 1, 2, '33', 11, '2' ]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/union.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/union.ts#L18" + } + ], + "typeParameter": [ + { + "id": 1520, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1521, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1522, + "name": "unique", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 237, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L237" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1523, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unique.ts#L13" + } + ], + "signatures": [ + { + "id": 1524, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array de-duplication" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunique([1, 2, 2, '33']) // [1, 2, '33']\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unique.ts#L13" + } + ], + "typeParameter": [ + { + "id": 1525, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 1526, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "array data" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + } + } + }, + { + "id": 1527, + "name": "upperFirst", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 238, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L238" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1528, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/upperFirst.ts#L11" + } + ], + "signatures": [ + { + "id": 1529, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "First letter capitalized" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nupperFirst('saqqdy') // Saqqdy\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/upperFirst.ts#L11" + } + ], + "parameters": [ + { + "id": 1530, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 1448, + "name": "urlToBlob", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 225, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L225" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1449, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/urlToBlob.ts#L7" + } + ], + "signatures": [ + { + "id": 1450, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/urlToBlob.ts#L7" + } + ], + "parameters": [ + { + "id": 1451, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1531, + "name": "uuid", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 239, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L239" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1532, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 10, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/uuid.ts#L10" + } + ], + "signatures": [ + { + "id": 1533, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Browser-side generation of uuid, using v4 method" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nuuid() // '4222fcfe-5721-4632-bede-6043885be57d'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- uuid" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 10, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/uuid.ts#L10" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + }, + { + "id": 934, + "name": "version", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 131, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L131" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'__VERSION__'" + }, + { + "id": 1385, + "name": "waiting", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 213, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L213" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1386, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 7, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/waiting.ts#L7" + } + ], + "signatures": [ + { + "id": 1387, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting for a while" + } + ] + }, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 7, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/waiting.ts#L7" + } + ], + "parameters": [ + { + "id": 1388, + "name": "milliseconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting time (milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 1389, + "name": "throwOnTimeout", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "throw on timeout" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + }, + { + "id": 1534, + "name": "windowSize", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 240, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L240" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 1535, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L15" + } + ], + "signatures": [ + { + "id": 1536, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "windowSize to get the window size" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nwindowSize() // { width: 1280, height: 800 }\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the width and height" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L15" + } + ], + "type": { + "type": "reference", + "target": 511, + "name": "WindowSizeObj", + "package": "js-cool" + } + } + ] + } + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 1065, + 1077, + 1082, + 941, + 947, + 948, + 954, + 1165, + 1405, + 1410, + 1071, + 1390, + 1415, + 1419, + 1423, + 1428, + 1432, + 1436, + 1206, + 1010, + 1014, + 1020, + 1024, + 1036, + 1187, + 1055, + 1060, + 1456, + 1088, + 1094, + 1098, + 1102, + 971, + 1006, + 986, + 1106, + 935, + 1120, + 1124, + 1028, + 1128, + 1440, + 1142, + 1264, + 1146, + 1159, + 1179, + 960, + 990, + 994, + 1183, + 1276, + 1192, + 1196, + 1226, + 1210, + 1217, + 1268, + 975, + 1271, + 1295, + 1302, + 1359, + 1360, + 1311, + 1343, + 1356, + 1316, + 1328, + 1320, + 1324, + 1347, + 1339, + 1352, + 1335, + 1537, + 1151, + 1361, + 1542, + 1547, + 1552, + 1557, + 1366, + 1371, + 1452, + 1202, + 1283, + 1460, + 1562, + 1377, + 1233, + 1236, + 1241, + 1247, + 1480, + 1486, + 964, + 997, + 1493, + 979, + 1255, + 1288, + 1501, + 1505, + 1444, + 1509, + 1513, + 1032, + 1517, + 1522, + 1527, + 1448, + 1531, + 934, + 1385, + 1534 + ] + } + ], + "sources": [ + { + "fileName": "src/index.default.ts", + "line": 130, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.default.ts#L130" + } + ] + } + } + }, + { + "id": 507, + "name": "inBrowser", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is running on the browser side" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/inBrowser.ts", + "line": 6, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/inBrowser.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 508, + "name": "inNodeJs", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is running on node.js" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/inNodeJs.ts", + "line": 6, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/inNodeJs.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 45, + "name": "pattern", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pattern returns some common regulars: any, arrjson, chinese, email, float, isjson, json, mobile, number, pass, postcode, qq, string, tel, textarea, url, username" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "It will be refactored and renamed patterns in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 7, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L7" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 46, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 47, + "name": "any", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 8, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L8" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 62, + "name": "array", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 25, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L25" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 61, + "name": "arrjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 24, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L24" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 56, + "name": "chinese", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 19, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L19" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 54, + "name": "email", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 15, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L15" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 53, + "name": "float", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 14, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L14" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 63, + "name": "isjson", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 26, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L26" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 60, + "name": "json", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 23, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L23" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 55, + "name": "mobile", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 18, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L18" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 48, + "name": "number", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 9, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L9" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 59, + "name": "pass", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 22, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L22" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 50, + "name": "postcode", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 11, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 58, + "name": "qq", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 21, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L21" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 49, + "name": "string", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 10, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L10" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 57, + "name": "tel", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 20, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L20" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 64, + "name": "textarea", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 27, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L27" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 51, + "name": "url", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 12, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L12" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + }, + { + "id": 52, + "name": "username", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 13, + "character": 1, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L13" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExp" + }, + "name": "RegExp", + "package": "typescript" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 47, + 62, + 61, + 56, + 54, + 53, + 63, + 60, + 55, + 48, + 59, + 50, + 58, + 49, + 57, + 64, + 51, + 52 + ] + } + ], + "sources": [ + { + "fileName": "src/pattern.ts", + "line": 7, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/pattern.ts#L7" + } + ] + } + }, + "defaultValue": "..." + }, + { + "id": 1, + "name": "version", + "variant": "declaration", + "kind": 32, + "flags": { + "isConst": true + }, + "sources": [ + { + "fileName": "src/index.ts", + "line": 158, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/index.ts#L158" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "..." + }, + { + "id": 778, + "name": "CSVToArray", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 20, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToArray.ts#L20" + } + ], + "signatures": [ + { + "id": 779, + "name": "CSVToArray", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to a 2D array." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToArray('a,b\\\\nc,d')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('a;b\\\\\\nc;d', ';')\n// `[['a','b'],['c','d']]`.\n\nCSVToArray('col1,col2\\\\\\na,b\\\\\\nc,d', ',', true)\n// `[['a','b'],['c','d']]`.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToArray.ts", + "line": 20, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToArray.ts#L20" + } + ], + "parameters": [ + { + "id": 780, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 781, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "separator, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + }, + { + "id": 782, + "name": "omitFirstRow", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the first row is the table header data, default false" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + } + ] + }, + { + "id": 788, + "name": "CSVToJSON", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToJSON.ts#L16" + } + ], + "signatures": [ + { + "id": 789, + "name": "CSVToJSON", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nCSVToJSON('col1,col2\\\\na,b\\\\\\nc,d')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n\nCSVToJSON('col1;col2\\\\\\na;b\\\\\\nc;d', ';')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- json" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/CSVToJSON.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/CSVToJSON.ts#L16" + } + ], + "parameters": [ + { + "id": 790, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "csv data" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 791, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + }, + { + "id": 792, + "name": "JSONToCSV", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 17, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/JSONToCSV.ts#L17" + } + ], + "signatures": [ + { + "id": 793, + "name": "JSONToCSV", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])\n// 'a,b\\n \"1\", \"2\"\\n \"3\", \"4\"\\n \"6\",\"\"\\n\"\", \"7\"'\n\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')\n// 'a;b\\n \"1\"; \"2\"\\n \"3\"; \"4\"\\n \"6\";\"\"\\n\"\"; \"7\"'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/JSONToCSV.ts", + "line": 17, + "character": 18, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/JSONToCSV.ts#L17" + } + ], + "parameters": [ + { + "id": 794, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 795, + "name": "columns", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the specified columns" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 796, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 797, + "name": "RGBToHex", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 14, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/RGBToHex.ts#L14" + } + ], + "signatures": [ + { + "id": 798, + "name": "RGBToHex", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts RGB component values to color codes." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nRGBToHex(255, 165, 1)\n// 'ffa501'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- hex value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/RGBToHex.ts", + "line": 14, + "character": 17, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/RGBToHex.ts#L14" + } + ], + "parameters": [ + { + "id": 799, + "name": "r", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the 1st value of RGB" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 800, + "name": "g", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 2nd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 801, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "RGB's 3rd value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 655, + "name": "addEvent", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/addEvent.ts#L12" + }, + { + "fileName": "src/addEvent.ts", + "line": 36, + "character": 0, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/addEvent.ts#L36" + } + ], + "signatures": [ + { + "id": 656, + "name": "addEvent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "addEvent() event delegate, supports multiple delegates" + } + ] + }, + "sources": [ + { + "fileName": "src/addEvent.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/addEvent.ts#L12" + } + ], + "parameters": [ + { + "id": 657, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 901, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 658, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The event type. No need to add on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 659, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "callback method" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 766, + "name": "all", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/all.ts", + "line": 15, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/all.ts#L15" + } + ], + "signatures": [ + { + "id": 767, + "name": "all", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nall([4, 2, 3], x => x > 1)\n// true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/all.ts", + "line": 15, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/all.ts#L15" + } + ], + "typeParameter": [ + { + "id": 768, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 769, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + }, + { + "id": 770, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 771, + "name": "any", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/any.ts", + "line": 14, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/any.ts#L14" + } + ], + "signatures": [ + { + "id": 772, + "name": "any", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nany([0, 1, 2, 0], x => x >= 2)\n// true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the result of the judgment" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/any.ts", + "line": 14, + "character": 12, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/any.ts#L14" + } + ], + "typeParameter": [ + { + "id": 773, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 774, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + }, + { + "id": 775, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the judgment method" + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 519, + "name": "appVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L19" + }, + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L20" + }, + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L21" + }, + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L22" + }, + { + "fileName": "src/appVersion.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L23" + } + ], + "signatures": [ + { + "id": 520, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "string|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L19" + } + ], + "parameters": [ + { + "id": 521, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 522, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 523, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 524, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 525, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L21" + } + ], + "parameters": [ + { + "id": 526, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 527, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + }, + { + "id": 528, + "name": "appVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/appVersion.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/appVersion.ts#L22" + } + ], + "parameters": [ + { + "id": 529, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 530, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 531, + "name": "ignoreCase", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 865, + "name": "arrayBufferToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBase64.ts#L8" + } + ], + "signatures": [ + { + "id": 866, + "name": "arrayBufferToBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBase64.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBase64.ts#L8" + } + ], + "parameters": [ + { + "id": 867, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 868, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, default: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'image/png'" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 869, + "name": "arrayBufferToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBlob.ts#L8" + } + ], + "signatures": [ + { + "id": 870, + "name": "arrayBufferToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayBufferToBlob.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayBufferToBlob.ts#L8" + } + ], + "parameters": [ + { + "id": 871, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrayBuffer" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + }, + { + "id": 872, + "name": "mime", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "image mime, default: image/png" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'image/png'" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 783, + "name": "arrayToCSV", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 19, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayToCSV.ts#L19" + } + ], + "signatures": [ + { + "id": 784, + "name": "arrayToCSV", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a two-dimensional array to a comma-separated string of values (CSV)." + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\narrayToCSV([['a', 'b'], ['c', 'd']])\n// '\"a\", \"b\" \\n \"c\", \"d\"'\n\narrayToCSV([['a', 'b'], ['c', 'd']], ';')\n// '\"a\"; \"b\"\\n \"c\"; \"d\"'\n\narrayToCSV([['a', '\"b\" great'], ['c', 3.1415]])\n// '\"a\", \"\"\"b\"\" great\"\\n \"c\",3.1415'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "CSV data" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/arrayToCSV.ts", + "line": 19, + "character": 19, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/arrayToCSV.ts#L19" + } + ], + "typeParameter": [ + { + "id": 785, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + } + ], + "parameters": [ + { + "id": 786, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 787, + "name": "delimiter", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "delimiter, default ','" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "','" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 851, + "name": "awaitTo", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L10" + }, + { + "fileName": "src/awaitTo.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L11" + }, + { + "fileName": "src/awaitTo.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L12" + }, + { + "fileName": "src/awaitTo.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L16" + } + ], + "signatures": [ + { + "id": 852, + "name": "awaitTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Async await wrapper for easy error handling" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- [Error, undefined] | [null, data | data[]]" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L10" + } + ], + "typeParameter": [ + { + "id": 853, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 854, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 855, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Promise" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": -1, + "name": "E", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 856, + "name": "awaitTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L11" + } + ], + "typeParameter": [ + { + "id": 857, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 858, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 859, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": -1, + "name": "E", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 860, + "name": "awaitTo", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/awaitTo.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/awaitTo.ts#L12" + } + ], + "typeParameter": [ + { + "id": 861, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 862, + "name": "E", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Error" + }, + "name": "Error", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 863, + "name": "promise", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + }, + { + "id": 864, + "name": "promises", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Promise", + "package": "typescript" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "tuple", + "elements": [ + { + "type": "reference", + "target": -1, + "name": "E", + "refersToTypeParameter": true + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + }, + { + "type": "tuple", + "elements": [ + { + "type": "literal", + "value": null + }, + { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 873, + "name": "base64ToArrayBuffer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToArrayBuffer.ts#L9" + } + ], + "signatures": [ + { + "id": 874, + "name": "base64ToArrayBuffer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToArrayBuffer.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToArrayBuffer.ts#L9" + } + ], + "parameters": [ + { + "id": 875, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + } + } + ] + }, + { + "id": 876, + "name": "base64ToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToBlob.ts#L9" + } + ], + "signatures": [ + { + "id": 877, + "name": "base64ToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToBlob.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToBlob.ts#L9" + } + ], + "parameters": [ + { + "id": 878, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 879, + "name": "base64ToFile", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToFile.ts#L10" + } + ], + "signatures": [ + { + "id": 880, + "name": "base64ToFile", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 to file" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/base64ToFile.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/base64ToFile.ts#L10" + } + ], + "parameters": [ + { + "id": 881, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 882, + "name": "fileName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ] + }, + { + "id": 883, + "name": "blobToArrayBuffer", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToArrayBuffer.ts#L7" + } + ], + "signatures": [ + { + "id": 884, + "name": "blobToArrayBuffer", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to arrayBuffer" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- arrayBuffer" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToArrayBuffer.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToArrayBuffer.ts#L7" + } + ], + "parameters": [ + { + "id": 885, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "ArrayBuffer" + }, + "name": "ArrayBuffer", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 886, + "name": "blobToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToBase64.ts#L7" + } + ], + "signatures": [ + { + "id": 887, + "name": "blobToBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToBase64.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToBase64.ts#L7" + } + ], + "parameters": [ + { + "id": 888, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 889, + "name": "blobToUrl", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToUrl.ts#L7" + } + ], + "signatures": [ + { + "id": 890, + "name": "blobToUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob to blobUrl" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blobUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/blobToUrl.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/blobToUrl.ts#L7" + } + ], + "parameters": [ + { + "id": 891, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "blob data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 543, + "name": "browserVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 67, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L67" + } + ], + "signatures": [ + { + "id": 544, + "name": "browserVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the browser name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\nbrowserVersion() // \\{ name: 'Chrome', version: '114.0.0.0' \\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "BrowserVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/browserVersion.ts", + "line": 67, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/browserVersion.ts#L67" + } + ], + "parameters": [ + { + "id": 545, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 546, + "name": "BrowserVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 83, + "name": "camel2Dash", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/camel2Dash.ts#L7" + } + ], + "signatures": [ + { + "id": 84, + "name": "camel2Dash", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts humped strings to -spaced and all lowercase Dash pattern" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/camel2Dash.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/camel2Dash.ts#L7" + } + ], + "parameters": [ + { + "id": 85, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 741, + "name": "cleanData", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cleanData.ts#L16" + } + ], + "signatures": [ + { + "id": 742, + "name": "cleanData", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Data cleaning methods" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cleaned object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cleanData.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cleanData.ts#L16" + } + ], + "parameters": [ + { + "id": 743, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the object to be cleaned, must be passed" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 744, + "name": "map", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the data queue to be cleaned, can be passed as array or object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + }, + { + "type": "reference", + "target": 901, + "name": "AnyObject", + "package": "js-cool" + } + ] + } + }, + { + "id": 745, + "name": "nullFix", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 68, + "name": "clearAttr", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearAttr.ts#L7" + } + ], + "signatures": [ + { + "id": 69, + "name": "clearAttr", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove all attributes of HTML tags" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearAttr.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearAttr.ts#L7" + } + ], + "parameters": [ + { + "id": 70, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 71, + "name": "clearHtml", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearHtml.ts#L7" + } + ], + "signatures": [ + { + "id": 72, + "name": "clearHtml", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Removing HTML tags" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/clearHtml.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/clearHtml.ts#L7" + } + ], + "parameters": [ + { + "id": 73, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 27, + "name": "client", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 9, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L9" + } + ], + "signatures": [ + { + "id": 28, + "name": "client", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The client method returns a browser judgment result: " + }, + { + "kind": "code", + "text": "`{ ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }`" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "Will be refactored for the next major release" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the common ua match table, if name is passed, then returns whether the terminal matches true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/client.ts", + "line": 9, + "character": 15, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L9" + } + ], + "parameters": [ + { + "id": 29, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + }, + { + "id": 30, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, pass in a custom ua, default takes the browser's navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "navigator.userAgent" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reflection", + "declaration": { + "id": 31, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 39, + "name": "ANDROID", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 23, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 33, + "name": "GECKO", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 16, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L16" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 32, + "name": "IE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 15, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L15" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 38, + "name": "IOS", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 22, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L22" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/\\(i[^;]+;( U;)? CPU.+Mac OS X/)" + }, + { + "id": 41, + "name": "IPAD", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 25, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L25" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 40, + "name": "IPHONE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 24, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L24" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 37, + "name": "MOBILE", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 20, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "!!userAgent.match(/AppleWebKit.*Mobile.*/)" + }, + { + "id": 35, + "name": "OPERA", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 18, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L18" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 44, + "name": "QQ", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 29, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L29" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "RegExpMatchArray" + }, + "name": "RegExpMatchArray", + "package": "typescript" + } + ] + }, + "defaultValue": "..." + }, + { + "id": 42, + "name": "QQBROWSER", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 27, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L27" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 36, + "name": "TRIDENT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 19, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L19" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 34, + "name": "WEBKIT", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 17, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L17" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + }, + { + "id": 43, + "name": "WEIXIN", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/client.ts", + "line": 28, + "character": 3, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L28" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "..." + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 39, + 33, + 32, + 38, + 41, + 40, + 37, + 35, + 44, + 42, + 36, + 34, + 43 + ] + } + ], + "sources": [ + { + "fileName": "src/client.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/client.ts#L14" + } + ] + } + } + ] + } + } + ] + }, + { + "id": 549, + "name": "compareVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 47, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/compareVersion.ts#L47" + } + ], + "signatures": [ + { + "id": 550, + "name": "compareVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Version number size comparison, tag version: rc \\> beta \\> alpha \\> other" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncompareVersion('1.11.0', '1.9.9')\n// => 1: 1=Version 1.11.0 is newer than 1.9.9\n\ncompareVersion('1.11.0', '1.11.0')\n// => 0: 0=Versions 1.11.0 and 1.11.0 are the same\n\ncompareVersion('1.11.0', '1.99.0')\n// => -1: -1=Version 1.11.0 is older than 1.99.0\n\ncompareVersion('1.0.0.0.0.10', '1.0')\n// => -1\n\n// compare tag version: rc > beta > alpha > other\ncompareVersion('1.11.0', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-beta.1', '1.11.0')\n// => -1\n\ncompareVersion('1.11.0-beta.10', '1.11.0-beta.10')\n// => 0\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-rc.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-alpha.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-tag.1')\n// => 1\n\ncompareVersion('1.11.0-release.10', '1.11.0-tag.1')\n// => 1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "1/0/-1" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/compareVersion.ts", + "line": 47, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/compareVersion.ts#L47" + } + ], + "parameters": [ + { + "id": 551, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 552, + "name": "compare", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare version" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": 0 + }, + { + "type": "literal", + "value": 1 + }, + { + "type": "literal", + "value": -1 + } + ] + } + } + ] + }, + { + "id": 814, + "name": "complement", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/complement.ts#L15" + } + ], + "signatures": [ + { + "id": 815, + "name": "complement", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the complement of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncomplement([1, 2], [2, '33'], [2]) // [1, '33']\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/complement.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/complement.ts#L15" + } + ], + "typeParameter": [ + { + "id": 816, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 817, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 818, + "name": "contains", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/contains.ts#L13" + } + ], + "signatures": [ + { + "id": 819, + "name": "contains", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether the array contains the specified element" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ncontains([1, 2], 2) // true\ncontains([1, 2], 3) // false\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "boolean" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/contains.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/contains.ts#L13" + } + ], + "parameters": [ + { + "id": 820, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target array" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + }, + { + "id": 821, + "name": "item", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the target to find" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 760, + "name": "copy", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/copy.ts#L9" + } + ], + "signatures": [ + { + "id": 761, + "name": "copy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "copy to clipboard" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/copy.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/copy.ts#L9" + } + ], + "parameters": [ + { + "id": 762, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ] + }, + { + "id": 130, + "name": "cutCHSString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cutCHSString.ts#L9" + } + ], + "signatures": [ + { + "id": 131, + "name": "cutCHSString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept string, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the intercepted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/cutCHSString.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/cutCHSString.ts#L9" + } + ], + "parameters": [ + { + "id": 132, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be intercepted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 133, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "str.length" + }, + { + "id": 134, + "name": "hasDot", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 86, + "name": "dash2Camel", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/dash2Camel.ts#L7" + } + ], + "signatures": [ + { + "id": 87, + "name": "dash2Camel", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts -spaced and all lowercase Dash patterns to humped strings" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/dash2Camel.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/dash2Camel.ts#L7" + } + ], + "parameters": [ + { + "id": 88, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 643, + "name": "decodeBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 644, + "name": "decodeBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "base64 decoding" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 645, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be decoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 646, + "name": "decodeUtf8", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeUtf8.ts#L7" + } + ], + "signatures": [ + { + "id": 647, + "name": "decodeUtf8", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Decoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "decoded string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/decodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/decodeUtf8.ts#L7" + } + ], + "parameters": [ + { + "id": 648, + "name": "utftext", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 606, + "name": "delCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCache.ts#L6" + } + ], + "signatures": [ + { + "id": 607, + "name": "delCache", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete localStorage" + } + ] + }, + "sources": [ + { + "fileName": "src/delCache.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCache.ts#L6" + } + ], + "parameters": [ + { + "id": 608, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 634, + "name": "delCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCookie.ts#L8" + } + ], + "signatures": [ + { + "id": 635, + "name": "delCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete cookie" + } + ] + }, + "sources": [ + { + "fileName": "src/delCookie.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delCookie.ts#L8" + } + ], + "parameters": [ + { + "id": 636, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 618, + "name": "delSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delSession.ts#L6" + } + ], + "signatures": [ + { + "id": 619, + "name": "delSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Delete sessionStorage" + } + ] + }, + "sources": [ + { + "fileName": "src/delSession.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delSession.ts#L6" + } + ], + "parameters": [ + { + "id": 620, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 718, + "name": "delay", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L8" + } + ], + "signatures": [ + { + "id": 719, + "name": "delay", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "debounce & throttle" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "class" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L8" + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 720, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 721, + "name": "map", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 10, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L10" + } + ], + "type": { + "type": "intrinsic", + "name": "any" + }, + "defaultValue": "..." + }, + { + "id": 728, + "name": "destroy", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 42, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L42" + } + ], + "signatures": [ + { + "id": 729, + "name": "destroy", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 42, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L42" + } + ], + "parameters": [ + { + "id": 730, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 722, + "name": "register", + "variant": "declaration", + "kind": 2048, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L11" + } + ], + "signatures": [ + { + "id": 723, + "name": "register", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/delay.ts", + "line": 11, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L11" + } + ], + "parameters": [ + { + "id": 724, + "name": "id", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 725, + "name": "fn", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + }, + { + "id": 726, + "name": "time", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 727, + "name": "boo", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 721 + ] + }, + { + "title": "Methods", + "children": [ + 728, + 722 + ] + } + ], + "sources": [ + { + "fileName": "src/delay.ts", + "line": 9, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/delay.ts#L9" + } + ] + } + } + } + ] + }, + { + "id": 22, + "name": "download", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "signatures": [ + { + "id": 23, + "name": "download", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Several ways of file downloading:\r\n1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);\r\n2. using a tag download attribute (or js create a tag);\r\n3. browser-recognizable pdf, txt files, back-end compatible with handling attachment;\r\n4. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request" + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "line": 21, + "character": 24 + } + ], + "parameters": [ + { + "id": 24, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 25, + "name": "filename", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "filename" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 26, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "download type 'href','open','download','request'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 637, + "name": "encodeBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeBase64.ts#L10" + } + ], + "signatures": [ + { + "id": 638, + "name": "encodeBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "String, number to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the BASE64 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeBase64.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeBase64.ts#L10" + } + ], + "parameters": [ + { + "id": 639, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be encoded" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 640, + "name": "encodeUtf8", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeUtf8.ts#L7" + } + ], + "signatures": [ + { + "id": 641, + "name": "encodeUtf8", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Encoding Utf8" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the UTF-8 encoding" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/encodeUtf8.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/encodeUtf8.ts#L7" + } + ], + "parameters": [ + { + "id": 642, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 74, + "name": "escape", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/escape.ts#L12" + } + ], + "signatures": [ + { + "id": 75, + "name": "escape", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Escaping HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nescape('
test
string
')\n// '<div>test<br />string</div>'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/escape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/escape.ts#L12" + } + ], + "parameters": [ + { + "id": 76, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string with html tags" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 702, + "name": "extend", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 40, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L40" + }, + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L41" + }, + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L42" + }, + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L43" + }, + { + "fileName": "src/extend.ts", + "line": 44, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L44" + } + ], + "signatures": [ + { + "id": 703, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "extend greedy" + } + ] + }, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 40, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L40" + } + ], + "parameters": [ + { + "id": 704, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "boolean | ExtendData" + } + ] + }, + "type": { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 705, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ArrayOneMore" + } + ] + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 706, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 41, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L41" + } + ], + "parameters": [ + { + "id": 707, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 708, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 716, + "name": "ExtendObjectData", + "package": "js-cool" + } + }, + { + "id": 709, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 42, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L42" + } + ], + "parameters": [ + { + "id": 710, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 711, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + }, + { + "id": 712, + "name": "extend", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/extend.ts", + "line": 43, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/extend.ts#L43" + } + ], + "parameters": [ + { + "id": 713, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 714, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "type": { + "type": "reference", + "target": 908, + "typeArguments": [ + { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + ], + "name": "ArrayOneMore", + "package": "js-cool" + } + } + ], + "type": { + "type": "reference", + "target": 715, + "name": "ExtendArrayData", + "package": "js-cool" + } + } + ] + }, + { + "id": 892, + "name": "fileToBase64", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fileToBase64.ts#L9" + } + ], + "signatures": [ + { + "id": 893, + "name": "fileToBase64", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file to base64" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- base64 string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fileToBase64.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fileToBase64.ts#L9" + } + ], + "parameters": [ + { + "id": 894, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file data" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "File" + }, + "name": "File", + "package": "typescript" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 826, + "name": "fillIPv6", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fillIPv6.ts#L14" + } + ], + "signatures": [ + { + "id": 827, + "name": "fillIPv6", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read full IPv6" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfillIPv6('2409:8005:800::2')\n// '2409:8005:0800:0000:0000:0000:0000:0002'\n\nfillIPv6('2409:8005:800::1c')\n// '2409:8005:0800:0000:0000:0000:0000:001c'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fillIPv6.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fillIPv6.ts#L14" + } + ], + "parameters": [ + { + "id": 828, + "name": "ip", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 124, + "name": "fingerprint", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fingerprint.ts#L9" + } + ], + "signatures": [ + { + "id": 125, + "name": "fingerprint", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generating Browser Fingerprints" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- fingerprint" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fingerprint.ts", + "line": 9, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fingerprint.ts#L9" + } + ], + "parameters": [ + { + "id": 126, + "name": "domain", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key string, default: location.host" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": null + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + } + ] + }, + { + "id": 691, + "name": "fixNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fixNumber.ts#L21" + } + ], + "signatures": [ + { + "id": 692, + "name": "fixNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Intercept the decimal places, do not fill in the missing 0" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nfixNumber('100.888')\n// 100.88\n\nfixNumber('100.8', 2)\n// 100.8\n\nfixNumber('100.8888', 3)\n// 100.888\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/fixNumber.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/fixNumber.ts#L21" + } + ], + "parameters": [ + { + "id": 693, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of digits to be processed, required" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 694, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the number of decimal places to keep, default is 2" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "2" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 514, + "name": "getAppVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getAppVersion.ts#L10" + } + ], + "signatures": [ + { + "id": 515, + "name": "getAppVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the APP version number" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'appVersion' instead" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getAppVersion.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getAppVersion.ts#L10" + } + ], + "parameters": [ + { + "id": 516, + "name": "appName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "app name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 517, + "name": "withApp", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 518, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default is navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 127, + "name": "getCHSLength", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCHSLength.ts#L12" + } + ], + "signatures": [ + { + "id": 128, + "name": "getCHSLength", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the length of the text, Chinese counts as 2 bytes" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCHSLength('测试')\n// 2\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- length" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCHSLength.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCHSLength.ts#L12" + } + ], + "parameters": [ + { + "id": 129, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 597, + "name": "getCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCache.ts#L23" + } + ], + "signatures": [ + { + "id": 598, + "name": "getCache", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2)\nsetCache('data3', data3)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\ngetCache('data3') // null\n\ngetCache('data4') // null\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- data, if it's an object, it's also an object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCache.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCache.ts#L23" + } + ], + "parameters": [ + { + "id": 599, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 621, + "name": "getCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookie.ts#L12" + } + ], + "signatures": [ + { + "id": 622, + "name": "getCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read cookie by name" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookie('data1')\n// 100\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookie.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookie.ts#L12" + } + ], + "parameters": [ + { + "id": 623, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 624, + "name": "getCookies", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookies.ts#L11" + } + ], + "signatures": [ + { + "id": 625, + "name": "getCookies", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read all cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetCookies()\n// \\{ token: 'xxx', name: 'saqqdy' \\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the cookie values" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getCookies.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getCookies.ts#L11" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 563, + "name": "getDirParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L13" + } + ], + "signatures": [ + { + "id": 564, + "name": "getDirParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get directory form URL parameters" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "It will be refactored and renamed getDirParams in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- parameter object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getDirParam.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getDirParam.ts#L13" + } + ], + "parameters": [ + { + "id": 565, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": 566, + "name": "DirParamType", + "package": "js-cool" + } + } + ] + }, + { + "id": 735, + "name": "getFileType", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L18" + } + ], + "signatures": [ + { + "id": 736, + "name": "getFileType", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine file type based on link suffix" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetFileType('/name.png')\n// { \"suffix\": \"png\", \"type\": \"image\" }\n\ngetFileType('/name.PDF')\n// { \"suffix\": \"pdf\", \"type\": \"pdf\" }\n\ngetFileType('/name.xyz')\n// { \"suffix\": \"xyz\", \"type\": \"other\" }\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L18" + } + ], + "parameters": [ + { + "id": 737, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "file url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reflection", + "declaration": { + "id": 738, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "children": [ + { + "id": 739, + "name": "suffix", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 47, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L47" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 740, + "name": "type", + "variant": "declaration", + "kind": 1024, + "flags": {}, + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 48, + "character": 2, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L48" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "audio" + }, + { + "type": "literal", + "value": "video" + }, + { + "type": "literal", + "value": "image" + }, + { + "type": "literal", + "value": "other" + }, + { + "type": "literal", + "value": "word" + }, + { + "type": "literal", + "value": "txt" + }, + { + "type": "literal", + "value": "excel" + }, + { + "type": "literal", + "value": "pdf" + }, + { + "type": "literal", + "value": "ppt" + }, + { + "type": "literal", + "value": "zip" + } + ] + } + } + ], + "groups": [ + { + "title": "Properties", + "children": [ + 739, + 740 + ] + } + ], + "sources": [ + { + "fileName": "src/getFileType.ts", + "line": 46, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getFileType.ts#L46" + } + ] + } + } + } + ] + }, + { + "id": 80, + "name": "getNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getNumber.ts#L15" + } + ], + "signatures": [ + { + "id": 81, + "name": "getNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the number in the string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetNumber('Chrome123.33')\n// '123.33'.\n\ngetNumber('234test.88')\n// '234.88'.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a pure numeric string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getNumber.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getNumber.ts#L15" + } + ], + "parameters": [ + { + "id": 82, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in a string with a number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 532, + "name": "getOsVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getOsVersion.ts#L20" + } + ], + "signatures": [ + { + "id": 533, + "name": "getOsVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the phone system version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\ngetOsVersion('iPhone')\n// '13.2.3'\n\ngetOsVersion('iPhone', true)\n// 'iPhone/13.2.3'\n```" + } + ] + }, + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "please use 'osVersion' instead" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- null/true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getOsVersion.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getOsVersion.ts#L20" + } + ], + "parameters": [ + { + "id": 534, + "name": "osName", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "system type string Android, iPod, iWatch or iPhone" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 535, + "name": "withOS", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "whether to bring the name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + }, + { + "id": 536, + "name": "userAgent", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua, may not be passed, default takes navigator.appVersion" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 829, + "name": "getProperty", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "signatures": [ + { + "id": 830, + "name": "getProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get array, object property values based on path string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n }]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "parameters": [ + { + "id": 831, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 832, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "query target, can pass function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 833, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "signatures": [ + { + "id": 834, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getProperty.ts", + "line": 20, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getProperty.ts#L20" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 569, + "name": "getQueryParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L19" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L20" + }, + { + "fileName": "src/getQueryParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L21" + } + ], + "signatures": [ + { + "id": 570, + "name": "getQueryParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single query parameter (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L19" + } + ], + "parameters": [ + { + "id": 571, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 572, + "name": "getQueryParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParam.ts#L20" + } + ], + "parameters": [ + { + "id": 573, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 574, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + }, + { + "id": 575, + "name": "getQueryParams", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L22" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L23" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L24" + }, + { + "fileName": "src/getQueryParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L25" + } + ], + "signatures": [ + { + "id": 576, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (behind \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L22" + } + ], + "parameters": [ + { + "id": 577, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 578, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L23" + } + ], + "parameters": [ + { + "id": 579, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 580, + "name": "getQueryParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getQueryParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getQueryParams.ts#L24" + } + ], + "parameters": [ + { + "id": 581, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 582, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 667, + "name": "getScrollPosition", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getScrollPosition.ts#L7" + } + ], + "signatures": [ + { + "id": 668, + "name": "getScrollPosition", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get slide to top and bottom return 'top' 'bottom', recommend using limit flow" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- position" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getScrollPosition.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getScrollPosition.ts#L7" + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "undefined" + }, + { + "type": "literal", + "value": "bottom" + }, + { + "type": "literal", + "value": "top" + } + ] + } + } + ] + }, + { + "id": 609, + "name": "getSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getSession.ts#L23" + } + ], + "signatures": [ + { + "id": 610, + "name": "getSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Read sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2)\nsetSession('data3', data3)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\ngetSession('data3') // null\n\ngetSession('data4') // null\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- sessionStorage" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getSession.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getSession.ts#L23" + } + ], + "parameters": [ + { + "id": 611, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 731, + "name": "getType", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getType.ts#L7" + } + ], + "signatures": [ + { + "id": 732, + "name": "getType", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the target type" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "type" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getType.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getType.ts#L7" + } + ], + "typeParameter": [ + { + "id": 733, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 734, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "string" + }, + { + "type": "literal", + "value": "number" + }, + { + "type": "literal", + "value": "bigint" + }, + { + "type": "literal", + "value": "boolean" + }, + { + "type": "literal", + "value": "symbol" + }, + { + "type": "literal", + "value": "undefined" + }, + { + "type": "literal", + "value": "object" + }, + { + "type": "literal", + "value": "function" + }, + { + "type": "literal", + "value": "window" + }, + { + "type": "literal", + "value": "error" + }, + { + "type": "literal", + "value": "promise" + }, + { + "type": "literal", + "value": "math" + }, + { + "type": "literal", + "value": "document" + }, + { + "type": "literal", + "value": "navigator" + }, + { + "type": "literal", + "value": "global" + }, + { + "type": "literal", + "value": "null" + }, + { + "type": "literal", + "value": "array" + }, + { + "type": "literal", + "value": "date" + }, + { + "type": "literal", + "value": "regexp" + } + ] + } + } + ] + }, + { + "id": 583, + "name": "getUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L19" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L20" + }, + { + "fileName": "src/getUrlParam.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L21" + } + ], + "signatures": [ + { + "id": 584, + "name": "getUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a single URL parameter (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 19, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L19" + } + ], + "parameters": [ + { + "id": 585, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "key name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + }, + { + "id": 586, + "name": "getUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParam.ts#L20" + } + ], + "parameters": [ + { + "id": 587, + "name": "key", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 588, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "undefined" + } + ] + } + } + ] + }, + { + "id": 589, + "name": "getUrlParams", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L22" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L23" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L24" + }, + { + "fileName": "src/getUrlParams.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L25" + } + ], + "signatures": [ + { + "id": 590, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get all URL parameters (from the \"location.search\", before \"#\")" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L22" + } + ], + "parameters": [ + { + "id": 591, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the url string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "string" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 592, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L23" + } + ], + "parameters": [ + { + "id": 593, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + }, + { + "id": 594, + "name": "getUrlParams", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/getUrlParams.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/getUrlParams.ts#L24" + } + ], + "parameters": [ + { + "id": 595, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 596, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 802, + "name": "intersect", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/intersect.ts#L13" + } + ], + "signatures": [ + { + "id": 803, + "name": "intersect", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the intersection of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nintersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/intersect.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/intersect.ts#L13" + } + ], + "typeParameter": [ + { + "id": 804, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 805, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 500, + "name": "isArray", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isArray.ts#L11" + } + ], + "signatures": [ + { + "id": 501, + "name": "isArray", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is an array" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisArray([]) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isArray.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isArray.ts#L11" + } + ], + "parameters": [ + { + "id": 502, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + } + ] + }, + { + "id": 495, + "name": "isDarkMode", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDarkMode.ts#L10" + } + ], + "signatures": [ + { + "id": 496, + "name": "isDarkMode", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if dark color mode" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisDarkMode() // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDarkMode.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDarkMode.ts#L10" + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 135, + "name": "isDigitals", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDigitals.ts#L8" + } + ], + "signatures": [ + { + "id": 136, + "name": "isDigitals", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Whether or not it is a string consisting of numbers" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isDigitals.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isDigitals.ts#L8" + } + ], + "parameters": [ + { + "id": 137, + "name": "str", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be tested" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 141, + "name": "isEqual", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 122, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isEqual.ts#L122" + } + ], + "signatures": [ + { + "id": 142, + "name": "isEqual", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if 2 objects are equal" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisEqual({ a: 22, b: {} }, { b: {}, a: 22 })\n// true\n\nisEqual([1, 2], [2, 1])\n// false\n\nisEqual(NaN, NaN)\n// true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- a equals to b" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isEqual.ts", + "line": 122, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isEqual.ts#L122" + } + ], + "typeParameter": [ + { + "id": 143, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {} + }, + { + "id": 144, + "name": "P", + "variant": "typeParam", + "kind": 131072, + "flags": {} + } + ], + "parameters": [ + { + "id": 145, + "name": "a", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "source" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 146, + "name": "b", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "compare" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "P", + "refersToTypeParameter": true + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 138, + "name": "isExitsFunction", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsFunction.ts#L14" + } + ], + "signatures": [ + { + "id": 139, + "name": "isExitsFunction", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified function" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsFunction('test') // false\nisExitsFunction('console.log') // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsFunction.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsFunction.ts#L14" + } + ], + "parameters": [ + { + "id": 140, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "incoming function name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 147, + "name": "isExitsVariable", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsVariable.ts#L12" + } + ], + "signatures": [ + { + "id": 148, + "name": "isExitsVariable", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The presence or absence of the specified variable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisExitsVariable('test') // false\nisExitsVariable('window') // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true/false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isExitsVariable.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isExitsVariable.ts#L12" + } + ], + "parameters": [ + { + "id": 149, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "variable name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 503, + "name": "isIterable", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isIterable.ts#L11" + } + ], + "signatures": [ + { + "id": 504, + "name": "isIterable", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if it is iterable" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisIterable([]) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isIterable.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isIterable.ts#L11" + } + ], + "typeParameter": [ + { + "id": 505, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "any" + } + } + ], + "parameters": [ + { + "id": 506, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + ] + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Iterable" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "Iterable", + "package": "typescript" + } + } + } + ] + }, + { + "id": 497, + "name": "isObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isObject.ts#L13" + } + ], + "signatures": [ + { + "id": 498, + "name": "isObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisObject({}) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isObject.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isObject.ts#L13" + } + ], + "parameters": [ + { + "id": 499, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Object" + }, + "name": "Object", + "package": "typescript" + } + } + } + ] + }, + { + "id": 153, + "name": "isPlainObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L27" + } + ], + "signatures": [ + { + "id": 154, + "name": "isPlainObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an plain object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisPlainObject({}) // true\nisPlainObject(window) // false\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is plain Object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isPlainObject.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isPlainObject.ts#L27" + } + ], + "parameters": [ + { + "id": 155, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any target" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": 157, + "name": "PlainObject", + "package": "js-cool" + } + } + } + ] + }, + { + "id": 150, + "name": "isWindow", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isWindow.ts#L14" + } + ], + "signatures": [ + { + "id": 151, + "name": "isWindow", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Determine if target is an window object" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nisWindow({}) // false\nisWindow(window) // true\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- target is Window" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/isWindow.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/isWindow.ts#L14" + } + ], + "parameters": [ + { + "id": 152, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "any" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "predicate", + "name": "target", + "asserts": false, + "targetType": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Window" + }, + "name": "Window", + "package": "typescript" + } + } + } + ] + }, + { + "id": 2, + "name": "loadSource", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "signatures": [ + { + "id": 3, + "name": "loadSource", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of resources, support js, images, css links, css style strings" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- true|false|imgUrl" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "line": 13, + "character": 17 + } + ], + "parameters": [ + { + "id": 4, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link to the resource, type must be passed when passing in styleString" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 5, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "SourceOptions" + }, + "name": "SourceOptions", + "package": "load-source" + } + ] + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 695, + "name": "mapTemplate", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L27" + } + ], + "signatures": [ + { + "id": 696, + "name": "mapTemplate", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Replacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst tmp = \"My name is ${name}, I'm ${age} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n\nmapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))\n// My name is saqqdy, I'm 28 years old.\n\nconst tmp = \"My name is {{name}}, I'm {{age}} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 27, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L27" + } + ], + "parameters": [ + { + "id": 697, + "name": "tmp", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 698, + "name": "data", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Template data of map function" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + }, + { + "type": "reflection", + "declaration": { + "id": 699, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 29, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L29" + } + ], + "signatures": [ + { + "id": 700, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/mapTemplate.ts", + "line": 29, + "character": 8, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/mapTemplate.ts#L29" + } + ], + "parameters": [ + { + "id": 701, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "unknown" + } + } + ] + } + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 810, + "name": "minus", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/minus.ts#L14" + } + ], + "signatures": [ + { + "id": 811, + "name": "minus", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nminus([1, 2], [2, '33'], [2, 4]) // [1]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/minus.ts", + "line": 14, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/minus.ts#L14" + } + ], + "typeParameter": [ + { + "id": 812, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 813, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 6, + "name": "mountCss", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 7, + "name": "mountCss", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css link resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 8, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 9, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "CssOptions" + }, + "name": "CssOptions", + "package": "mount-css" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 10, + "name": "mountImg", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "signatures": [ + { + "id": 11, + "name": "mountImg", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of image resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "line": 21, + "character": 17 + } + ], + "parameters": [ + { + "id": 12, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 13, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "ImgOptions" + }, + "name": "ImgOptions", + "package": "mount-image" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "intrinsic", + "name": "string" + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 14, + "name": "mountJs", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "signatures": [ + { + "id": 15, + "name": "mountJs", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of js linked resources" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "line": 19, + "character": 17 + } + ], + "parameters": [ + { + "id": 16, + "name": "src", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resource address" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 17, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props, force" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "JsOptions" + }, + "name": "JsOptions", + "package": "mount-script" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 18, + "name": "mountStyle", + "variant": "declaration", + "kind": 64, + "flags": { + "isExternal": true + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "signatures": [ + { + "id": 19, + "name": "mountStyle", + "variant": "signature", + "kind": 4096, + "flags": { + "isExternal": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Dynamic loading of css styles" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- results" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "line": 8, + "character": 17 + } + ], + "parameters": [ + { + "id": 20, + "name": "css", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 21, + "name": "option", + "variant": "param", + "kind": 32768, + "flags": { + "isExternal": true, + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parameters: attrs, props" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "StyleOptions" + }, + "name": "StyleOptions", + "package": "mount-style" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "boolean" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 669, + "name": "nextIndex", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextIndex.ts#L31" + } + ], + "signatures": [ + { + "id": 670, + "name": "nextIndex", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Return the next zIndex value" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextIndex()\n// 1\n\nnextIndex(1000)\n// 1001\n\nnextIndex(10, 100)\n// 100\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextIndex.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextIndex.ts#L31" + } + ], + "parameters": [ + { + "id": 671, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, minimum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "5000" + }, + { + "id": 672, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, maximum value" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10000" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 673, + "name": "nextVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L25" + } + ], + "signatures": [ + { + "id": 674, + "name": "nextVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nnextVersion('1.2.33') // 1.2.34\n\nnextVersion('1.2.33', 'major') // 2.0.0\n\nnextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new version" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/nextVersion.ts", + "line": 25, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/nextVersion.ts#L25" + } + ], + "parameters": [ + { + "id": 675, + "name": "version", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "version(like: 1.0.0)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 676, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, version type" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "literal", + "value": "major" + }, + { + "type": "literal", + "value": "minor" + }, + { + "type": "literal", + "value": "patch" + }, + { + "type": "literal", + "value": "premajor" + }, + { + "type": "literal", + "value": "preminor" + }, + { + "type": "literal", + "value": "prepatch" + }, + { + "type": "literal", + "value": "prerelease" + } + ] + } + }, + { + "id": 677, + "name": "preid", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, prerelease id" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "''" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 757, + "name": "openUrl", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/openUrl.ts#L6" + } + ], + "signatures": [ + { + "id": 758, + "name": "openUrl", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Open link in new tab (file jump download if browser can't parse)" + } + ] + }, + "sources": [ + { + "fileName": "src/openUrl.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/openUrl.ts#L6" + } + ], + "parameters": [ + { + "id": 759, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "link" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 537, + "name": "osVersion", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L35" + } + ], + "signatures": [ + { + "id": 538, + "name": "osVersion", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the system name and version" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```\n// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.3' \\}\n\n// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.2.3' \\}\n\n// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'MacOS', version: '10.15.7' \\}\n\n// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: '10.0' \\}\n\n// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: 'XP' \\}\n\n// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'\nosVersion() // \\{ name: 'WindowsPhone', version: '10.0' \\}\n\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "OsVersion|null" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/osVersion.ts", + "line": 35, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/osVersion.ts#L35" + } + ], + "parameters": [ + { + "id": 539, + "name": "ua", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "ua or any ua like string, may not be passed, default is navigator.userAgent" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "union", + "types": [ + { + "type": "reference", + "target": 540, + "name": "OsVersion", + "package": "js-cool" + }, + { + "type": "literal", + "value": null + } + ] + } + } + ] + }, + { + "id": 553, + "name": "parseUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/parseUrlParam.ts#L18" + } + ], + "signatures": [ + { + "id": 554, + "name": "parseUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "parse url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')\n// \\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key5\":\"NaN\",\"key6\":\"10.888\",\"key7\":\"Infinity\",\"key8\":\"test\"\\}\n\nparseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)\n// \\{\"key1\":100,\"key2\":true,\"key3\":null,\"key5\":NaN,\"key6\":10.888,\"key7\":Infinity,\"key8\":\"test\"\\}\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "object" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/parseUrlParam.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/parseUrlParam.ts#L18" + } + ], + "parameters": [ + { + "id": 555, + "name": "url", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url string (like: ?key1=value1&key2=value2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 556, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 842, + "name": "preloader", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L6" + }, + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L7" + }, + { + "fileName": "src/preloader.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L8" + } + ], + "signatures": [ + { + "id": 843, + "name": "preloader", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Image preloading" + } + ] + }, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L6" + } + ], + "parameters": [ + { + "id": 844, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "images url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + }, + { + "id": 845, + "name": "preloader", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/preloader.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/preloader.ts#L7" + } + ], + "parameters": [ + { + "id": 846, + "name": "images", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "string" + } + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "HTMLImageElement" + }, + "name": "HTMLImageElement", + "package": "typescript" + } + ], + "name": "Record", + "package": "typescript" + } + } + ] + }, + { + "id": 684, + "name": "promiseFactory", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L31" + } + ], + "signatures": [ + { + "id": 685, + "name": "promiseFactory", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert an object to a promise like api" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nimport { promiseFactory, waiting } from 'js-cool'\n\nfunction promise() {\n const stats = {\n value: 100\n }\n\n const resolver = () =>\n new Promise(resolve =>\n waiting(2000).then(() => {\n stats.value = 200\n resolve(stats)\n })\n )\n\n return promiseFactory(stats, resolver)\n}\n\nconst res = promise() // res => 100\nconst res = await promise() // res => 200\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 31, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L31" + } + ], + "typeParameter": [ + { + "id": 686, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "object" + } + } + ], + "parameters": [ + { + "id": 687, + "name": "original", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "original object" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 688, + "name": "resolver", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "resolver function" + } + ] + }, + "type": { + "type": "reflection", + "declaration": { + "id": 689, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 33, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L33" + } + ], + "signatures": [ + { + "id": 690, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/promiseFactory.ts", + "line": 33, + "character": 11, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/promiseFactory.ts#L33" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "any" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + } + } + } + ], + "type": { + "type": "intersection", + "types": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + }, + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "PromiseLike" + }, + "typeArguments": [ + { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + ], + "name": "PromiseLike", + "package": "typescript" + } + ] + } + } + ] + }, + { + "id": 92, + "name": "randomColor", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomColor.ts#L6" + } + ], + "signatures": [ + { + "id": 93, + "name": "randomColor", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate random hexadecimal colors" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomColor.ts", + "line": 6, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomColor.ts#L6" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 94, + "name": "randomNumber", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumber.ts#L16" + } + ], + "signatures": [ + { + "id": 95, + "name": "randomNumber", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random integer" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumber()\n// 8\n\nrandomNumber(0.1, 0.9)\n// 0.8\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random number" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumber.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumber.ts#L16" + } + ], + "parameters": [ + { + "id": 96, + "name": "min", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the minimum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "1" + }, + { + "id": 97, + "name": "max", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the maximum value of the random number" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "10" + } + ], + "type": { + "type": "intrinsic", + "name": "number" + } + } + ] + }, + { + "id": 98, + "name": "randomNumbers", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumbers.ts#L23" + } + ], + "signatures": [ + { + "id": 99, + "name": "randomNumbers", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Generate n random integers that sum to a fixed sum" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nrandomNumbers()\n// [8]\n\nrandomNumbers(4, 5)\n// [1, 1, 2, 1]\n\nrandomNumbers(4, 5, false)\n// [0, 1, 2, 2]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- numbers" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomNumbers.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomNumbers.ts#L23" + } + ], + "parameters": [ + { + "id": 100, + "name": "n", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Number of generated integers, default: 1" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 101, + "name": "sum", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Sum of generated integers, default: 100" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 102, + "name": "noZero", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "number" + } + } + } + ] + }, + { + "id": 103, + "name": "randomString", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 77, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L77" + }, + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L78" + }, + { + "fileName": "src/randomString.ts", + "line": 82, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L82" + } + ], + "signatures": [ + { + "id": 104, + "name": "randomString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get a random string" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n\tlength: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n\tcharTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n\tlength: 16,\n\tcharTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n\tlength: 16,\n\tnoConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n\tlength: 16,\n\tstrict: true\n})\n// PFYAPD5KFqOHIADL\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- random string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 77, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L77" + } + ], + "parameters": [ + { + "id": 105, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the length of the random string that needs to be obtained" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 106, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional, randomString options" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 110, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 107, + "name": "randomString", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/randomString.ts", + "line": 78, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/randomString.ts#L78" + } + ], + "parameters": [ + { + "id": 108, + "name": "len", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 110, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + }, + { + "id": 109, + "name": "options", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "boolean" + }, + { + "type": "reference", + "target": 110, + "name": "RandomStringOptions", + "package": "js-cool" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 662, + "name": "removeEvent", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/removeEvent.ts#L10" + } + ], + "signatures": [ + { + "id": 663, + "name": "removeEvent", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "removeEvent removes the event delegate created by addEvent" + } + ] + }, + "sources": [ + { + "fileName": "src/removeEvent.ts", + "line": 10, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/removeEvent.ts#L10" + } + ], + "parameters": [ + { + "id": 664, + "name": "element", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "js dom object" + } + ] + }, + "type": { + "type": "reference", + "target": 901, + "name": "AnyObject", + "package": "js-cool" + } + }, + { + "id": 665, + "name": "type", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "The type of the event. No need to add on" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 666, + "name": "handler", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Callback method." + } + ] + }, + "type": { + "type": "reference", + "target": 902, + "name": "AnyFunction", + "package": "js-cool" + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 746, + "name": "searchObject", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L16" + } + ], + "signatures": [ + { + "id": 747, + "name": "searchObject", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object depth lookup" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the queried array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/searchObject.ts", + "line": 16, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/searchObject.ts#L16" + } + ], + "parameters": [ + { + "id": 748, + "name": "tree", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "tree object" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "object" + }, + { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + ] + } + }, + { + "id": 749, + "name": "expression", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "required Query method" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 750, + "name": "keySet", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Default subclass name, query name" + } + ] + }, + "type": { + "type": "reference", + "target": 752, + "name": "SearchKeySet", + "package": "js-cool" + } + }, + { + "id": 751, + "name": "number", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "optional Number of lookups, if not passed, query all" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + }, + "defaultValue": "0" + } + ], + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "any" + } + } + } + ] + }, + { + "id": 600, + "name": "setCache", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCache.ts#L24" + } + ], + "signatures": [ + { + "id": 601, + "name": "setCache", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetCache('boolean', true)\n\n// set object\nsetCache('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetCache('number', 666, 20)\n```" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCache.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCache.ts#L24" + } + ], + "typeParameter": [ + { + "id": 602, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 603, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 604, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache data, can be passed directly into Object" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 605, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cache time (seconds)" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 626, + "name": "setCookie", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCookie.ts#L21" + } + ], + "signatures": [ + { + "id": 627, + "name": "setCookie", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "setCookie method for writing cookies" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// expires in 86400 seconds\nsetCookie('token', 'xxxxxx')\n\n// set to path\nsetCookie('token', 'xxxxxx', 20, '/app')\n\n// enable samesite\nsetCookie('number', 666, 20, '/', false)\n```" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setCookie.ts", + "line": 21, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setCookie.ts#L21" + } + ], + "typeParameter": [ + { + "id": 628, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + }, + { + "type": "intrinsic", + "name": "boolean" + } + ] + } + } + ], + "parameters": [ + { + "id": 629, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 630, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 631, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "cookie validity default 1 day" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + }, + { + "id": 632, + "name": "path", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "path, default '/'" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + }, + "defaultValue": "'/'" + }, + { + "id": 633, + "name": "samesite", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "SameSite, default true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 835, + "name": "setProperty", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "signatures": [ + { + "id": 836, + "name": "setProperty", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set array, object property values based on path strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nconst target = {\n a: 1,\n b: [{\n c: 2\n }]\n}\n\nsetProperty(target, 'a') // 1\n\nsetProperty(target, 'b[0].c') // 2\n\nsetProperty(target, () => 'a') // 1\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the corresponding value" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "parameters": [ + { + "id": 837, + "name": "target", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "target array, object" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "any" + } + }, + { + "id": 838, + "name": "prop", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "set target, can pass function, 'a' | 'a[1].c'" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "reflection", + "declaration": { + "id": 839, + "name": "__type", + "variant": "declaration", + "kind": 65536, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 49, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "signatures": [ + { + "id": 840, + "name": "__type", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/setProperty.ts", + "line": 23, + "character": 51, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setProperty.ts#L23" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + } + } + ] + } + }, + { + "id": 841, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "intrinsic", + "name": "any" + } + } + ], + "type": { + "type": "intrinsic", + "name": "any" + } + } + ] + }, + { + "id": 612, + "name": "setSession", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setSession.ts#L24" + } + ], + "signatures": [ + { + "id": 613, + "name": "setSession", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Write sessionStorage" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\n// set boolean\nsetSession('boolean', true)\n\n// set object\nsetSession('object', { name: 'saqqdy' })\n\n// set number, expires in 20 seconds\nsetSession('number', 666, 20)\n```" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/setSession.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/setSession.ts#L24" + } + ], + "typeParameter": [ + { + "id": 614, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 615, + "name": "name", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "name" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 616, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Set the value to be stored, either as an object or as a string" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 617, + "name": "seconds", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the valid time" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "void" + } + } + ] + }, + { + "id": 116, + "name": "shuffle", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L22" + }, + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L23" + }, + { + "fileName": "src/shuffle.ts", + "line": 24, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L24" + } + ], + "signatures": [ + { + "id": 117, + "name": "shuffle", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "shuffling algorithm, Reordering arrays or strings" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1,2,3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 22, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L22" + } + ], + "parameters": [ + { + "id": 118, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arrays or strings" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 119, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "new array or string length" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + }, + { + "id": 120, + "name": "shuffle", + "variant": "signature", + "kind": 4096, + "flags": {}, + "sources": [ + { + "fileName": "src/shuffle.ts", + "line": 23, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/shuffle.ts#L23" + } + ], + "typeParameter": [ + { + "id": 121, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + }, + "default": { + "type": "array", + "elementType": { + "type": "intrinsic", + "name": "unknown" + } + } + } + ], + "parameters": [ + { + "id": 122, + "name": "value", + "variant": "param", + "kind": 32768, + "flags": {}, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 123, + "name": "size", + "variant": "param", + "kind": 32768, + "flags": { + "isOptional": true + }, + "type": { + "type": "intrinsic", + "name": "number" + } + } + ], + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + ] + }, + { + "id": 557, + "name": "spliceUrlParam", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/spliceUrlParam.ts#L20" + } + ], + "signatures": [ + { + "id": 558, + "name": "spliceUrlParam", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "splice url params" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key4\":\"测试\"\\}')\n// ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95\n\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\"\\}', true)\n// ?key1=100&key2=true&key3=&key4=\n\nspliceUrlParam('\\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\"\\}', true, false)\n// key1=100&key2=true&key3=&key4=\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- result" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/spliceUrlParam.ts", + "line": 20, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/spliceUrlParam.ts#L20" + } + ], + "typeParameter": [ + { + "id": 559, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Record" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "unknown" + } + ], + "name": "Record", + "package": "typescript" + } + } + ], + "parameters": [ + { + "id": 560, + "name": "params", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "json object" + } + ] + }, + "type": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + }, + { + "id": 561, + "name": "covert", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Convert a null value type (null/undefined/) to an empty string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + }, + { + "id": 562, + "name": "withQuestionsMark", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Splicing a question mark, default: true" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "true" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 649, + "name": "stopBubble", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopBubble.ts#L7" + } + ], + "signatures": [ + { + "id": 650, + "name": "stopBubble", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block bubbling" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopBubble.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopBubble.ts#L7" + } + ], + "parameters": [ + { + "id": 651, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 652, + "name": "stopDefault", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopDefault.ts#L7" + } + ], + "signatures": [ + { + "id": 653, + "name": "stopDefault", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Block default events" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- false" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/stopDefault.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/stopDefault.ts#L7" + } + ], + "parameters": [ + { + "id": 654, + "name": "e", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "dom's event object" + } + ] + }, + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Event" + }, + "name": "Event", + "package": "typescript" + } + } + ], + "type": { + "type": "intrinsic", + "name": "boolean" + } + } + ] + }, + { + "id": 895, + "name": "svgToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/svgToBlob.ts#L7" + } + ], + "signatures": [ + { + "id": 896, + "name": "svgToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/svgToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/svgToBlob.ts#L7" + } + ], + "parameters": [ + { + "id": 897, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "svg string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + } + } + ] + }, + { + "id": 763, + "name": "toThousands", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/toThousands.ts#L18" + } + ], + "signatures": [ + { + "id": 764, + "name": "toThousands", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Digital thousandths division" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\ntoThousands(10000000222)\n// 10,000,000,222\n\ntoThousands(100.2232323)\n// 100.2232323\n\ntoThousands(null)\n// ''\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the split string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/toThousands.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/toThousands.ts#L18" + } + ], + "parameters": [ + { + "id": 765, + "name": "num", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "input number" + } + ] + }, + "type": { + "type": "union", + "types": [ + { + "type": "intrinsic", + "name": "string" + }, + { + "type": "intrinsic", + "name": "number" + } + ] + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 65, + "name": "trim", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/trim.ts#L8" + } + ], + "signatures": [ + { + "id": 66, + "name": "trim", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Remove leading and trailing spaces from strings" + } + ], + "blockTags": [ + { + "tag": "@deprecated", + "content": [ + { + "kind": "text", + "text": "will be removed in the next major release." + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the new string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/trim.ts", + "line": 8, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/trim.ts#L8" + } + ], + "parameters": [ + { + "id": 67, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "pass in the string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 77, + "name": "unescape", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unescape.ts#L12" + } + ], + "signatures": [ + { + "id": 78, + "name": "unescape", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Restore HTML Special Characters" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunescape('<div>test<br />string</div>')\n// '
test
string
'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- newString" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unescape.ts", + "line": 12, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unescape.ts#L12" + } + ], + "parameters": [ + { + "id": 79, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "string" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 806, + "name": "union", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/union.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/union.ts#L18" + } + ], + "signatures": [ + { + "id": 807, + "name": "union", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Find the concatenation of multiple arrays" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunion([1, 2], [2, '33'])\n// [1, 2, '33']\n\nunion([1, 2], [2, '33'], [1, 11, 2, '2'])\n// [ 1, 2, '33', 11, '2' ]\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/union.ts", + "line": 18, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/union.ts#L18" + } + ], + "typeParameter": [ + { + "id": 808, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 809, + "name": "args", + "variant": "param", + "kind": 32768, + "flags": { + "isRest": true + }, + "comment": { + "summary": [ + { + "kind": "text", + "text": "arguments" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 822, + "name": "unique", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unique.ts#L13" + } + ], + "signatures": [ + { + "id": 823, + "name": "unique", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Array de-duplication" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nunique([1, 2, 2, '33']) // [1, 2, '33']\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- new array" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/unique.ts", + "line": 13, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/unique.ts#L13" + } + ], + "typeParameter": [ + { + "id": 824, + "name": "T", + "variant": "typeParam", + "kind": 131072, + "flags": {}, + "default": { + "type": "intrinsic", + "name": "unknown" + } + } + ], + "parameters": [ + { + "id": 825, + "name": "arr", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "array data" + } + ] + }, + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ], + "type": { + "type": "array", + "elementType": { + "type": "reference", + "target": -1, + "name": "T", + "refersToTypeParameter": true + } + } + } + ] + }, + { + "id": 89, + "name": "upperFirst", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/upperFirst.ts#L11" + } + ], + "signatures": [ + { + "id": 90, + "name": "upperFirst", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "First letter capitalized" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nupperFirst('saqqdy') // Saqqdy\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the converted string" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/upperFirst.ts", + "line": 11, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/upperFirst.ts#L11" + } + ], + "parameters": [ + { + "id": 91, + "name": "string", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "the string to be converted" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 898, + "name": "urlToBlob", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/urlToBlob.ts#L7" + } + ], + "signatures": [ + { + "id": 899, + "name": "urlToBlob", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url to blob" + } + ], + "blockTags": [ + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- blob" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/urlToBlob.ts", + "line": 7, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/urlToBlob.ts#L7" + } + ], + "parameters": [ + { + "id": 900, + "name": "input", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "url" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "string" + } + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "union", + "types": [ + { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.dom.d.ts", + "qualifiedName": "Blob" + }, + "name": "Blob", + "package": "typescript" + }, + { + "type": "literal", + "value": null + } + ] + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 776, + "name": "uuid", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 10, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/uuid.ts#L10" + } + ], + "signatures": [ + { + "id": 777, + "name": "uuid", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "Browser-side generation of uuid, using v4 method" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nuuid() // '4222fcfe-5721-4632-bede-6043885be57d'\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- uuid" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/uuid.ts", + "line": 10, + "character": 13, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/uuid.ts#L10" + } + ], + "type": { + "type": "intrinsic", + "name": "string" + } + } + ] + }, + { + "id": 847, + "name": "waiting", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 7, + "character": 6, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/waiting.ts#L7" + } + ], + "signatures": [ + { + "id": 848, + "name": "waiting", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting for a while" + } + ] + }, + "sources": [ + { + "fileName": "src/waiting.ts", + "line": 7, + "character": 16, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/waiting.ts#L7" + } + ], + "parameters": [ + { + "id": 849, + "name": "milliseconds", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "waiting time (milliseconds)" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "number" + } + }, + { + "id": 850, + "name": "throwOnTimeout", + "variant": "param", + "kind": 32768, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "throw on timeout" + } + ] + }, + "type": { + "type": "intrinsic", + "name": "boolean" + }, + "defaultValue": "false" + } + ], + "type": { + "type": "reference", + "target": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Promise" + }, + "typeArguments": [ + { + "type": "intrinsic", + "name": "void" + } + ], + "name": "Promise", + "package": "typescript" + } + } + ] + }, + { + "id": 509, + "name": "windowSize", + "variant": "declaration", + "kind": 64, + "flags": {}, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L15" + } + ], + "signatures": [ + { + "id": 510, + "name": "windowSize", + "variant": "signature", + "kind": 4096, + "flags": {}, + "comment": { + "summary": [ + { + "kind": "text", + "text": "windowSize to get the window size" + } + ], + "blockTags": [ + { + "tag": "@example", + "content": [ + { + "kind": "code", + "text": "```js\nwindowSize() // { width: 1280, height: 800 }\n```" + } + ] + }, + { + "tag": "@returns", + "content": [ + { + "kind": "text", + "text": "- the width and height" + } + ] + } + ] + }, + "sources": [ + { + "fileName": "src/windowSize.ts", + "line": 15, + "character": 9, + "url": "https://github.com/saqqdy/js-cool/blob/47b213c/src/windowSize.ts#L15" + } + ], + "type": { + "type": "reference", + "target": 511, + "name": "WindowSizeObj", + "package": "js-cool" + } + } + ] + } + ], + "groups": [ + { + "title": "Namespaces", + "children": [ + 660 + ] + }, + { + "title": "Interfaces", + "children": [ + 902, + 905, + 546, + 566, + 161, + 540, + 157, + 110, + 752, + 678, + 511 + ] + }, + { + "title": "Type Aliases", + "children": [ + 901, + 908, + 910, + 715, + 717, + 716, + 160, + 927, + 924, + 918, + 921, + 915, + 156, + 115 + ] + }, + { + "title": "Variables", + "children": [ + 932, + 507, + 508, + 45, + 1 + ] + }, + { + "title": "Functions", + "children": [ + 778, + 788, + 792, + 797, + 655, + 766, + 771, + 519, + 865, + 869, + 783, + 851, + 873, + 876, + 879, + 883, + 886, + 889, + 543, + 83, + 741, + 68, + 71, + 27, + 549, + 814, + 818, + 760, + 130, + 86, + 643, + 646, + 606, + 634, + 618, + 718, + 22, + 637, + 640, + 74, + 702, + 892, + 826, + 124, + 691, + 514, + 127, + 597, + 621, + 624, + 563, + 735, + 80, + 532, + 829, + 569, + 575, + 667, + 609, + 731, + 583, + 589, + 802, + 500, + 495, + 135, + 141, + 138, + 147, + 503, + 497, + 153, + 150, + 2, + 695, + 810, + 6, + 10, + 14, + 18, + 669, + 673, + 757, + 537, + 553, + 842, + 684, + 92, + 94, + 98, + 103, + 662, + 746, + 600, + 626, + 835, + 612, + 116, + 557, + 649, + 652, + 895, + 763, + 65, + 77, + 806, + 822, + 89, + 898, + 776, + 847, + 509 + ] + } + ], + "packageName": "js-cool", + "packageVersion": "5.13.0", + "readme": [ + { + "kind": "text", + "text": "
\n\n# js-cool\n\nCollection of common JavaScript / TypeScript utilities\n\n[![NPM version][npm-image]][npm-url]\n[![Codacy Badge][codacy-image]][codacy-url]\n[![tree shaking][tree-shaking-image]][tree-shaking-url]\n![typescript][typescript-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n[![gzip][gzip-image]][gzip-url]\n[![License][license-image]][license-url]\n\n[![Sonar][sonar-image]][sonar-url]\n\n
\n\n
\n\n### **[Documentation](https://www.saqqdy.com/js-cool)** • **[Change Log](./CHANGELOG.md)**\n\n**Read this in other languages: English | [简体中文](./README-zh_CN.md)**\n\n
\n\n- [js-cool](#js-cool)\n - [Installation](#installation)\n - [Usage](#usage)\n - [Es6 module](#es6-module)\n - [Node.js require](#nodejs-require)\n - [Using unpkg CDN](#using-unpkg-cdn)\n - [API Reference](#api-reference)\n - [Global Parameters](#global-parameters)\n - [client](#client)\n - [pattern](#pattern)\n - [Extras for String & Array & Object & Function](#extras-for-string--array--object--function)\n - [trim](#trim)\n - [clearAttr](#clearattr)\n - [clearHtml](#clearhtml)\n - [escape](#escape)\n - [unescape](#unescape)\n - [getNumber](#getnumber)\n - [camel2Dash](#camel2dash)\n - [dash2Camel](#dash2camel)\n - [randomColor](#randomcolor)\n - [randomNumber](#randomnumber)\n - [randomNumbers](#randomnumbers)\n - [randomString](#randomstring)\n - [shuffle](#shuffle)\n - [fingerprint](#fingerprint)\n - [getCHSLength](#getchslength)\n - [cutCHSString](#cutchsstring)\n - [Determine](#determine)\n - [isDigitals](#isdigitals)\n - [isExitsFunction](#isexitsfunction)\n - [isExitsVariable](#isexitsvariable)\n - [isEqual](#isequal)\n - [isWindow](#iswindow)\n - [isPlainObject](#isplainobject)\n - [isDarkMode](#isdarkmode)\n - [isObject](#isobject)\n - [isArray](#isarray)\n - [isIterable](#isiterable)\n - [inBrowser](#inbrowser)\n - [inNodeJs](#innodejs)\n - [windowSize](#windowsize)\n - [getAppVersion](#getappversion)\n - [appVersion](#appversion)\n - [getOsVersion](#getosversion)\n - [osVersion](#osversion)\n - [browserVersion](#browserversion)\n - [compareVersion](#compareversion)\n - [parseUrlParam](#parseurlparam)\n - [spliceUrlParam](#spliceurlparam)\n - [getDirParam](#getdirparam)\n - [getQueryParam](#getqueryparam)\n - [getQueryParams](#getqueryparams)\n - [getUrlParam](#geturlparam)\n - [getUrlParams](#geturlparams)\n - [localStorage & sessionStorage & Cookie](#localstorage--sessionstorage--cookie)\n - [getCache](#getcache)\n - [setCache](#setcache)\n - [delCache](#delcache)\n - [getSession](#getsession)\n - [setSession](#setsession)\n - [delSession](#delsession)\n - [getCookie](#getcookie)\n - [getCookies](#getcookies)\n - [setCookie](#setcookie)\n - [delCookie](#delcookie)\n - [Base64 & UTF8](#base64--utf8)\n - [encodeBase64](#encodebase64)\n - [encodeUtf8](#encodeutf8)\n - [decodeBase64](#decodebase64)\n - [decodeUtf8](#decodeutf8)\n - [Events](#events)\n - [stopBubble](#stopbubble)\n - [stopDefault](#stopdefault)\n - [addEvent](#addevent)\n - [removeEvent](#removeevent)\n - [getScrollPosition](#getscrollposition)\n - [Utilities](#utilities)\n - [nextIndex](#nextindex)\n - [nextVersion](#nextversion)\n - [promiseFactory](#promisefactory)\n - [fixNumber](#fixnumber)\n - [mapTemplate](#maptemplate)\n - [extend](#extend)\n - [delay](#delay)\n - [getType](#gettype)\n - [getFileType](#getfiletype)\n - [cleanData](#cleandata)\n - [download](#download)\n - [searchObject](#searchobject)\n - [openUrl](#openurl)\n - [copy](#copy)\n - [toThousands](#tothousands)\n - [all](#all)\n - [any](#any)\n - [uuid](#uuid)\n - [CSVToArray](#csvtoarray)\n - [arrayToCSV](#arraytocsv)\n - [CSVToJSON](#csvtojson)\n - [JSONToCSV](#jsontocsv)\n - [RGBToHex](#rgbtohex)\n - [intersect](#intersect)\n - [union](#union)\n - [minus](#minus)\n - [complement](#complement)\n - [contains](#contains)\n - [unique](#unique)\n - [fillIPv6](#fillipv6)\n - [getProperty](#getproperty)\n - [setProperty](#setproperty)\n - [loadSource](#loadsource)\n - [mountCss](#mountcss)\n - [mountImg](#mountimg)\n - [mountJs](#mountjs)\n - [mountStyle](#mountstyle)\n - [preloader](#preloader)\n - [waiting](#waiting)\n - [awaitTo](#awaitto)\n - [Blob arrayBuffer base64 file blobUrl](#blob-arraybuffer-base64-file-bloburl)\n - [arrayBufferToBase64](#arraybuffertobase64)\n - [arrayBufferToBlob](#arraybuffertoblob)\n - [base64ToArrayBuffer](#base64toarraybuffer)\n - [base64ToBlob](#base64toblob)\n - [base64ToFile](#base64tofile)\n - [blobToArrayBuffer](#blobtoarraybuffer)\n - [blobToBase64](#blobtobase64)\n - [blobToUrl](#blobtourl)\n - [fileToBase64](#filetobase64)\n - [svgToBlob](#svgtoblob)\n - [urlToBlob](#urltoblob)\n - [Support & Issues](#support--issues)\n - [License](#license)\n\n## Installation\n\n" + }, + { + "kind": "code", + "text": "```bash\n# use pnpm\npnpm install js-cool\n\n## use npm\nnpm install --save js-cool\n```" + }, + { + "kind": "text", + "text": "\n\n## Usage\n\n### ES6 module\n\n" + }, + { + "kind": "code", + "text": "```js\nimport { osVersion } from 'js-cool'\n\nosVersion()\n```" + }, + { + "kind": "text", + "text": "\n\n### Node.js require\n\n" + }, + { + "kind": "code", + "text": "```js\nconst { osVersion } = require('js-cool')\n\nosVersion()\n```" + }, + { + "kind": "text", + "text": "\n\n### Using unpkg CDN\n\n" + }, + { + "kind": "code", + "text": "```html\n\n\n```" + }, + { + "kind": "text", + "text": "\n\n## API Reference\n\n### Global Parameters\n\n#### client\n\nthe client method returns a browser result object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { client } from 'js-cool'\n\nclient.get(['device', 'browser', 'engine', 'os']) // { device: 'xxx', browser: 'xxx', os: 'xxx', engine: 'xxx' }\nclient.get('device') // { device: 'xxx' }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare class Client {\n matchMap: Record\n root: Window & typeof globalThis\n navigator: Navigator\n constructor(options: ClientOptions)\n\n get(names?: InfoTypes | InfoTypes[]): Partial<{\n device: InfoKeys | undefined\n os: InfoKeys | undefined\n browser: InfoKeys | undefined\n engine: InfoKeys | undefined\n language: any\n network: any\n orientation: string | undefined\n }>\n\n getInfoByType(infoKey: InfoKey): InfoKeys | undefined\n getOrientationStatus(): 'vertical' | 'horizontal' | undefined\n getNetwork(): any\n getLanguage(): any\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### pattern\n\npattern returns some common rules\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\npattern.number.test('333') // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const pattern: {\n any: RegExp\n number: RegExp\n string: RegExp\n postcode: RegExp\n url: RegExp\n username: RegExp\n float: RegExp\n email: RegExp\n mobile: RegExp\n chinese: RegExp\n tel: RegExp\n qq: RegExp\n pass: RegExp\n json: RegExp\n arrjson: RegExp\n array: RegExp\n isjson: RegExp\n textarea: RegExp\n}\n```" + }, + { + "kind": "text", + "text": "\n\n### Extras for String & Array & Object & Function\n\n#### clearAttr\n\nRemove all attributes of HTML tags\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| string | string with html tags | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nclearAttr('
test
')\n// '
test
'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function clearAttr(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### clearHtml\n\nRemove HTML tags\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| string | string with html tags | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nclearHtml('
test
string
')\n// 'teststring'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function clearHtml(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### escape\n\nEscaping HTML Special Characters\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| string | string with html tags | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nescape('
test
string
')\n// '<div>test<br />string</div>'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function escape(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### unescape\n\nRestore HTML Special Characters\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| string | string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nunescape('<div>test<br />string</div>')\n// '
test
string
'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function unescape(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getNumber\n\nGet the number in the string\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------ | -------- | -------- | -------- | ------- |\n| string | pass in a string with a number | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetNumber('Chrome123.33')\n// '123.33'\n\ngetNumber('234test.88')\n// '234.88'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getNumber(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### camel2Dash\n\nConverts humped strings to -spaced and all lowercase Dash pattern\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | -------- | -------- | -------- | ------- |\n| string | the string to be converted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncamel2Dash('jsCool') // js-cool\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function camel2Dash(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### dash2Camel\n\nConverts -spaced and all lowercase Dash patterns to humped strings\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | -------- | -------- | -------- | ------- |\n| string | the string to be converted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndash2Camel('js-cool') // jsCool\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function dash2Camel(string: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomColor\n\nGenerate random hexadecimal colors\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: none\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nrandomColor() // #ff6600\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomColor(): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomNumber\n\nGet a random number\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------- | -------- | -------- | -------- | ------- |\n| min | the minimum value of the random number | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 1 |\n| max | the maximum value of the random number | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 10 |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nrandomNumber() // 8\nrandomNumber(0.1, 0.9) // 0.8\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomNumber(min?: number, max?: number): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomNumbers\n\nGenerate n random integers that sum to a fixed sum\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.4.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------------- | --------- | -------- | -------- | ------- |\n| n | Number of generated integers | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 1 |\n| sum | Sum of generated integers | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 100 |\n| noZero | Generate integers that are not zero | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nrandomNumbers()\n// [8]\n\nrandomNumbers(4, 5)\n// [1, 1, 2, 1]\n\nrandomNumbers(4, 5, false)\n// [0, 1, 2, 2]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomNumbers(n?: number, sum?: number): number[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### randomString\n\nGet a random string\n\n> v5.4.0 " + }, + { + "kind": "code", + "text": "`widthSpecialChar`" + }, + { + "kind": "text", + "text": " changed to " + }, + { + "kind": "code", + "text": "`options`" + }, + { + "kind": "text", + "text": ", still compatible with old usage, widthSpecialChar=true equivalent to { charTypes: ['uppercase', 'lowercase', 'number', 'special'] }\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------------- | ------------------------------- | -------- | -------- | ----------------------------------------------------- |\n| len | the length of the random string that needs to be obtained | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | 32 |\n| options | randomString options | " + }, + { + "kind": "code", + "text": "`RandomStringOptions`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`{ charTypes: ['uppercase', 'lowercase', 'number'] }`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default\nrandomString()\n// PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ\n\n// 2. Generate a 16-bit random string\nrandomString(16)\n// coTgZy0mqqMJ1sMM\n\n// 3. Same effect as #2 above\nrandomString({\n length: 16\n})\n// ngCI5aPqJm84t90d\n\n// 4. Generate containing special characters (old way of passing values, not recommended)\nrandomString(true)\n// 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd\n\n// 5. Same effect as #4 above (recommended)\nrandomString({\n charTypes: ['uppercase', 'lowercase', 'number', 'special']\n})\n// m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK\n\n// 6. Same effect as #4 above, Limit string length to 16 bits\nrandomString(16, true)\n// dXz[J_sYM^3d8fnA\n\n// 7. Generate a 16-bit random number\nrandomString({\n length: 16,\n charTypes: 'number'\n})\n// 7450026301030286\n\n// 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\nrandomString({\n length: 16,\n noConfuse: true\n})\n// 8DEGna8ppC4mqyew\n\n// 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.\nrandomString({\n length: 16,\n strict: true\n})\n// PFYAPD5KFqOHIADL\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function randomString(len?: number, options?: RandomStringOptions | boolean): string\n\ndeclare function randomString(\n len?: RandomStringOptions | boolean,\n options?: RandomStringOptions | boolean\n): string\n\ndeclare type RandomStringCharType = 'uppercase' | 'lowercase' | 'number' | 'special'\n\ndeclare interface RandomStringOptions {\n length?: number\n charTypes?: RandomStringCharType | ArrayOneMore\n /**\n * Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1\n */\n noConfuse?: boolean\n /**\n * The generated random string must contain each of the listed character types\n */\n strict?: boolean\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### shuffle\n\nshuffling algorithm, Reordering arrays or strings\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.4.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | ---------------- | -------- | -------- | ------- |\n| value | arrays or strings | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| size | new array or string length | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array | string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst str = 'abcde'\nconst arr = [1, 2, 3]\n\nshuffle(str)\n// cdbse\n\nshuffle(arr)\n// [3, 1, 2]\n\nshuffle(arr, 2)\n// [3, 2]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function shuffle(value: string, size?: number): string\n\ndeclare function shuffle(value: T, size?: number): T\n```" + }, + { + "kind": "text", + "text": "\n\n#### fingerprint\n\nGenerating Browser Fingerprints\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------------- |\n| domain | key string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | location.host |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfingerprint('www.saqqdy.com') // wc7sWJJA8\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fingerprint(domain?: string): string | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getCHSLength\n\nGet the length of the string, Chinese counts as 2 characters\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------ | -------- | -------- | -------- | ------- |\n| str | input string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetCHSLength('测试') // 2\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCHSLength(str: string): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### cutCHSString\n\nIntercept string, Chinese counts as 2 bytes\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------- | --------- | -------- | -------- | ------- |\n| str | the string to be intercepted | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| len | length | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| hasDot | output with dot | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncutCHSString('测试', 1) // 测\ncutCHSString('测试', 1, true) // 测...\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function cutCHSString(str: string, len?: number, hasDot?: boolean): string\n```" + }, + { + "kind": "text", + "text": "\n\n### Determine\n\n#### isDigitals\n\nDetermine if a string is a number\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------- | -------- | -------- | -------- | ------- |\n| str | the string to be tested | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisDigitals('2.11') // true\nisDigitals('2.3x') // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isDigitals(str: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isExitsFunction\n\nDetermine if a function is defined\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| name | function name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisExitsFunction('test') // false\nisExitsFunction('console.log') // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isExitsFunction(name: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isExitsVariable\n\nDetermine if a variable is defined\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| name | variable name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisExitsVariable('test') // false\nisExitsVariable('window') // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isExitsVariable(name: string): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isEqual\n\nDetermine if 2 objects are equal\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.12.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| a | source | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| b | compare | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisEqual({ a: 22, b: {} }, { b: {}, a: 22 })\n// true\n\nisEqual([1, 2], [2, 1])\n// false\n\nisEqual(NaN, NaN)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isEqual(a: T, b: P): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isWindow\n\nDetermine if window object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisWindow({}) // false\nisWindow(window) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isWindow(target: T): target is Window\n```" + }, + { + "kind": "text", + "text": "\n\n#### isPlainObject\n\nDetermine if target is an plain object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisPlainObject({}) // true\nisPlainObject(window) // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ntype Primitive = bigint | boolean | null | number | string | symbol | undefined\n\ntype JSONValue = Primitive | PlainObject | JSONArray\n\n// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style\ninterface PlainObject {\n [key: string]: JSONValue\n}\n\ninterface JSONArray extends Array {}\n\ndeclare function isPlainObject(target: unknown): target is PlainObject\n```" + }, + { + "kind": "text", + "text": "\n\n#### isDarkMode\n\nDetermine if dark color mode\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: none\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisDarkMode() // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isDarkMode(): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### isObject\n\nDetermine if target is an object\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisObject({}) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isObject(target: T): target is Object\n```" + }, + { + "kind": "text", + "text": "\n\n#### isArray\n\nDetermine if it is an array\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisArray([]) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isIterable(target: any): target is any[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### isIterable\n\nDetermine if it is iterable\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.7.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nisIterable([]) // true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function isIterable(target: T | Iterable): target is Iterable\n```" + }, + { + "kind": "text", + "text": "\n\n#### inBrowser\n\nDetermine if it is running on the browser side\n\n- Since: " + }, + { + "kind": "code", + "text": "`4.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfunction test() {\n if (!inBrowser) return null\n // ...\n}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const inBrowser: boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### inNodeJs\n\nDetermine if it is running on node.js\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nif (inNodeJs) {\n //\n}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const inNodeJs: boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### windowSize\n\nGet the window size\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`{ width, height }`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nwindowSize()\n// { width: 1280, height: 800 }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface WindowSizeObj {\n width: number\n height: number\n}\n\ndeclare function windowSize(): WindowSizeObj\n```" + }, + { + "kind": "text", + "text": "\n\n#### getAppVersion\n\nGet the APP version number\n\n> deprecated please use 'appVersion' instead\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------- | --------- | -------- | -------- | --------------------- |\n| appName | app name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| withApp | whether to bring the name | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| userAgent | ua or any ua like string, may not be passed | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`navigator.userAgent`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | boolean | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\n\ngetAppVersion('Chrome') // 114.0.0.0\ngetAppVersion('Safari', true) // Safari/537.36\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getAppVersion(\n appName: string,\n withApp?: boolean,\n userAgent?: string\n): string | boolean | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### appVersion\n\nGet the app version number\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.1.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------- | --------- | -------------- | -------- | ------------------- |\n| appName | app name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ua | ua or any ua like string, may not be passed | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | navigator.userAgent |\n| ignoreCase | whether to ignore case | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'\n\nappVersion('Chrome') // 114.0.0.0\nappVersion('Safari') // 537.36\nappVersion('appname', false) // null\nappVersion('appname') // 1.0.0-beta.8\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function appVersion(appName: string): string | null\ndeclare function appVersion(appName: string, ua: string): string | null\ndeclare function appVersion(appName: string, ua: boolean): string | null\ndeclare function appVersion(appName: string, ua: string, ignoreCase: boolean): string | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getOsVersion\n\nGet the phone system version\n\n> deprecated: please use 'osVersion' instead\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------------------- | -------- | -------- | -------- | --------------------- |\n| osName | system type string Android, iPod, iWatch or iPhone | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| withOS | whether to bring the name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| userAgent | ua or any ua like string, may not be passed | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`navigator.userAgent`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | boolean | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetOsVersion('iPhone')\n// '13.2.3'\n\ngetOsVersion('iPhone', true)\n// 'iPhone/13.2.3'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getOsVersion(\n osName: string,\n withOS?: boolean,\n userAgent?: string\n): string | boolean | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### osVersion\n\nget the system version\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.1.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------- | -------- | -------- | -------- | ------------------- |\n| ua | ua or any ua like string, may not be passed | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | navigator.userAgent |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`OsVersion | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.3' \\}\n// iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'\nosVersion() // \\{ name: 'iOS', version: '13.2.3' \\}\n// mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'MacOS', version: '10.15.7' \\}\n// windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: '10.0' \\}\n// windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'\nosVersion() // \\{ name: 'Windows', version: 'XP' \\}\n// windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'\nosVersion() // \\{ name: 'WindowsPhone', version: '10.0' \\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface OsVersion {\n name: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS'\n version: string\n}\n\ndeclare function osVersion(ua?: string): OsVersion | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### browserVersion\n\nGet the browser name and version\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------- | -------- | -------- | -------- | ------------------- |\n| ua | ua or any ua like string, may not be passed | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | navigator.userAgent |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`BrowserVersion | null`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n// Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36\nbrowserVersion() // \\{ name: 'Chrome', version: '114.0.0.0' \\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface BrowserVersion {\n name: 'Windows' | 'MacOS' | 'Android' | 'iOS' | 'WindowsPhone' | 'Debian' | 'WebOS'\n version: string\n}\n\ndeclare function browserVersion(ua?: string): BrowserVersion | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### compareVersion\n\n> v5.8.0 support compare tag version\n\nVersion number size comparison, tag version: " + }, + { + "kind": "code", + "text": "`rc`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`beta`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`alpha`" + }, + { + "kind": "text", + "text": " > " + }, + { + "kind": "code", + "text": "`other`" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`4.7.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------- | -------- | -------- | -------- | ------- |\n| input | input version | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| compare | compare version | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`0 | 1 | -1`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncompareVersion('1.11.0', '1.9.9')\n// => 1: 1=Version 1.11.0 is newer than 1.9.9\n\ncompareVersion('1.11.0', '1.11.0')\n// => 0: 0=Versions 1.11.0 and 1.11.0 are the same\n\ncompareVersion('1.11.0', '1.99.0')\n// => -1: -1=Version 1.11.0 is older than 1.99.0\n\ncompareVersion('1.0.0.0.0.10', '1.0')\n// => -1\n\n// compare tag version: rc > beta > alpha > other\ncompareVersion('1.11.0', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-beta.1', '1.11.0')\n// => -1\n\ncompareVersion('1.11.0-beta.10', '1.11.0-beta.10')\n// => 0\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-beta.1')\n// => -1\n\ncompareVersion('1.11.0-alpha.10', '1.11.0-rc.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-alpha.1')\n// => -1\n\ncompareVersion('1.11.0-tag.10', '1.11.0-tag.1')\n// => 1\n\ncompareVersion('1.11.0-release.10', '1.11.0-tag.1')\n// => 1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function compareVersion(input: string, compare: string): 0 | 1 | -1\n```" + }, + { + "kind": "text", + "text": "\n\n#### parseUrlParam\n\nparse url params. (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------- | --------- | -------------- | -------- | ------- |\n| url | url string (like: ?key1=value1&key2=value2) | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| covert | Converts a specific string to a corresponding value | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nparseUrlParam(\n '?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test'\n)\n// \\{\"key1\":\"100\",\"key2\":\"true\",\"key3\":\"null\",\"key4\":\"undefined\",\"key5\":\"NaN\",\"key6\":\"10.888\",\"key7\":\"Infinity\",\"key8\":\"test\"\\}\n\nparseUrlParam(\n '?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test',\n true\n)\n// \\{\"key1\":100,\"key2\":true,\"key3\":null,\"key5\":NaN,\"key6\":10.888,\"key7\":Infinity,\"key8\":\"test\"\\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function parseUrlParam(url: string, covert?: boolean): Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### spliceUrlParam\n\nSplice URL parameters (single layer only)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.3.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ----------------- | -------------------------------------------------------------- | --------- | -------------- | -------- | ------- |\n| params | json object | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| covert | Convert a null value type (null/undefined/) to an empty string | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n| withQuestionsMark | Splicing a question mark | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nspliceUrlParam({ key1: '100', key2: 'true', key3: 'null', key4: 'undefined', key4: '测试' }) // ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95\nspliceUrlParam({ key1: '100', key2: 'true', key3: 'null', key4: 'undefined' }, true) // ?key1=100&key2=true&key3=&key4=\nspliceUrlParam({ key1: '100', key2: 'true', key3: 'null', key4: 'undefined' }, true, false) // key1=100&key2=true&key3=&key4=\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function spliceUrlParam(\n params: Record,\n covert?: boolean,\n withQuestionsMark?: boolean\n): string | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getDirParam\n\nGet the URL parameter in the form of a directory\n\n> It will be refactored and renamed getDirParams in the next major release.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| url | http url | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n//\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface DirParamType {\n path?: string[]\n host?: string\n}\n\ndeclare function getDirParam(url: string): DirParamType\n```" + }, + { + "kind": "text", + "text": "\n\n#### getQueryParam\n\nGet a single query parameter (behind \"#\")\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------- | -------- | -------- | -------- | --------------- |\n| key | key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetQueryParam('key1')\n// key1 => xxx\n\ngetQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 200\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getQueryParam(key: string): string | undefined\n\ndeclare function getQueryParam(key: string, url: string): string | undefined\n```" + }, + { + "kind": "text", + "text": "\n\n#### getQueryParams\n\nGet all query parameters (behind \"#\"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------- | --------- | -------------- | -------- | --------------- |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n| covert | Converts a specific string to a corresponding value | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetQueryParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"200\"\\}\n\ngetQueryParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":200\\}\n\ngetQueryParams(true)\n// \\{\"key1\":200\\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getQueryParams(url?: string, covert?: boolean): Record | null\n```" + }, + { + "kind": "text", + "text": "\n\n#### getUrlParam\n\nGet a single URL parameter (from the \"location.search\", before \"#\")\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------- | -------- | -------- | -------- | --------------- |\n| key | key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetUrlParam('key1')\n// key1 => xxx\n\ngetUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')\n// key1 => 100\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getUrlParam(key: string): string | undefined\n\ndeclare function getUrlParam(key: string, url: string): string | undefined\n```" + }, + { + "kind": "text", + "text": "\n\n#### getUrlParams\n\nGet all URL parameters (from the \"location.search\", before \"#\"). (If covert is passed true: Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------- | --------- | -------------- | -------- | --------------- |\n| url | pass in the url string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`location.href`" + }, + { + "kind": "text", + "text": " |\n| covert | Converts a specific string to a corresponding value | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetUrlParams('https://test.com?key1=100#/home?key1=200')\n// \\{\"key1\":\"100\"\\}\n\ngetUrlParams('https://test.com?key1=100#/home?key1=200', true)\n// \\{\"key1\":100\\}\n\ngetUrlParams(true)\n// \\{\"key1\":100\\}\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getUrlParams(url?: string, covert?: boolean): Record | null\n```" + }, + { + "kind": "text", + "text": "\n\n### localStorage & sessionStorage & Cookie\n\n#### getCache\n\nGet the cache, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------- | -------- | -------- | -------- | ------- |\n| name | cache key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getCache, setCache } from 'js-cool'\n\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2)\nsetCache('data3', data3)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\ngetCache('data3') // null\n\ngetCache('data4') // null\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCache(name: string): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### setCache\n\nSet the cache, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------------- | -------- | -------- | -------- | ------- |\n| name | cache key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | cache data, can be passed directly into Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| seconds | cache time (seconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getCache, setCache } from 'js-cool'\n\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetCache('data1', data1)\nsetCache('data2', data2, 10)\n\ngetCache('data1') // 100\ngetCache('data2') // {a:10}\n\nsetTimeout(() => {\n getCache('data2') // null\n}, 15000)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setCache(name: string, value: T, seconds?: number | string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### delCache\n\nDelete localStorage\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------- | -------- | -------- | -------- | ------- |\n| name | cache key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndelCache('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delCache(name: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### getSession\n\nGet the session, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | -------- | -------- | -------- | ------- |\n| name | session key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2)\nsetSession('data3', data3)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\ngetSession('data3') // null\n\ngetSession('data4') // null\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getSession(name: string): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### setSession\n\nSet the session, if the deposited is Object, the retrieved is also Object, no need to convert again\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------ | -------- | -------- | -------- | ------- |\n| name | session key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | session data, can be passed directly into Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| seconds | session time (seconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getSession, setSession } from 'js-cool'\n\nconst data1 = 100\nconst data2 = { a: 10 }\nconst data3 = null\n\nsetSession('data1', data1)\nsetSession('data2', data2, 10)\n\ngetSession('data1') // 100\ngetSession('data2') // {a:10}\n\nsetTimeout(() => {\n getSession('data2') // null\n}, 15000)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setSession(name: string, value: T, seconds?: number | string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### delSession\n\nDelete sessionStorage\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | -------- | -------- | -------- | ------- |\n| name | session key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndelSession('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delSession(name: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### getCookie\n\nGet cookie by name\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------- | -------- | -------- | -------- | ------- |\n| name | cookie key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetCookie('data1') // 100\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCookie(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getCookies\n\nGet all cookies\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.6.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: 'none'\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetCookies()\n// { token: 'xxx', name: 'saqqdy' }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getCookies(): Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### setCookie\n\nSet cookie\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------------------------- | -------- | ---------------------- | -------- | ------- |\n| name | cookie key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | cookie data, can be passed directly into Object | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| seconds | cookie time (seconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n| path | cookie path | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`/`" + }, + { + "kind": "text", + "text": " |\n| samesite | SameSite type | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`Strict`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`Lax`" + }, + { + "kind": "text", + "text": " /" + }, + { + "kind": "code", + "text": "`None`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`None`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { getCookie, setCookie } from 'js-cool'\n\nconst data1 = 100\nconst data2 = 200\n\nsetCookie('data1', data1)\nsetCookie('data2', data2, 10)\n\ngetCookie('data1') // 100\ngetCookie('data2') // 200\n\nsetTimeout(() => {\n getCookie('data2') // null\n}, 15000)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setCookie(\n name: string,\n value: T,\n seconds: string | number,\n path?: string,\n samesite?: boolean\n): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### delCookie\n\nDelete cookie\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------- | -------- | -------- | -------- | ------- |\n| name | cookie key name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndelCookie('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delCookie(name: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n### Base64 & UTF8\n\n#### encodeBase64\n\nconvert strings, numbers to base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be encoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nencodeBase64('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function encodeBase64(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### decodeBase64\n\nbase64 decoding\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be decoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndecodeBase64('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function decodeBase64(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### encodeUtf8\n\nconvert strings, numbers to utf8\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be encoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nencodeUtf8('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function encodeUtf8(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### decodeUtf8\n\nutf8 decoding\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------ | ----------------- | -------- | -------- | ------- |\n| input | the string to be decoded | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndecodeUtf8('data')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function decodeUtf8(name: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n### Events\n\n#### stopBubble\n\nstop bubbling\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------ | ------- | -------- | -------- | ------- |\n| e | dom's event object | " + }, + { + "kind": "code", + "text": "`Event`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nstopBubble(event)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function stopBubble(e: Event): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### stopDefault\n\nstop default events\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------ | ------- | -------- | -------- | ------- |\n| e | dom's event object | " + }, + { + "kind": "code", + "text": "`Event`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nstopDefault(event)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function stopDefault(e: Event): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### addEvent\n\nevent delegate, support multiple delegates\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------- | ------------- | -------- | -------- | ------- |\n| element | js dom object | " + }, + { + "kind": "code", + "text": "`HTMLElement`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | The type of the event. No need to add on | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| handler | Callback method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\naddEvent(document, 'click', functionName)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function addEvent(element: AnyObject, type: string, handler: AnyFunction): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### removeEvent\n\nremoveEvent removes the event delegate created by addEvent\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------- | ------------- | -------- | -------- | ------- |\n| element | js dom object | " + }, + { + "kind": "code", + "text": "`HTMLElement`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | The type of the event. No need to add on | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| handler | Callback method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nremoveEvent(document, 'click', functionName)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function removeEvent(element: AnyObject, type: string, handler: AnyFunction): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### getScrollPosition\n\nGet slide to top and bottom return 'top' 'bottom', recommend using limit flow\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: 'top' | 'bottom' | undefined\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetScrollPosition() // ‘bottom’\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getScrollPosition(): string | void\n```" + }, + { + "kind": "text", + "text": "\n\n### Utilities\n\n#### nextIndex\n\nreturn the next zIndex value\n\n> change mix defaults to 0\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| min | minimum value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`0`" + }, + { + "kind": "text", + "text": " |\n| max | maximum value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nnextIndex() // 1\n\nnextIndex(1000) // 1001\n\nnextIndex(10, 100) // 100\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function nextIndex(min?: number, max?: number): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### nextVersion\n\nreturn the next version, **Only version types with no more than 3 digits are supported**. (Follow the npm version rules)\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.10.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------- | --------------------------------------------------------------------------------------- | -------- | -------- | ------- |\n| version | version(like: 1.0.0) | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | version type | " + }, + { + "kind": "code", + "text": "`major`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`minor`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`patch`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`premajor`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`preminor`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`prepatch`" + }, + { + "kind": "text", + "text": " \\| " + }, + { + "kind": "code", + "text": "`prerelease`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`patch`" + }, + { + "kind": "text", + "text": " |\n| preid | prerelease id | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | '' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nnextVersion('1.2.33') // 1.2.34\n\nnextVersion('1.2.33', 'major') // 2.0.0\n\nnextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function nextVersion(\n version: string,\n type?: 'major' | 'minor' | 'patch' | 'premajor' | 'preminor' | 'prepatch' | 'prerelease',\n preid?: string\n): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### promiseFactory\n\nConvert an object to a promise like api\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.10.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------- | ---------- | -------- | -------- | ------- |\n| original | original object | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| resolver | resolver function | " + }, + { + "kind": "code", + "text": "`Function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`T & PromiseLike`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { promiseFactory, waiting } from 'js-cool'\n\nfunction promise() {\n const stats = {\n value: 100\n }\n\n const resolver = () =>\n new Promise(resolve =>\n waiting(2000).then(() => {\n stats.value = 200\n resolve(stats)\n })\n )\n\n return promiseFactory(stats, resolver)\n}\n\nconst res = promise()\n// res => 100\nconst res = await promise()\n// res => 200\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function promiseFactory(\n original: T,\n resolver: () => Promise\n): T & PromiseLike\n```" + }, + { + "kind": "text", + "text": "\n\n#### fixNumber\n\ntruncate a few decimal places, not 0 for shortage\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------ | ----------------- | -------- | -------- | ------- |\n| number | the number of digits to be processed | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| n | the number of decimal places to keep | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`2`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string | number`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfixNumber('100.888')\n// 100.88\n\nfixNumber('100.8', 2)\n// 100.8\n\nfixNumber('100.8888', 3)\n// 100.888\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fixNumber(number: string | number, n?: number): number\n```" + }, + { + "kind": "text", + "text": "\n\n#### mapTemplate\n\nReplacing specific data in a template string, support " + }, + { + "kind": "code", + "text": "`${xxxx}`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`{{xxxx}}`" + }, + { + "kind": "text", + "text": " and " + }, + { + "kind": "code", + "text": "`{xxxx}`" + }, + { + "kind": "text", + "text": "\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.9.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------------------------- | --------------------- | -------- | -------- | ------- |\n| tmp | Template string | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| data | Template data of map function | " + }, + { + "kind": "code", + "text": "`Function`" + }, + { + "kind": "text", + "text": "\\| " + }, + { + "kind": "code", + "text": "`Object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst tmp = \"My name is ${name}, I'm ${age} years old.\"\nmapTemplate(tmp, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n\nmapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 })[key])\n// My name is saqqdy, I'm 28 years old.\n\nconst tmp1 = \"My name is {{name}}, I'm {{age}} years old.\"\nmapTemplate(tmp1, {\n name: 'saqqdy',\n age: 18\n})\n// My name is saqqdy, I'm 18 years old.\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function mapTemplate(\n tmp: string,\n data: ((value: string) => unknown) | Record\n): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### extend\n\ndeep copy\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------- | ------------------------------------ | -------- | -------- | ------- |\n| target | boolean or array or object | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`ArrayOneMore`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ...args | array or object | " + }, + { + "kind": "code", + "text": "`ArrayOneMore`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array | object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nextend(true, {}, {})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function extend(\n target: ExtendObjectData,\n ...args: ArrayOneMore\n): ExtendObjectData\n\ndeclare function extend(target: boolean, ...args: ArrayOneMore): ExtendObjectData\n\ndeclare function extend(\n target: ExtendArrayData,\n ...args: ArrayOneMore\n): ExtendArrayData\n\ndeclare function extend(target: boolean, ...args: ArrayOneMore): ExtendArrayData\n\ndeclare type ExtendArrayData = any[]\n\ndeclare type ExtendData = ExtendArrayData | ExtendObjectData\n\ndeclare type ExtendObjectData = Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### delay\n\nanti-dither throttling\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst delay = new Delay()\n\ndelay.register('key', () => {\n //\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function delay(): {\n map: any\n register(id: string, fn: AnyFunction, time: number, boo: boolean): void\n destroy(id: string): void\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### getType\n\nGet the target type\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| target | any target | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetType({}) // object\ngetType([]) // array\ngetType(new Promise()) // promise\ngetType(new Date()) // date\ngetType(async () => {}) // function\ngetType(navigator) // navigator\ngetType(global) // global\ngetType(window) // window\ngetType(Symbol('')) // symbol\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getType(\n target: T\n):\n | 'string'\n | 'number'\n | 'bigint'\n | 'boolean'\n | 'symbol'\n | 'undefined'\n | 'object'\n | 'function'\n | 'window'\n | 'error'\n | 'promise'\n | 'math'\n | 'document'\n | 'navigator'\n | 'global'\n | 'array'\n | 'date'\n | 'regexp'\n | 'null'\n```" + }, + { + "kind": "text", + "text": "\n\n#### getFileType\n\nDetermine file type based on link suffix\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.11.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| url | file url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ngetFileType('/name.png')\n// { \"suffix\": \"png\", \"type\": \"image\" }\n\ngetFileType('/name.PDF')\n// { \"suffix\": \"pdf\", \"type\": \"pdf\" }\n\ngetFileType('/name.xyz')\n// { \"suffix\": \"xyz\", \"type\": \"other\" }\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getFileType(url: string): {\n suffix: string\n type: 'audio' | 'video' | 'image' | 'other' | 'word' | 'txt' | 'excel' | 'pdf' | 'ppt' | 'zip'\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### cleanData\n\nData cleaning methods\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------------------------------------------------------------------------------------- | ---------------- | -------- | -------- | ------- |\n| data | the object to be cleaned | " + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| map | the data queue to be cleaned, can be passed as array or object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| nullFix | the value returned if there is no corresponding property, the default does not return the property | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n//\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function cleanData(data: any, map: any[] | AnyObject, nullFix?: any): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### download\n\nSeveral ways of file downloading:\n\n1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);\n2. using a tag download attribute (or js create a tag);\n3. browser-recognizable pdf, txt files, back-end compatible with handling attachment;\n4. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.5`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | ---------------------------------- | -------- | ---------- |\n| url | url link | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| filename | file name | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| type | download type | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`href`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`open`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`download`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`request`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`download`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`void`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndownload('https://unpkg.com/browse/js-cool@5.2.0/dist/index.global.prod.js')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function download(url: string, filename: string, type?: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### searchObject\n\ntree object depth lookup\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------------------------------------------- | ---------------- | -------- | -------- | ------- |\n| tree | tree object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| expression | required Query method | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| keySet | optional Default subclass name, query name | " + }, + { + "kind": "code", + "text": "`SearchKeySet`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| number | optional Number of lookups, if not passed, query all | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\n//\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function searchObject(\n tree: object | any[],\n expression: any,\n keySet: SearchKeySet,\n number?: number\n): any[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### openUrl\n\nOpen link in new tab (file jump download if browser can't parse)\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.6`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| url | http url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | undefined`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nopenUrl('https://www.saqqdy.com/js-cool')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function openUrl(url: string): void\n```" + }, + { + "kind": "text", + "text": "\n\n#### copy\n\ncopy to clipboard\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----- | -------- | -------- | ------- |\n| value | any value | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | undefined`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncopy('10000')\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function copy(value: string): boolean | undefined\n```" + }, + { + "kind": "text", + "text": "\n\n#### toThousands\n\nDigital thousandths division\n\n- Since: " + }, + { + "kind": "code", + "text": "`3.0.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ----------------- | -------- | -------- | ------- |\n| num | the number | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ntoThousands(10000) // '10,000'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function toThousands(num: string | number): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### all\n\nreturn true if the provided predicate function returns true for all elements in a set, otherwise return false\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------- | ---------- | -------- | -------- | ------- |\n| arr | the target array | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| fn | the judgment method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nall([4, 2, 3], x => x > 1)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const all: (arr: T[], fn: AnyFunction) => boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### any\n\nReturns true if the provided predicate function returns true for at least one element of a set, false otherwise\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------- | ---------- | -------- | -------- | ------- |\n| arr | the target array | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| fn | the judgment method | " + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nany([0, 1, 2, 0], x => x >= 2)\n// true\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const any: (arr: T[], fn: AnyFunction) => boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### uuid\n\ngenerate uuid on browser side, use v4 method\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments: " + }, + { + "kind": "code", + "text": "`none`" + }, + { + "kind": "text", + "text": "\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nuuid() // '4222fcfe-5721-4632-bede-6043885be57d'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const uuid: () => string\n```" + }, + { + "kind": "text", + "text": "\n\n#### CSVToArray\n\nConverts a comma-separated string of values (CSV) to a 2D array.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ------------ | -------------------------------------- | --------- | -------- | -------- | ------- |\n| data | csv data | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n| omitFirstRow | the first row is the table header data | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nCSVToArray('a,b\\\\nc,d') // `[['a','b'],['c','d']]`\nCSVToArray('a;b\\\\\\nc;d', ';') // `[['a','b'],['c','d']]`\nCSVToArray('col1,col2\\\\\\na,b\\\\\\nc,d', ',', true) // `[['a','b'],['c','d']]`\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const CSVToArray: (data: string, delimiter?: string, omitFirstRow?: boolean) => string[][]\n```" + }, + { + "kind": "text", + "text": "\n\n#### arrayToCSV\n\nConverts a two-dimensional array to a comma-separated string of values (CSV).\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| arr | json data | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\narrayToCSV([\n ['a', 'b'],\n ['c', 'd']\n])\n// '\"a\", \"b\" \\n \"c\", \"d\"'\n\narrayToCSV(\n [\n ['a', 'b'],\n ['c', 'd']\n ],\n ';'\n)\n// '\"a\"; \"b\"\\n \"c\"; \"d\"'\n\narrayToCSV([\n ['a', '\"b\" great'],\n ['c', 3.1415]\n])\n// '\"a\", \"\"\"b\"\" great\"\\n \"c\",3.1415'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function arrayToCSV(data: T, delimiter?: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### CSVToJSON\n\nConverts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| data | csv data | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nCSVToJSON('col1,col2\\\\na,b\\\\\\nc,d')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`\n\nCSVToJSON('col1;col2\\\\\\na;b\\\\\\nc;d', ';')\n// `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function CSVToJSON(data: string, delimiter?: string): any[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### JSONToCSV\n\nConverts an array of objects to a comma-separated value (CSV) string containing only the specified columns.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------- | -------- | -------- | -------- | ------- |\n| arr | json data | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| columns | the specified columns | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| delimiter | delimiter | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | ',' |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b']) // 'a,b\\n \"1\", \"2\"\\n \"3\", \"4\"\\n \"6\",\"\"\\n\"\", \"7\"'\nJSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';') // 'a;b\\n \"1\"; \"2\"\\n \"3\"; \"4\"\\n \"6\";\"\"\\n\"\"; \"7\"'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const JSONToCSV: (arr: any[], columns: any[], delimiter?: string) => string\n```" + }, + { + "kind": "text", + "text": "\n\n#### RGBToHex\n\nConverts RGB component values to color codes.\n\n- Since: " + }, + { + "kind": "code", + "text": "`1.0.9`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | -------------------- | -------- | -------- | -------- | ------- |\n| r | the 1st value of RGB | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| g | RGB's 2nd value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| b | RGB's 3nd value | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nRGBToHex(255, 165, 1) // 'ffa501'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare const RGBToHex: (r: number, g: number, b: number) => string\n```" + }, + { + "kind": "text", + "text": "\n\n#### intersect\n\nFind the intersection of multiple arrays\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nintersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function intersect(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### union\n\nFind the concatenation of multiple arrays\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nunion([1, 2], [2, '33']) // [1, 2, '33']\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function union(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### minus\n\nFind the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nminus([1, 2], [2, '33'], [2, 4]) // [1]\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function minus(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### complement\n\nFind the complement of multiple arrays\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | ------- | -------- | -------- | ------- |\n| ...arr | array targets | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncomplement([1, 2], [2, '33'], [2]) // [1, '33']\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function complement(...args: T[][]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### contains\n\nWhether the array contains the specified element\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | ------- | -------- | -------- | ------- |\n| arr | array target | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| item | any array member | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\ncontains([1, 2], 2) // true\ncontains([1, 2], 3) // false\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function contains(arr: any[], item: any): boolean\n```" + }, + { + "kind": "text", + "text": "\n\n#### unique\n\nArray de-duplication\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.1`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------ | ------- | -------- | -------- | ------- |\n| arr | array target | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nunique([1, 2, 2, '33']) // [1, 2, '33']\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function unique(arr: T[]): T[]\n```" + }, + { + "kind": "text", + "text": "\n\n#### fillIPv6\n\nipv6 address completion\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.2`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| ip | ip address | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfillIPv6('2409:8005:800::2') // '2409:8005:0800:0000:0000:0000:0000:0002'\nfillIPv6('2409:8005:800::1c') // '2409:8005:0800:0000:0000:0000:0000:001c'\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fillIPv6(ip: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### getProperty\n\nGet array, object property values based on path string\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.2.4`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ------------------- | -------- | -------- | ------- |\n| target | target array, object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| prop | query target, can pass function | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst target = {\n a: 1,\n b: [\n {\n c: 2\n }\n ]\n}\ngetProperty(target, 'a') // 1\ngetProperty(target, 'b[0].c') // 2\ngetProperty(target, () => 'a') // 1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function getProperty(\n target: any,\n prop:\n | string\n | {\n (): string\n }\n): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### setProperty\n\nSet array, object property values based on path string\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.7.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------------------------ | ------------------- | -------- | -------- | ------- |\n| target | target array, object | " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`object`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| prop | set target, can pass function, 'a' \\| 'a\\[1\\].c' | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": "/" + }, + { + "kind": "code", + "text": "`function`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| value | value | " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`any`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nconst target = {\n a: 1,\n b: [\n {\n c: 2\n }\n ]\n}\nsetProperty(target, 'a') // 1\nsetProperty(target, 'b[0].c') // 2\nsetProperty(target, () => 'a') // 1\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function setProperty(\n target: any,\n prop:\n | string\n | {\n (): string\n },\n value: any\n): any\n```" + }, + { + "kind": "text", + "text": "\n\n#### loadSource\n\nload resources dynamically, support js, images, css links, css style strings\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | --------------------------------------------------------------------- | --------------- | -------- | -------- | ------- |\n| url | link to the resource, type must be passed when passing in styleString | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`SourceOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | imageUrl`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nloadSource('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { ImageAttributes } from 'mount-image'\nimport { LinkAttributes } from 'mount-css'\nimport { ScriptAttributes } from 'mount-script'\nimport { StyleAttributes } from 'mount-style'\n\ndeclare function loadSource(\n url: string,\n option: SourceFileType | SourceOptions\n): Promise\n\ndeclare type SourceFileType = 'js' | 'img' | 'css' | 'style' | string\n\ndeclare interface SourceOptions {\n type: SourceFileType\n attrs?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes\n props?: LinkAttributes | StyleAttributes | ScriptAttributes | ImageAttributes\n force?: boolean\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountCss\n\ndynamically load css link resources\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ------------ | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`CssOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountCss('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface CssOptions {\n attrs?: LinkAttributes\n props?: LinkAttributes\n force?: boolean\n}\n\ndeclare interface HTMLLinkElementEX extends HTMLLinkElement {\n onreadystatechange?: any\n readyState?: 'loaded' | 'complete'\n}\n\ndeclare type LinkAttributes = Pick<\n HTMLLinkElement,\n | 'as'\n | 'charset'\n | 'crossOrigin'\n | 'disabled'\n | 'href'\n | 'hreflang'\n | 'imageSizes'\n | 'imageSrcset'\n | 'integrity'\n | 'media'\n | 'referrerPolicy'\n | 'rel'\n | 'rev'\n | 'target'\n | 'type'\n>\n\ndeclare function mountCss(src: string, option?: CssOptions): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountImg\n\nload image resource dynamically\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ------------ | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`ImgOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean | imageUrl`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountImg('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface HTMLImageElementEX extends HTMLImageElement {\n onreadystatechange?: any\n readyState?: 'loaded' | 'complete'\n}\n\ndeclare type ImageAttributes = Pick<\n HTMLImageElement,\n | 'align'\n | 'alt'\n | 'border'\n | 'crossOrigin'\n | 'decoding'\n | 'height'\n | 'hspace'\n | 'isMap'\n | 'loading'\n | 'longDesc'\n | 'lowsrc'\n | 'name'\n | 'referrerPolicy'\n | 'sizes'\n | 'src'\n | 'srcset'\n | 'useMap'\n | 'vspace'\n | 'width'\n>\n\ndeclare interface ImgOptions {\n attrs?: ImageAttributes\n props?: ImageAttributes\n force?: boolean\n}\n\ndeclare function mountImage(src: string, option?: ImgOptions): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountJs\n\nload js link resources dynamically\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | ----------- | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`JsOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountJs('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare interface HTMLScriptElementEX extends HTMLScriptElement {\n onreadystatechange?: any\n readyState?: 'loaded' | 'complete'\n}\n\ndeclare interface JsOptions {\n attrs?: ScriptAttributes\n props?: ScriptAttributes\n force?: boolean\n}\n\ndeclare function mountJs(src: string, option?: JsOptions): Promise\n\ndeclare type ScriptAttributes = Pick<\n HTMLScriptElement,\n | 'async'\n | 'charset'\n | 'crossOrigin'\n | 'defer'\n | 'event'\n | 'htmlFor'\n | 'integrity'\n | 'noModule'\n | 'referrerPolicy'\n | 'src'\n | 'text'\n | 'type'\n>\n```" + }, + { + "kind": "text", + "text": "\n\n#### mountStyle\n\nload css styles dynamically\n\n- Since: " + }, + { + "kind": "code", + "text": "`2.8.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------------------------- | -------------- | -------- | -------- | ------- |\n| url | resource url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| options | parameters: attrs, props, force | " + }, + { + "kind": "code", + "text": "`StyleOptions`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nmountStyle('/source/url', options)\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function mountStyle(css: string, option?: StyleOptions): Promise\n\ndeclare type StyleAttributes = Pick\n\ndeclare interface StyleOptions {\n attrs?: StyleAttributes\n props?: StyleAttributes\n}\n```" + }, + { + "kind": "text", + "text": "\n\n#### preloader\n\nImage preloading\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ---------------- | -------- | -------- | ------- |\n| images | images url | " + }, + { + "kind": "code", + "text": "`string`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`array`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: void\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\npreloader('path/of/image')\n\npreloader(['path/of/image'])\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function preloader(images: string): HTMLImageElement\n\ndeclare function preloader(images: string[]): Record\n```" + }, + { + "kind": "text", + "text": "\n\n#### waiting\n\n> v5.8.1 Support throw on timeout\n\nwaiting for a while\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.5.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| -------------- | --------------------------- | --------- | -------- | -------- | ------- |\n| milliseconds | waiting time (milliseconds) | " + }, + { + "kind": "code", + "text": "`number`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| throwOnTimeout | throw on timeout | " + }, + { + "kind": "code", + "text": "`boolean`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Promise`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nwaiting(2000)\n\nawait waiting(2000, true)\n// reject\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function waiting(milliseconds: number, throwOnTimeout?: boolean): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### awaitTo\n\nAsync await wrapper for easy error handling\n\n> v5.7.0 Extend awaitTo to support passing in multiple promises\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.2.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ----------- | ------------------- | --------------------- | -------- | -------- | ------- |\n| promise | promise function | " + }, + { + "kind": "code", + "text": "`Promise`" + }, + { + "kind": "text", + "text": " " + }, + { + "kind": "code", + "text": "`Promise[]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| ...promises | Promise rest params | " + }, + { + "kind": "code", + "text": "`Promise[]`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`[Error, undefined]`" + }, + { + "kind": "text", + "text": " or " + }, + { + "kind": "code", + "text": "`[null, data | data[]]`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nimport { awaitTo as to } from 'js-cool'\n\n// 1. simple use\nconst [err, data] = await to(new Promise())\nif (err) {\n // handle request error\n}\n\n// 2. Pass in multiple promises\nconst [err, data] = await to(promise1, promise2)\n// or\nconst [err, data] = await to([promise1, promise2])\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function awaitTo(promise: Promise): Promise<[E, undefined] | [null, T]>\n```" + }, + { + "kind": "text", + "text": "\n\n### Blob arrayBuffer base64 file blobUrl\n\n#### arrayBufferToBase64\n\narrayBuffer转Base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | ------------- | -------- | -------- | ----------- |\n| input | arrayBuffer data | " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| mime | image mime | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`image/png`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\narrayBufferToBase64(arrayBuffer, 'image/png')\n// data:image/png;base64,xxxxxxxxxxxx\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function arrayBufferToBase64(input: ArrayBuffer, mime?: string): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### arrayBufferToBlob\n\narrayBuffer转Blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ---------------- | ------------- | -------- | -------- | ----------- |\n| input | arrayBuffer data | " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| mime | image mime | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`false`" + }, + { + "kind": "text", + "text": " | " + }, + { + "kind": "code", + "text": "`image/png`" + }, + { + "kind": "text", + "text": " |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\narrayBufferToBase64(arrayBuffer, 'image/png')\n// Blob\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function arrayBufferToBlob(input: ArrayBuffer, mime?: string): Blob\n```" + }, + { + "kind": "text", + "text": "\n\n#### base64ToArrayBuffer\n\nbase64转ArrayBuffer\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| input | base64 string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nbase64ToArrayBuffer(base64)\n// ArrayBuffer\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function base64ToArrayBuffer(input: string): ArrayBuffer\n```" + }, + { + "kind": "text", + "text": "\n\n#### base64ToBlob\n\nbase64转Blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| input | base64 string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nbase64ToBlob(base64)\n// Blob\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function base64ToBlob(input: string): Blob\n```" + }, + { + "kind": "text", + "text": "\n\n#### base64ToFile\n\nbase64转File\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ------------- | -------- | -------- | -------- | ------- |\n| input | base64 string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n| fileName | file name | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`File`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nbase64ToFile(base64, 'image.png')\n// File\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function base64ToFile(input: string, fileName: string): File\n```" + }, + { + "kind": "text", + "text": "\n\n#### blobToArrayBuffer\n\nblob转ArrayBuffer\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | blob data | " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`ArrayBuffer`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nblobToArrayBuffer(blob).then(data => {\n // ArrayBuffer\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function blobToArrayBuffer(input: Blob): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### blobToBase64\n\nblob转Base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | blob data | " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nblobToBase64(blob).then(data => {\n // data:image/png;base64,xxxxxxxxxxxx\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function blobToBase64(input: Blob): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### blobToUrl\n\nblob转Url\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | blob data | " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Object`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nblobToUrl(blob)\n// blob:xxxxxxx\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function blobToUrl(input: Blob): string\n```" + }, + { + "kind": "text", + "text": "\n\n#### fileToBase64\n\nfile转Base64\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | ------ | -------- | -------- | ------- |\n| input | file data | " + }, + { + "kind": "code", + "text": "`File`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nfileToBase64(file).then(data => {\n // data:image/png;base64,xxxxxxxxxxxx\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function fileToBase64(input: File): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n#### svgToBlob\n\nsvg转Blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| input | svg string | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nsvgToBlob(svg)\n// Blob\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function svgToBlob(input: string): Blob\n```" + }, + { + "kind": "text", + "text": "\n\n#### urlToBlob\n\nurl转Blob\n\n- Since: " + }, + { + "kind": "code", + "text": "`5.13.0`" + }, + { + "kind": "text", + "text": "\n\n- Arguments:\n\n| Parameters | Description | Type | Optional | Required | Default |\n| ---------- | ----------- | -------- | -------- | -------- | ------- |\n| input | url | " + }, + { + "kind": "code", + "text": "`String`" + }, + { + "kind": "text", + "text": " | - | " + }, + { + "kind": "code", + "text": "`true`" + }, + { + "kind": "text", + "text": " | - |\n\n- Returns: " + }, + { + "kind": "code", + "text": "`Blob`" + }, + { + "kind": "text", + "text": "\n\n- Example:\n\n" + }, + { + "kind": "code", + "text": "```ts\nurlToBlob(url).then(blob => {\n // Blob\n})\n```" + }, + { + "kind": "text", + "text": "\n\n- Types:\n\n" + }, + { + "kind": "code", + "text": "```ts\ndeclare function urlToBlob(input: string): Promise\n```" + }, + { + "kind": "text", + "text": "\n\n## Support & Issues\n\nPlease open an issue [here](https://github.com/saqqdy/js-cool/issues).\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/js-cool.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/js-cool\n[codacy-image]: https://app.codacy.com/project/badge/Grade/f70d4880e4ad4f40aa970eb9ee9d0696\n[codacy-url]: https://www.codacy.com/gh/saqqdy/js-cool/dashboard?utm_source=github.com&utm_medium=referral&utm_content=saqqdy/js-cool&utm_campaign=Badge_Grade\n[tree-shaking-image]: https://badgen.net/bundlephobia/tree-shaking/js-cool\n[tree-shaking-url]: https://bundlephobia.com/package/js-cool\n[typescript-url]: https://badgen.net/badge/icon/typescript?icon=typescript&label\n[codecov-image]: https://img.shields.io/codecov/c/github/saqqdy/js-cool.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/saqqdy/js-cool?branch=master\n[download-image]: https://img.shields.io/npm/dm/js-cool.svg?style=flat-square\n[download-url]: https://npmjs.org/package/js-cool\n[gzip-image]: http://img.badgesize.io/https://unpkg.com/js-cool/dist/index.global.prod.js?compression=gzip&label=gzip%20size:%20JS\n[gzip-url]: http://img.badgesize.io/https://unpkg.com/js-cool/dist/index.global.prod.js?compression=gzip&label=gzip%20size:%20JS\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE\n[sonar-image]: https://sonarcloud.io/api/project_badges/quality_gate?project=saqqdy_js-cool\n[sonar-url]: https://sonarcloud.io/dashboard?id=saqqdy_js-cool" + } + ], + "symbolIdMap": { + "0": { + "sourceFileName": "src/index.ts", + "qualifiedName": "" + }, + "1": { + "sourceFileName": "src/index.ts", + "qualifiedName": "version" + }, + "2": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "3": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "4": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "url" + }, + "5": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "option" + }, + "6": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "7": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "8": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "src" + }, + "9": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "option" + }, + "10": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "11": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "12": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "src" + }, + "13": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "option" + }, + "14": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "15": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "16": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "src" + }, + "17": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "option" + }, + "18": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "19": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "20": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "css" + }, + "21": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "option" + }, + "22": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "23": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "24": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "url" + }, + "25": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "filename" + }, + "26": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "type" + }, + "27": { + "sourceFileName": "src/client.ts", + "qualifiedName": "client" + }, + "28": { + "sourceFileName": "src/client.ts", + "qualifiedName": "client" + }, + "29": { + "sourceFileName": "src/client.ts", + "qualifiedName": "name" + }, + "30": { + "sourceFileName": "src/client.ts", + "qualifiedName": "userAgent" + }, + "31": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object" + }, + "32": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IE" + }, + "33": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.GECKO" + }, + "34": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEBKIT" + }, + "35": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.OPERA" + }, + "36": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.TRIDENT" + }, + "37": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.MOBILE" + }, + "38": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IOS" + }, + "39": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.ANDROID" + }, + "40": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPHONE" + }, + "41": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPAD" + }, + "42": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQBROWSER" + }, + "43": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEIXIN" + }, + "44": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQ" + }, + "45": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "pattern" + }, + "46": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object" + }, + "47": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.any" + }, + "48": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.number" + }, + "49": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.string" + }, + "50": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.postcode" + }, + "51": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.url" + }, + "52": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.username" + }, + "53": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.float" + }, + "54": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.email" + }, + "55": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mobile" + }, + "56": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.chinese" + }, + "57": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.tel" + }, + "58": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.qq" + }, + "59": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.pass" + }, + "60": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.json" + }, + "61": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.arrjson" + }, + "62": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.array" + }, + "63": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.isjson" + }, + "64": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.textarea" + }, + "65": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "66": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "67": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "string" + }, + "68": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "69": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "70": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "string" + }, + "71": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "72": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "73": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "string" + }, + "74": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "75": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "76": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "string" + }, + "77": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "78": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "79": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "string" + }, + "80": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "81": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "82": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "string" + }, + "83": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "84": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "85": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "string" + }, + "86": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "87": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "88": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "string" + }, + "89": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "90": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "91": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "string" + }, + "92": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "93": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "94": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "95": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "96": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "min" + }, + "97": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "max" + }, + "98": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "99": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "100": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "n" + }, + "101": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "sum" + }, + "102": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "noZero" + }, + "103": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "104": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "105": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "106": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "107": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "108": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "109": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "110": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions" + }, + "111": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.length" + }, + "112": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.charTypes" + }, + "113": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.noConfuse" + }, + "114": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringOptions.strict" + }, + "115": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "RandomStringCharType" + }, + "116": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "117": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "118": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "119": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "120": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "121": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "T" + }, + "122": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "123": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "124": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "125": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "126": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "domain" + }, + "127": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "128": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "129": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "str" + }, + "130": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "131": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "132": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "str" + }, + "133": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "len" + }, + "134": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "hasDot" + }, + "135": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "136": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "137": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "str" + }, + "138": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "139": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "140": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "name" + }, + "141": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "142": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "143": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "T" + }, + "144": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "P" + }, + "145": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "a" + }, + "146": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "b" + }, + "147": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "148": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "149": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "name" + }, + "150": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "151": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "152": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "target" + }, + "153": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "154": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "155": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "target" + }, + "156": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "Primitive" + }, + "157": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "PlainObject" + }, + "158": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "PlainObject.__index" + }, + "160": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "JSONValue" + }, + "161": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "JSONArray" + }, + "162": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.length" + }, + "163": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toString" + }, + "164": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toString" + }, + "165": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "166": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.toLocaleString" + }, + "167": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.pop" + }, + "168": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.pop" + }, + "169": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.push" + }, + "170": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.push" + }, + "171": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "172": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "173": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "174": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "175": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.concat" + }, + "176": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "177": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.join" + }, + "178": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.join" + }, + "179": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "separator" + }, + "180": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reverse" + }, + "181": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reverse" + }, + "182": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.shift" + }, + "183": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.shift" + }, + "184": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.slice" + }, + "185": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.slice" + }, + "186": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "187": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "end" + }, + "188": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.sort" + }, + "189": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.sort" + }, + "190": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "compareFn" + }, + "191": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "192": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "193": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "a" + }, + "194": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "b" + }, + "195": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "196": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "197": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "198": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "deleteCount" + }, + "199": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.splice" + }, + "200": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "start" + }, + "201": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "deleteCount" + }, + "202": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "203": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.unshift" + }, + "204": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.unshift" + }, + "205": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "items" + }, + "206": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.indexOf" + }, + "207": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.indexOf" + }, + "208": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "searchElement" + }, + "209": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "fromIndex" + }, + "210": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.lastIndexOf" + }, + "211": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.lastIndexOf" + }, + "212": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "searchElement" + }, + "213": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "fromIndex" + }, + "214": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "215": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "216": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "S" + }, + "217": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "218": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "219": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "220": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "221": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "222": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "223": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "224": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.every" + }, + "225": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "226": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "227": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "228": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "229": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "230": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "231": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "232": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.some" + }, + "233": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.some" + }, + "234": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "235": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "236": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "237": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "238": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "239": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "240": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "241": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.forEach" + }, + "242": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.forEach" + }, + "243": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "244": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "245": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "246": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "247": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "248": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "249": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "250": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.map" + }, + "251": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.map" + }, + "252": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "253": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "254": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "255": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "256": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "257": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "258": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "259": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "260": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "261": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "262": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "S" + }, + "263": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "264": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "265": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "266": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "267": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "268": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "269": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "270": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.filter" + }, + "271": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "predicate" + }, + "272": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "273": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "274": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "value" + }, + "275": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "index" + }, + "276": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "277": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "thisArg" + }, + "278": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "279": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "280": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "281": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "282": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "283": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "284": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "285": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "286": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "287": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "288": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "289": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "290": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "291": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "292": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "293": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "294": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "295": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "296": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduce" + }, + "297": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "298": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "299": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "300": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "301": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "302": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "303": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "304": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "305": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "306": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "307": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "308": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "309": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "310": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "311": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "312": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "313": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "314": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "315": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "316": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "317": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "318": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "319": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "320": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "321": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "322": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "323": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "324": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "Array.reduceRight" + }, + "325": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "U" + }, + "326": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "callbackfn" + }, + "327": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "328": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "__type" + }, + "329": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "previousValue" + }, + "330": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentValue" + }, + "331": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "currentIndex" + }, + "332": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "array" + }, + "333": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "initialValue" + }, + "334": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "335": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "336": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "S" + }, + "337": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "338": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "339": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "340": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "341": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "342": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "343": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "344": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.find" + }, + "345": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "346": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "347": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "348": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "349": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "350": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "351": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "352": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.findIndex" + }, + "353": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.findIndex" + }, + "354": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "predicate" + }, + "355": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "356": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "__type" + }, + "357": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "358": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "index" + }, + "359": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "obj" + }, + "360": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "thisArg" + }, + "361": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.fill" + }, + "362": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.fill" + }, + "363": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "value" + }, + "364": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "start" + }, + "365": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "end" + }, + "366": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.copyWithin" + }, + "367": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "Array.copyWithin" + }, + "368": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "target" + }, + "369": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "start" + }, + "370": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "end" + }, + "371": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.entries" + }, + "372": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.entries" + }, + "373": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.keys" + }, + "374": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.keys" + }, + "375": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.values" + }, + "376": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.values" + }, + "377": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "Array.includes" + }, + "378": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "Array.includes" + }, + "379": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "searchElement" + }, + "380": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "fromIndex" + }, + "381": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flatMap" + }, + "382": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flatMap" + }, + "383": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "U" + }, + "384": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "This" + }, + "385": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "callback" + }, + "386": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "__type" + }, + "387": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "__type" + }, + "388": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "this" + }, + "389": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "value" + }, + "390": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "index" + }, + "391": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "array" + }, + "392": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "thisArg" + }, + "393": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flat" + }, + "394": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "Array.flat" + }, + "395": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "A" + }, + "396": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "D" + }, + "397": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "this" + }, + "398": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "depth" + }, + "399": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "Array.at" + }, + "400": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "Array.at" + }, + "401": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "index" + }, + "402": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "403": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "404": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "S" + }, + "405": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "406": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "407": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "408": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "409": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "410": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "411": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "412": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLast" + }, + "413": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "414": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "415": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "416": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "417": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "418": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "419": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "420": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLastIndex" + }, + "421": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.findLastIndex" + }, + "422": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "predicate" + }, + "423": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "424": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "425": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "426": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "427": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "array" + }, + "428": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "thisArg" + }, + "429": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toReversed" + }, + "430": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toReversed" + }, + "431": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSorted" + }, + "432": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSorted" + }, + "433": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "compareFn" + }, + "434": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "435": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "__type" + }, + "436": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "a" + }, + "437": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "b" + }, + "438": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "439": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "440": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "start" + }, + "441": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "deleteCount" + }, + "442": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "items" + }, + "443": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.toSpliced" + }, + "444": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "start" + }, + "445": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "deleteCount" + }, + "446": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.with" + }, + "447": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "Array.with" + }, + "448": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "index" + }, + "449": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "value" + }, + "450": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.[iterator]" + }, + "451": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "Array.[iterator]" + }, + "452": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "Array.[unscopables]" + }, + "453": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "__type" + }, + "454": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "length" + }, + "455": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "toString" + }, + "456": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "toLocaleString" + }, + "457": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "pop" + }, + "458": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "push" + }, + "459": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "concat" + }, + "460": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "join" + }, + "461": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reverse" + }, + "462": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "shift" + }, + "463": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "slice" + }, + "464": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "sort" + }, + "465": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "splice" + }, + "466": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "unshift" + }, + "467": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "indexOf" + }, + "468": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "lastIndexOf" + }, + "469": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "every" + }, + "470": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "some" + }, + "471": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "forEach" + }, + "472": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "map" + }, + "473": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "filter" + }, + "474": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reduce" + }, + "475": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es5.d.ts", + "qualifiedName": "reduceRight" + }, + "476": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "find" + }, + "477": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "findIndex" + }, + "478": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "fill" + }, + "479": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.core.d.ts", + "qualifiedName": "copyWithin" + }, + "480": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "entries" + }, + "481": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "keys" + }, + "482": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "values" + }, + "483": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts", + "qualifiedName": "includes" + }, + "484": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "flatMap" + }, + "485": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2019.array.d.ts", + "qualifiedName": "flat" + }, + "486": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2022.array.d.ts", + "qualifiedName": "at" + }, + "487": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "findLast" + }, + "488": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "findLastIndex" + }, + "489": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toReversed" + }, + "490": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toSorted" + }, + "491": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "toSpliced" + }, + "492": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2023.array.d.ts", + "qualifiedName": "with" + }, + "493": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts", + "qualifiedName": "[iterator]" + }, + "494": { + "sourceFileName": "node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts", + "qualifiedName": "[unscopables]" + }, + "495": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "496": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "497": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "498": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "499": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "target" + }, + "500": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "501": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "502": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "target" + }, + "503": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "504": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "505": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "T" + }, + "506": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "target" + }, + "507": { + "sourceFileName": "src/inBrowser.ts", + "qualifiedName": "inBrowser" + }, + "508": { + "sourceFileName": "src/inNodeJs.ts", + "qualifiedName": "inNodeJs" + }, + "509": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "510": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "511": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj" + }, + "512": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj.width" + }, + "513": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "WindowSizeObj.height" + }, + "514": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "515": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "516": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "appName" + }, + "517": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "withApp" + }, + "518": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "userAgent" + }, + "519": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "520": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "521": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "522": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "523": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "524": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "525": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "526": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "527": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "528": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "529": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "530": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "531": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ignoreCase" + }, + "532": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "533": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "534": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "osName" + }, + "535": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "withOS" + }, + "536": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "userAgent" + }, + "537": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "538": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "539": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "ua" + }, + "540": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion" + }, + "541": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion.name" + }, + "542": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "OsVersion.version" + }, + "543": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "544": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "545": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "ua" + }, + "546": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion" + }, + "547": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion.name" + }, + "548": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "BrowserVersion.version" + }, + "549": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "550": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "551": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "input" + }, + "552": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compare" + }, + "553": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "554": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "555": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "url" + }, + "556": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "covert" + }, + "557": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "558": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "559": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "T" + }, + "560": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "params" + }, + "561": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "covert" + }, + "562": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "withQuestionsMark" + }, + "563": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "564": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "565": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "url" + }, + "566": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType" + }, + "567": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType.path" + }, + "568": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "DirParamType.host" + }, + "569": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "570": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "571": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "572": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "573": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "574": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "url" + }, + "575": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "576": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "577": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "578": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "579": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "580": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "581": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "582": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "covert" + }, + "583": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "584": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "585": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "586": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "587": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "588": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "url" + }, + "589": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "590": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "591": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "592": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "593": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "594": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "595": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "596": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "covert" + }, + "597": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "598": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "599": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "name" + }, + "600": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "601": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "602": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "T" + }, + "603": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "name" + }, + "604": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "value" + }, + "605": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "seconds" + }, + "606": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "607": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "608": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "name" + }, + "609": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "610": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "611": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "name" + }, + "612": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "613": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "614": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "T" + }, + "615": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "name" + }, + "616": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "value" + }, + "617": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "seconds" + }, + "618": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "619": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "620": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "name" + }, + "621": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "622": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "623": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "name" + }, + "624": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "625": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "626": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "627": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "628": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "T" + }, + "629": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "name" + }, + "630": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "value" + }, + "631": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "seconds" + }, + "632": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "path" + }, + "633": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "samesite" + }, + "634": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "635": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "636": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "name" + }, + "637": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "638": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "639": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "input" + }, + "640": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "641": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "642": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "string" + }, + "643": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "644": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "645": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "input" + }, + "646": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "647": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "648": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "utftext" + }, + "649": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "650": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "651": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "e" + }, + "652": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "653": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "654": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "e" + }, + "655": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "656": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "657": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "element" + }, + "658": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "type" + }, + "659": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "handler" + }, + "660": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent" + }, + "661": { + "sourceFileName": "src/addEvent.ts", + "qualifiedName": "addEvent.guid" + }, + "662": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "663": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "664": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "element" + }, + "665": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "type" + }, + "666": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "handler" + }, + "667": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "668": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "669": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "670": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "671": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "min" + }, + "672": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "max" + }, + "673": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "674": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "675": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "version" + }, + "676": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "type" + }, + "677": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "preid" + }, + "678": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version" + }, + "679": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.major" + }, + "680": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.minor" + }, + "681": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.patch" + }, + "682": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.preid" + }, + "683": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "Version.release" + }, + "684": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "685": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "686": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "T" + }, + "687": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "original" + }, + "688": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "resolver" + }, + "689": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "690": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "691": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "692": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "693": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "number" + }, + "694": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "n" + }, + "695": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "696": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "697": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "tmp" + }, + "698": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "data" + }, + "699": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "700": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "701": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "value" + }, + "702": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "703": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "704": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "705": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "706": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "707": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "708": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "709": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "710": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "711": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "712": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "713": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "714": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "715": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendArrayData" + }, + "716": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendObjectData" + }, + "717": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "ExtendData" + }, + "718": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "719": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "720": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object" + }, + "721": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.map" + }, + "722": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "723": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "724": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "725": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "fn" + }, + "726": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "time" + }, + "727": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "boo" + }, + "728": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "729": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "730": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "731": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "732": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "733": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "T" + }, + "734": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "target" + }, + "735": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "736": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "737": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "url" + }, + "738": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object" + }, + "739": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.suffix" + }, + "740": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.type" + }, + "741": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "742": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "743": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "data" + }, + "744": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "map" + }, + "745": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "nullFix" + }, + "746": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "747": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "748": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "tree" + }, + "749": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "expression" + }, + "750": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "keySet" + }, + "751": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "number" + }, + "752": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet" + }, + "753": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.childName" + }, + "754": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.keyName" + }, + "755": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "SearchKeySet.__index" + }, + "757": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "758": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "759": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "url" + }, + "760": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "761": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "762": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "value" + }, + "763": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "764": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "765": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "num" + }, + "766": { + "sourceFileName": "src/all.ts", + "qualifiedName": "all" + }, + "767": { + "sourceFileName": "src/all.ts", + "qualifiedName": "all" + }, + "768": { + "sourceFileName": "src/all.ts", + "qualifiedName": "T" + }, + "769": { + "sourceFileName": "src/all.ts", + "qualifiedName": "arr" + }, + "770": { + "sourceFileName": "src/all.ts", + "qualifiedName": "fn" + }, + "771": { + "sourceFileName": "src/any.ts", + "qualifiedName": "any" + }, + "772": { + "sourceFileName": "src/any.ts", + "qualifiedName": "any" + }, + "773": { + "sourceFileName": "src/any.ts", + "qualifiedName": "T" + }, + "774": { + "sourceFileName": "src/any.ts", + "qualifiedName": "arr" + }, + "775": { + "sourceFileName": "src/any.ts", + "qualifiedName": "fn" + }, + "776": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "uuid" + }, + "777": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "uuid" + }, + "778": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "CSVToArray" + }, + "779": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "CSVToArray" + }, + "780": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "data" + }, + "781": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "delimiter" + }, + "782": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "omitFirstRow" + }, + "783": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arrayToCSV" + }, + "784": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arrayToCSV" + }, + "785": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "T" + }, + "786": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arr" + }, + "787": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "delimiter" + }, + "788": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "789": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "790": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "data" + }, + "791": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "delimiter" + }, + "792": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "JSONToCSV" + }, + "793": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "JSONToCSV" + }, + "794": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "arr" + }, + "795": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "columns" + }, + "796": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "delimiter" + }, + "797": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "RGBToHex" + }, + "798": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "RGBToHex" + }, + "799": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "r" + }, + "800": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "g" + }, + "801": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "b" + }, + "802": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "803": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "804": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "T" + }, + "805": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "args" + }, + "806": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "807": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "808": { + "sourceFileName": "src/union.ts", + "qualifiedName": "T" + }, + "809": { + "sourceFileName": "src/union.ts", + "qualifiedName": "args" + }, + "810": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "811": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "812": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "T" + }, + "813": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "args" + }, + "814": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "815": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "816": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "T" + }, + "817": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "args" + }, + "818": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "819": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "820": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "arr" + }, + "821": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "item" + }, + "822": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "823": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "824": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "T" + }, + "825": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "arr" + }, + "826": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "827": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "828": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "ip" + }, + "829": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "830": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "831": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "832": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "833": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "834": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "835": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "836": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "837": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "target" + }, + "838": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "prop" + }, + "839": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "840": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "841": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "value" + }, + "842": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "843": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "844": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "845": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "846": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "847": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "waiting" + }, + "848": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "waiting" + }, + "849": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "milliseconds" + }, + "850": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "throwOnTimeout" + }, + "851": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "852": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "853": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "T" + }, + "854": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "E" + }, + "855": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promise" + }, + "856": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "857": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "T" + }, + "858": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "E" + }, + "859": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promise" + }, + "860": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "861": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "T" + }, + "862": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "E" + }, + "863": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promise" + }, + "864": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promises" + }, + "865": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "866": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "867": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "input" + }, + "868": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "mime" + }, + "869": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "870": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "871": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "input" + }, + "872": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "mime" + }, + "873": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "874": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "875": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "input" + }, + "876": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "877": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "878": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "input" + }, + "879": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "880": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "881": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "input" + }, + "882": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "fileName" + }, + "883": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "884": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "885": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "input" + }, + "886": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "887": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "888": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "input" + }, + "889": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "890": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "891": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "input" + }, + "892": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "893": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "894": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "input" + }, + "895": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "896": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "897": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "input" + }, + "898": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "899": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "900": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "input" + }, + "901": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyObject" + }, + "902": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyFunction" + }, + "903": { + "sourceFileName": "src/types.ts", + "qualifiedName": "AnyFunction" + }, + "904": { + "sourceFileName": "src/types.ts", + "qualifiedName": "args" + }, + "905": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne" + }, + "906": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne.0" + }, + "907": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOne.T" + }, + "908": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayOneMore" + }, + "909": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "910": { + "sourceFileName": "src/types.ts", + "qualifiedName": "ArrayTwoMore" + }, + "911": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "912": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type.0" + }, + "913": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type.1" + }, + "914": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "915": { + "sourceFileName": "src/types.ts", + "qualifiedName": "PickRequired" + }, + "916": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "917": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "918": { + "sourceFileName": "src/types.ts", + "qualifiedName": "OmitRequired" + }, + "919": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "920": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "921": { + "sourceFileName": "src/types.ts", + "qualifiedName": "PickPartial" + }, + "922": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "923": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "924": { + "sourceFileName": "src/types.ts", + "qualifiedName": "OmitPartial" + }, + "925": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "926": { + "sourceFileName": "src/types.ts", + "qualifiedName": "K" + }, + "927": { + "sourceFileName": "src/types.ts", + "qualifiedName": "MaybePromiseOrGetter" + }, + "928": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "929": { + "sourceFileName": "src/types.ts", + "qualifiedName": "__type" + }, + "930": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "931": { + "sourceFileName": "src/types.ts", + "qualifiedName": "T" + }, + "932": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "default" + }, + "933": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object" + }, + "934": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.version" + }, + "935": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.download" + }, + "936": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "937": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "download" + }, + "938": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "url" + }, + "939": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "filename" + }, + "940": { + "sourceFileName": "node_modules/.pnpm/use-downloads@1.5.0/node_modules/use-downloads/dist/index.d.ts", + "qualifiedName": "type" + }, + "941": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.RGBToHex" + }, + "942": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "__function" + }, + "943": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "__function" + }, + "944": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "r" + }, + "945": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "g" + }, + "946": { + "sourceFileName": "src/RGBToHex.ts", + "qualifiedName": "b" + }, + "947": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.addEvent" + }, + "948": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.all" + }, + "949": { + "sourceFileName": "src/all.ts", + "qualifiedName": "__function" + }, + "950": { + "sourceFileName": "src/all.ts", + "qualifiedName": "__function" + }, + "951": { + "sourceFileName": "src/all.ts", + "qualifiedName": "T" + }, + "952": { + "sourceFileName": "src/all.ts", + "qualifiedName": "arr" + }, + "953": { + "sourceFileName": "src/all.ts", + "qualifiedName": "fn" + }, + "954": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.any" + }, + "955": { + "sourceFileName": "src/any.ts", + "qualifiedName": "__function" + }, + "956": { + "sourceFileName": "src/any.ts", + "qualifiedName": "__function" + }, + "957": { + "sourceFileName": "src/any.ts", + "qualifiedName": "T" + }, + "958": { + "sourceFileName": "src/any.ts", + "qualifiedName": "arr" + }, + "959": { + "sourceFileName": "src/any.ts", + "qualifiedName": "fn" + }, + "960": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCache" + }, + "961": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "962": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "getCache" + }, + "963": { + "sourceFileName": "src/getCache.ts", + "qualifiedName": "name" + }, + "964": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setCache" + }, + "965": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "966": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "setCache" + }, + "967": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "T" + }, + "968": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "name" + }, + "969": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "value" + }, + "970": { + "sourceFileName": "src/setCache.ts", + "qualifiedName": "seconds" + }, + "971": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delCache" + }, + "972": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "973": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "delCache" + }, + "974": { + "sourceFileName": "src/delCache.ts", + "qualifiedName": "name" + }, + "975": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getSession" + }, + "976": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "977": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "getSession" + }, + "978": { + "sourceFileName": "src/getSession.ts", + "qualifiedName": "name" + }, + "979": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setSession" + }, + "980": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "981": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "setSession" + }, + "982": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "T" + }, + "983": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "name" + }, + "984": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "value" + }, + "985": { + "sourceFileName": "src/setSession.ts", + "qualifiedName": "seconds" + }, + "986": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delSession" + }, + "987": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "988": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "delSession" + }, + "989": { + "sourceFileName": "src/delSession.ts", + "qualifiedName": "name" + }, + "990": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCookie" + }, + "991": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "992": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "getCookie" + }, + "993": { + "sourceFileName": "src/getCookie.ts", + "qualifiedName": "name" + }, + "994": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCookies" + }, + "995": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "996": { + "sourceFileName": "src/getCookies.ts", + "qualifiedName": "getCookies" + }, + "997": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setCookie" + }, + "998": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "999": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "setCookie" + }, + "1000": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "T" + }, + "1001": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "name" + }, + "1002": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "value" + }, + "1003": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "seconds" + }, + "1004": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "path" + }, + "1005": { + "sourceFileName": "src/setCookie.ts", + "qualifiedName": "samesite" + }, + "1006": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delCookie" + }, + "1007": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "1008": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "delCookie" + }, + "1009": { + "sourceFileName": "src/delCookie.ts", + "qualifiedName": "name" + }, + "1010": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.camel2Dash" + }, + "1011": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "1012": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "camel2Dash" + }, + "1013": { + "sourceFileName": "src/camel2Dash.ts", + "qualifiedName": "string" + }, + "1014": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.cleanData" + }, + "1015": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "1016": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "cleanData" + }, + "1017": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "data" + }, + "1018": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "map" + }, + "1019": { + "sourceFileName": "src/cleanData.ts", + "qualifiedName": "nullFix" + }, + "1020": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clearAttr" + }, + "1021": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "1022": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "clearAttr" + }, + "1023": { + "sourceFileName": "src/clearAttr.ts", + "qualifiedName": "string" + }, + "1024": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.clearHtml" + }, + "1025": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "1026": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "clearHtml" + }, + "1027": { + "sourceFileName": "src/clearHtml.ts", + "qualifiedName": "string" + }, + "1028": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.escape" + }, + "1029": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "1030": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "escape" + }, + "1031": { + "sourceFileName": "src/escape.ts", + "qualifiedName": "string" + }, + "1032": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.unescape" + }, + "1033": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "1034": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "unescape" + }, + "1035": { + "sourceFileName": "src/unescape.ts", + "qualifiedName": "string" + }, + "1036": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.client" + }, + "1037": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__function" + }, + "1038": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__function" + }, + "1039": { + "sourceFileName": "src/client.ts", + "qualifiedName": "name" + }, + "1040": { + "sourceFileName": "src/client.ts", + "qualifiedName": "userAgent" + }, + "1041": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object" + }, + "1042": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IE" + }, + "1043": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.GECKO" + }, + "1044": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEBKIT" + }, + "1045": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.OPERA" + }, + "1046": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.TRIDENT" + }, + "1047": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.MOBILE" + }, + "1048": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IOS" + }, + "1049": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.ANDROID" + }, + "1050": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPHONE" + }, + "1051": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.IPAD" + }, + "1052": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQBROWSER" + }, + "1053": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.WEIXIN" + }, + "1054": { + "sourceFileName": "src/client.ts", + "qualifiedName": "__object.QQ" + }, + "1055": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.complement" + }, + "1056": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "1057": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "complement" + }, + "1058": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "T" + }, + "1059": { + "sourceFileName": "src/complement.ts", + "qualifiedName": "args" + }, + "1060": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.contains" + }, + "1061": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "1062": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "contains" + }, + "1063": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "arr" + }, + "1064": { + "sourceFileName": "src/contains.ts", + "qualifiedName": "item" + }, + "1065": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.CSVToArray" + }, + "1066": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "__function" + }, + "1067": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "__function" + }, + "1068": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "data" + }, + "1069": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "delimiter" + }, + "1070": { + "sourceFileName": "src/CSVToArray.ts", + "qualifiedName": "omitFirstRow" + }, + "1071": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayToCSV" + }, + "1072": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "__function" + }, + "1073": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "__function" + }, + "1074": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "T" + }, + "1075": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "arr" + }, + "1076": { + "sourceFileName": "src/arrayToCSV.ts", + "qualifiedName": "delimiter" + }, + "1077": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.CSVToJSON" + }, + "1078": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "1079": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "CSVToJSON" + }, + "1080": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "data" + }, + "1081": { + "sourceFileName": "src/CSVToJSON.ts", + "qualifiedName": "delimiter" + }, + "1082": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.JSONToCSV" + }, + "1083": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "__function" + }, + "1084": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "__function" + }, + "1085": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "arr" + }, + "1086": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "columns" + }, + "1087": { + "sourceFileName": "src/JSONToCSV.ts", + "qualifiedName": "delimiter" + }, + "1088": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.cutCHSString" + }, + "1089": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "1090": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "cutCHSString" + }, + "1091": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "str" + }, + "1092": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "len" + }, + "1093": { + "sourceFileName": "src/cutCHSString.ts", + "qualifiedName": "hasDot" + }, + "1094": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.dash2Camel" + }, + "1095": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "1096": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "dash2Camel" + }, + "1097": { + "sourceFileName": "src/dash2Camel.ts", + "qualifiedName": "string" + }, + "1098": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.decodeBase64" + }, + "1099": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "1100": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "decodeBase64" + }, + "1101": { + "sourceFileName": "src/decodeBase64.ts", + "qualifiedName": "input" + }, + "1102": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.decodeUtf8" + }, + "1103": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "1104": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "decodeUtf8" + }, + "1105": { + "sourceFileName": "src/decodeUtf8.ts", + "qualifiedName": "utftext" + }, + "1106": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.delay" + }, + "1107": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "1108": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "delay" + }, + "1109": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object" + }, + "1110": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.map" + }, + "1111": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "1112": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.register" + }, + "1113": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "1114": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "fn" + }, + "1115": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "time" + }, + "1116": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "boo" + }, + "1117": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "1118": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "__object.destroy" + }, + "1119": { + "sourceFileName": "src/delay.ts", + "qualifiedName": "id" + }, + "1120": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.encodeBase64" + }, + "1121": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "1122": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "encodeBase64" + }, + "1123": { + "sourceFileName": "src/encodeBase64.ts", + "qualifiedName": "input" + }, + "1124": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.encodeUtf8" + }, + "1125": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "1126": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "encodeUtf8" + }, + "1127": { + "sourceFileName": "src/encodeUtf8.ts", + "qualifiedName": "string" + }, + "1128": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.extend" + }, + "1129": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1130": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1131": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1132": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1133": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1134": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1135": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1136": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1137": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1138": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1139": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "extend" + }, + "1140": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "target" + }, + "1141": { + "sourceFileName": "src/extend.ts", + "qualifiedName": "args" + }, + "1142": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fillIPv6" + }, + "1143": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "1144": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "fillIPv6" + }, + "1145": { + "sourceFileName": "src/fillIPv6.ts", + "qualifiedName": "ip" + }, + "1146": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fixNumber" + }, + "1147": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "1148": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "fixNumber" + }, + "1149": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "number" + }, + "1150": { + "sourceFileName": "src/fixNumber.ts", + "qualifiedName": "n" + }, + "1151": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mapTemplate" + }, + "1152": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "1153": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "mapTemplate" + }, + "1154": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "tmp" + }, + "1155": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "data" + }, + "1156": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "1157": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "__type" + }, + "1158": { + "sourceFileName": "src/mapTemplate.ts", + "qualifiedName": "value" + }, + "1159": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getAppVersion" + }, + "1160": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "1161": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "getAppVersion" + }, + "1162": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "appName" + }, + "1163": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "withApp" + }, + "1164": { + "sourceFileName": "src/getAppVersion.ts", + "qualifiedName": "userAgent" + }, + "1165": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.appVersion" + }, + "1166": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1167": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1168": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1169": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1170": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1171": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1172": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1173": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1174": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1175": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appVersion" + }, + "1176": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "appName" + }, + "1177": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ua" + }, + "1178": { + "sourceFileName": "src/appVersion.ts", + "qualifiedName": "ignoreCase" + }, + "1179": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getCHSLength" + }, + "1180": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "1181": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "getCHSLength" + }, + "1182": { + "sourceFileName": "src/getCHSLength.ts", + "qualifiedName": "str" + }, + "1183": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getDirParam" + }, + "1184": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "1185": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "getDirParam" + }, + "1186": { + "sourceFileName": "src/getDirParam.ts", + "qualifiedName": "url" + }, + "1187": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.compareVersion" + }, + "1188": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "1189": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compareVersion" + }, + "1190": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "input" + }, + "1191": { + "sourceFileName": "src/compareVersion.ts", + "qualifiedName": "compare" + }, + "1192": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getNumber" + }, + "1193": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "1194": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "getNumber" + }, + "1195": { + "sourceFileName": "src/getNumber.ts", + "qualifiedName": "string" + }, + "1196": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getOsVersion" + }, + "1197": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "1198": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "getOsVersion" + }, + "1199": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "osName" + }, + "1200": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "withOS" + }, + "1201": { + "sourceFileName": "src/getOsVersion.ts", + "qualifiedName": "userAgent" + }, + "1202": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.osVersion" + }, + "1203": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "1204": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "osVersion" + }, + "1205": { + "sourceFileName": "src/osVersion.ts", + "qualifiedName": "ua" + }, + "1206": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.browserVersion" + }, + "1207": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "1208": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "browserVersion" + }, + "1209": { + "sourceFileName": "src/browserVersion.ts", + "qualifiedName": "ua" + }, + "1210": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getQueryParam" + }, + "1211": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1212": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1213": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "1214": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "getQueryParam" + }, + "1215": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "key" + }, + "1216": { + "sourceFileName": "src/getQueryParam.ts", + "qualifiedName": "url" + }, + "1217": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getQueryParams" + }, + "1218": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1219": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1220": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1221": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1222": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1223": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "getQueryParams" + }, + "1224": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "url" + }, + "1225": { + "sourceFileName": "src/getQueryParams.ts", + "qualifiedName": "covert" + }, + "1226": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getProperty" + }, + "1227": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1228": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "getProperty" + }, + "1229": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "target" + }, + "1230": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "prop" + }, + "1231": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1232": { + "sourceFileName": "src/getProperty.ts", + "qualifiedName": "__type" + }, + "1233": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomColor" + }, + "1234": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "1235": { + "sourceFileName": "src/randomColor.ts", + "qualifiedName": "randomColor" + }, + "1236": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomNumber" + }, + "1237": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "1238": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "randomNumber" + }, + "1239": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "min" + }, + "1240": { + "sourceFileName": "src/randomNumber.ts", + "qualifiedName": "max" + }, + "1241": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomNumbers" + }, + "1242": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "1243": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "randomNumbers" + }, + "1244": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "n" + }, + "1245": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "sum" + }, + "1246": { + "sourceFileName": "src/randomNumbers.ts", + "qualifiedName": "noZero" + }, + "1247": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.randomString" + }, + "1248": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1249": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1250": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "1251": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "1252": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "randomString" + }, + "1253": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "len" + }, + "1254": { + "sourceFileName": "src/randomString.ts", + "qualifiedName": "options" + }, + "1255": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.shuffle" + }, + "1256": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1257": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1258": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "1259": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "1260": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "shuffle" + }, + "1261": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "T" + }, + "1262": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "value" + }, + "1263": { + "sourceFileName": "src/shuffle.ts", + "qualifiedName": "size" + }, + "1264": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fingerprint" + }, + "1265": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "1266": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "fingerprint" + }, + "1267": { + "sourceFileName": "src/fingerprint.ts", + "qualifiedName": "domain" + }, + "1268": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getScrollPosition" + }, + "1269": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "1270": { + "sourceFileName": "src/getScrollPosition.ts", + "qualifiedName": "getScrollPosition" + }, + "1271": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getType" + }, + "1272": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "1273": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "getType" + }, + "1274": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "T" + }, + "1275": { + "sourceFileName": "src/getType.ts", + "qualifiedName": "target" + }, + "1276": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getFileType" + }, + "1277": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "1278": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "getFileType" + }, + "1279": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "url" + }, + "1280": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object" + }, + "1281": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.suffix" + }, + "1282": { + "sourceFileName": "src/getFileType.ts", + "qualifiedName": "__object.type" + }, + "1283": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.parseUrlParam" + }, + "1284": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "1285": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "parseUrlParam" + }, + "1286": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "url" + }, + "1287": { + "sourceFileName": "src/parseUrlParam.ts", + "qualifiedName": "covert" + }, + "1288": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.spliceUrlParam" + }, + "1289": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "1290": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "spliceUrlParam" + }, + "1291": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "T" + }, + "1292": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "params" + }, + "1293": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "covert" + }, + "1294": { + "sourceFileName": "src/spliceUrlParam.ts", + "qualifiedName": "withQuestionsMark" + }, + "1295": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getUrlParam" + }, + "1296": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1297": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1298": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "1299": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "getUrlParam" + }, + "1300": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "key" + }, + "1301": { + "sourceFileName": "src/getUrlParam.ts", + "qualifiedName": "url" + }, + "1302": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.getUrlParams" + }, + "1303": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1304": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1305": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1306": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1307": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1308": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "getUrlParams" + }, + "1309": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "url" + }, + "1310": { + "sourceFileName": "src/getUrlParams.ts", + "qualifiedName": "covert" + }, + "1311": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.intersect" + }, + "1312": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "1313": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "intersect" + }, + "1314": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "T" + }, + "1315": { + "sourceFileName": "src/intersect.ts", + "qualifiedName": "args" + }, + "1316": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDigitals" + }, + "1317": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "1318": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "isDigitals" + }, + "1319": { + "sourceFileName": "src/isDigitals.ts", + "qualifiedName": "str" + }, + "1320": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isExitsFunction" + }, + "1321": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "1322": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "isExitsFunction" + }, + "1323": { + "sourceFileName": "src/isExitsFunction.ts", + "qualifiedName": "name" + }, + "1324": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isExitsVariable" + }, + "1325": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "1326": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "isExitsVariable" + }, + "1327": { + "sourceFileName": "src/isExitsVariable.ts", + "qualifiedName": "name" + }, + "1328": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isEqual" + }, + "1329": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "1330": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "isEqual" + }, + "1331": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "T" + }, + "1332": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "P" + }, + "1333": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "a" + }, + "1334": { + "sourceFileName": "src/isEqual.ts", + "qualifiedName": "b" + }, + "1335": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isWindow" + }, + "1336": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "1337": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "isWindow" + }, + "1338": { + "sourceFileName": "src/isWindow.ts", + "qualifiedName": "target" + }, + "1339": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isObject" + }, + "1340": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "1341": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "isObject" + }, + "1342": { + "sourceFileName": "src/isObject.ts", + "qualifiedName": "target" + }, + "1343": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isArray" + }, + "1344": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "1345": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "isArray" + }, + "1346": { + "sourceFileName": "src/isArray.ts", + "qualifiedName": "target" + }, + "1347": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isIterable" + }, + "1348": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "1349": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "isIterable" + }, + "1350": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "T" + }, + "1351": { + "sourceFileName": "src/isIterable.ts", + "qualifiedName": "target" + }, + "1352": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isPlainObject" + }, + "1353": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "1354": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "isPlainObject" + }, + "1355": { + "sourceFileName": "src/isPlainObject.ts", + "qualifiedName": "target" + }, + "1356": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.isDarkMode" + }, + "1357": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "1358": { + "sourceFileName": "src/isDarkMode.ts", + "qualifiedName": "isDarkMode" + }, + "1359": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.inBrowser" + }, + "1360": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.inNodeJs" + }, + "1361": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.minus" + }, + "1362": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "1363": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "minus" + }, + "1364": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "T" + }, + "1365": { + "sourceFileName": "src/minus.ts", + "qualifiedName": "args" + }, + "1366": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.nextIndex" + }, + "1367": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "1368": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "nextIndex" + }, + "1369": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "min" + }, + "1370": { + "sourceFileName": "src/nextIndex.ts", + "qualifiedName": "max" + }, + "1371": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.nextVersion" + }, + "1372": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "1373": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "nextVersion" + }, + "1374": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "version" + }, + "1375": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "type" + }, + "1376": { + "sourceFileName": "src/nextVersion.ts", + "qualifiedName": "preid" + }, + "1377": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.promiseFactory" + }, + "1378": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "1379": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "promiseFactory" + }, + "1380": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "T" + }, + "1381": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "original" + }, + "1382": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "resolver" + }, + "1383": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "1384": { + "sourceFileName": "src/promiseFactory.ts", + "qualifiedName": "__type" + }, + "1385": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.waiting" + }, + "1386": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "__function" + }, + "1387": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "__function" + }, + "1388": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "milliseconds" + }, + "1389": { + "sourceFileName": "src/waiting.ts", + "qualifiedName": "throwOnTimeout" + }, + "1390": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.awaitTo" + }, + "1391": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "1392": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "1393": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "T" + }, + "1394": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "E" + }, + "1395": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promise" + }, + "1396": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "1397": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "T" + }, + "1398": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "E" + }, + "1399": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promise" + }, + "1400": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "awaitTo" + }, + "1401": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "T" + }, + "1402": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "E" + }, + "1403": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promise" + }, + "1404": { + "sourceFileName": "src/awaitTo.ts", + "qualifiedName": "promises" + }, + "1405": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayBufferToBase64" + }, + "1406": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "1407": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "arrayBufferToBase64" + }, + "1408": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "input" + }, + "1409": { + "sourceFileName": "src/arrayBufferToBase64.ts", + "qualifiedName": "mime" + }, + "1410": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.arrayBufferToBlob" + }, + "1411": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "1412": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "arrayBufferToBlob" + }, + "1413": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "input" + }, + "1414": { + "sourceFileName": "src/arrayBufferToBlob.ts", + "qualifiedName": "mime" + }, + "1415": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToArrayBuffer" + }, + "1416": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "1417": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "base64ToArrayBuffer" + }, + "1418": { + "sourceFileName": "src/base64ToArrayBuffer.ts", + "qualifiedName": "input" + }, + "1419": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToBlob" + }, + "1420": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "1421": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "base64ToBlob" + }, + "1422": { + "sourceFileName": "src/base64ToBlob.ts", + "qualifiedName": "input" + }, + "1423": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.base64ToFile" + }, + "1424": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "1425": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "base64ToFile" + }, + "1426": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "input" + }, + "1427": { + "sourceFileName": "src/base64ToFile.ts", + "qualifiedName": "fileName" + }, + "1428": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToArrayBuffer" + }, + "1429": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "1430": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "blobToArrayBuffer" + }, + "1431": { + "sourceFileName": "src/blobToArrayBuffer.ts", + "qualifiedName": "input" + }, + "1432": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToBase64" + }, + "1433": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "1434": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "blobToBase64" + }, + "1435": { + "sourceFileName": "src/blobToBase64.ts", + "qualifiedName": "input" + }, + "1436": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.blobToUrl" + }, + "1437": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "1438": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "blobToUrl" + }, + "1439": { + "sourceFileName": "src/blobToUrl.ts", + "qualifiedName": "input" + }, + "1440": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.fileToBase64" + }, + "1441": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "1442": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "fileToBase64" + }, + "1443": { + "sourceFileName": "src/fileToBase64.ts", + "qualifiedName": "input" + }, + "1444": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.svgToBlob" + }, + "1445": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "1446": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "svgToBlob" + }, + "1447": { + "sourceFileName": "src/svgToBlob.ts", + "qualifiedName": "input" + }, + "1448": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.urlToBlob" + }, + "1449": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "1450": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "urlToBlob" + }, + "1451": { + "sourceFileName": "src/urlToBlob.ts", + "qualifiedName": "input" + }, + "1452": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.openUrl" + }, + "1453": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "1454": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "openUrl" + }, + "1455": { + "sourceFileName": "src/openUrl.ts", + "qualifiedName": "url" + }, + "1456": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.copy" + }, + "1457": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "1458": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "copy" + }, + "1459": { + "sourceFileName": "src/copy.ts", + "qualifiedName": "value" + }, + "1460": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.pattern" + }, + "1461": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object" + }, + "1462": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.any" + }, + "1463": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.number" + }, + "1464": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.string" + }, + "1465": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.postcode" + }, + "1466": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.url" + }, + "1467": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.username" + }, + "1468": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.float" + }, + "1469": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.email" + }, + "1470": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.mobile" + }, + "1471": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.chinese" + }, + "1472": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.tel" + }, + "1473": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.qq" + }, + "1474": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.pass" + }, + "1475": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.json" + }, + "1476": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.arrjson" + }, + "1477": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.array" + }, + "1478": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.isjson" + }, + "1479": { + "sourceFileName": "src/pattern.ts", + "qualifiedName": "__object.textarea" + }, + "1480": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.removeEvent" + }, + "1481": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "1482": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "removeEvent" + }, + "1483": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "element" + }, + "1484": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "type" + }, + "1485": { + "sourceFileName": "src/removeEvent.ts", + "qualifiedName": "handler" + }, + "1486": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.searchObject" + }, + "1487": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "1488": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "searchObject" + }, + "1489": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "tree" + }, + "1490": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "expression" + }, + "1491": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "keySet" + }, + "1492": { + "sourceFileName": "src/searchObject.ts", + "qualifiedName": "number" + }, + "1493": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.setProperty" + }, + "1494": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "1495": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "setProperty" + }, + "1496": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "target" + }, + "1497": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "prop" + }, + "1498": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "1499": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "__type" + }, + "1500": { + "sourceFileName": "src/setProperty.ts", + "qualifiedName": "value" + }, + "1501": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.stopBubble" + }, + "1502": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "1503": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "stopBubble" + }, + "1504": { + "sourceFileName": "src/stopBubble.ts", + "qualifiedName": "e" + }, + "1505": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.stopDefault" + }, + "1506": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "1507": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "stopDefault" + }, + "1508": { + "sourceFileName": "src/stopDefault.ts", + "qualifiedName": "e" + }, + "1509": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.toThousands" + }, + "1510": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "1511": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "toThousands" + }, + "1512": { + "sourceFileName": "src/toThousands.ts", + "qualifiedName": "num" + }, + "1513": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.trim" + }, + "1514": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "1515": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "trim" + }, + "1516": { + "sourceFileName": "src/trim.ts", + "qualifiedName": "string" + }, + "1517": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.union" + }, + "1518": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "1519": { + "sourceFileName": "src/union.ts", + "qualifiedName": "union" + }, + "1520": { + "sourceFileName": "src/union.ts", + "qualifiedName": "T" + }, + "1521": { + "sourceFileName": "src/union.ts", + "qualifiedName": "args" + }, + "1522": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.unique" + }, + "1523": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "1524": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "unique" + }, + "1525": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "T" + }, + "1526": { + "sourceFileName": "src/unique.ts", + "qualifiedName": "arr" + }, + "1527": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.upperFirst" + }, + "1528": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "1529": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "upperFirst" + }, + "1530": { + "sourceFileName": "src/upperFirst.ts", + "qualifiedName": "string" + }, + "1531": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.uuid" + }, + "1532": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "__function" + }, + "1533": { + "sourceFileName": "src/uuid.ts", + "qualifiedName": "__function" + }, + "1534": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.windowSize" + }, + "1535": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "1536": { + "sourceFileName": "src/windowSize.ts", + "qualifiedName": "windowSize" + }, + "1537": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.loadSource" + }, + "1538": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "1539": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "loadSource" + }, + "1540": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "url" + }, + "1541": { + "sourceFileName": "node_modules/.pnpm/load-source@1.2.0/node_modules/load-source/dist/index.d.ts", + "qualifiedName": "option" + }, + "1542": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountCss" + }, + "1543": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "1544": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "mountCss" + }, + "1545": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "src" + }, + "1546": { + "sourceFileName": "node_modules/.pnpm/mount-css@1.2.0/node_modules/mount-css/dist/index.d.ts", + "qualifiedName": "option" + }, + "1547": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountImg" + }, + "1548": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "1549": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "mountImage" + }, + "1550": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "src" + }, + "1551": { + "sourceFileName": "node_modules/.pnpm/mount-image@1.2.0/node_modules/mount-image/dist/index.d.ts", + "qualifiedName": "option" + }, + "1552": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountJs" + }, + "1553": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "1554": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "mountScript" + }, + "1555": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "src" + }, + "1556": { + "sourceFileName": "node_modules/.pnpm/mount-script@1.2.0/node_modules/mount-script/dist/index.d.ts", + "qualifiedName": "option" + }, + "1557": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.mountStyle" + }, + "1558": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "1559": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "mountStyle" + }, + "1560": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "css" + }, + "1561": { + "sourceFileName": "node_modules/.pnpm/mount-style@1.2.0/node_modules/mount-style/dist/index.d.ts", + "qualifiedName": "option" + }, + "1562": { + "sourceFileName": "src/index.default.ts", + "qualifiedName": "__object.preloader" + }, + "1563": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1564": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1565": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + }, + "1566": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "preloader" + }, + "1567": { + "sourceFileName": "src/preloader.ts", + "qualifiedName": "images" + } + } +} \ No newline at end of file diff --git a/types/AnyObject.html b/types/AnyObject.html new file mode 100644 index 00000000..e7d450d0 --- /dev/null +++ b/types/AnyObject.html @@ -0,0 +1,63 @@ +AnyObject | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias AnyObject

+
AnyObject: Record<string, any>
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ArrayOneMore.html b/types/ArrayOneMore.html new file mode 100644 index 00000000..463f1153 --- /dev/null +++ b/types/ArrayOneMore.html @@ -0,0 +1,68 @@ +ArrayOneMore | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias ArrayOneMore<T>

+
ArrayOneMore<T>: ArrayOne<T> & T[]
+
+

Type Parameters

+
    +
  • +

    T

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ArrayTwoMore.html b/types/ArrayTwoMore.html new file mode 100644 index 00000000..048c7689 --- /dev/null +++ b/types/ArrayTwoMore.html @@ -0,0 +1,75 @@ +ArrayTwoMore | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias ArrayTwoMore<T>

+
ArrayTwoMore<T>: {
    0: T;
    1: T;
} & T[]
+
+

Type Parameters

+
    +
  • +

    T

+
+

Type declaration

+
    +
  • +
    0: T
  • +
  • +
    1: T
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ExtendArrayData.html b/types/ExtendArrayData.html new file mode 100644 index 00000000..765e2bc9 --- /dev/null +++ b/types/ExtendArrayData.html @@ -0,0 +1,63 @@ +ExtendArrayData | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias ExtendArrayData

+
ExtendArrayData: any[]
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ExtendData.html b/types/ExtendData.html new file mode 100644 index 00000000..b04d7260 --- /dev/null +++ b/types/ExtendData.html @@ -0,0 +1,63 @@ +ExtendData | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias ExtendData

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/ExtendObjectData.html b/types/ExtendObjectData.html new file mode 100644 index 00000000..7057480c --- /dev/null +++ b/types/ExtendObjectData.html @@ -0,0 +1,63 @@ +ExtendObjectData | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias ExtendObjectData

+
ExtendObjectData: Record<string, any>
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/JSONValue.html b/types/JSONValue.html new file mode 100644 index 00000000..b019717b --- /dev/null +++ b/types/JSONValue.html @@ -0,0 +1,63 @@ +JSONValue | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias JSONValue

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/MaybePromiseOrGetter.html b/types/MaybePromiseOrGetter.html new file mode 100644 index 00000000..9e2245bb --- /dev/null +++ b/types/MaybePromiseOrGetter.html @@ -0,0 +1,81 @@ +MaybePromiseOrGetter | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias MaybePromiseOrGetter<T>

+
MaybePromiseOrGetter<T>: Promise<T> | (<T>() => Promise<T>)
+
+

Type Parameters

+
    +
  • +

    T

+
+

Type declaration

+
    +
  • +
      +
    • <T>(): Promise<T>
    • +
    • +
      +

      Type Parameters

      +
        +
      • +

        T

      +

      Returns Promise<T>

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/OmitPartial.html b/types/OmitPartial.html new file mode 100644 index 00000000..d70bc709 --- /dev/null +++ b/types/OmitPartial.html @@ -0,0 +1,70 @@ +OmitPartial | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias OmitPartial<T, K>

+
OmitPartial<T, K>: {
    [P in K]: T[P]
} & Omit<Partial<T>, K>
+
+

Type Parameters

+
    +
  • +

    T

  • +
  • +

    K extends keyof T

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/OmitRequired.html b/types/OmitRequired.html new file mode 100644 index 00000000..ceabc7e7 --- /dev/null +++ b/types/OmitRequired.html @@ -0,0 +1,70 @@ +OmitRequired | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias OmitRequired<T, K>

+
OmitRequired<T, K>: {
    [P in K]: T[P]
} & Omit<Required<T>, K>
+
+

Type Parameters

+
    +
  • +

    T

  • +
  • +

    K extends keyof T

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/PickPartial.html b/types/PickPartial.html new file mode 100644 index 00000000..47847003 --- /dev/null +++ b/types/PickPartial.html @@ -0,0 +1,70 @@ +PickPartial | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias PickPartial<T, K>

+
PickPartial<T, K>: {
    [P in K]?: T[P]
} & Omit<T, K>
+
+

Type Parameters

+
    +
  • +

    T

  • +
  • +

    K extends keyof T

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/PickRequired.html b/types/PickRequired.html new file mode 100644 index 00000000..ab3d36d8 --- /dev/null +++ b/types/PickRequired.html @@ -0,0 +1,70 @@ +PickRequired | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias PickRequired<T, K>

+
PickRequired<T, K>: {
    [P in K]-?: T[P]
} & Omit<T, K>
+
+

Type Parameters

+
    +
  • +

    T

  • +
  • +

    K extends keyof T

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/Primitive.html b/types/Primitive.html new file mode 100644 index 00000000..c2f99931 --- /dev/null +++ b/types/Primitive.html @@ -0,0 +1,63 @@ +Primitive | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias Primitive

+
Primitive: bigint | boolean | null | number | string | symbol | undefined
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/types/RandomStringCharType.html b/types/RandomStringCharType.html new file mode 100644 index 00000000..8007394a --- /dev/null +++ b/types/RandomStringCharType.html @@ -0,0 +1,63 @@ +RandomStringCharType | index.md - v5.13.0
+
+ +
+
+
+
+ +

Type alias RandomStringCharType

+
RandomStringCharType: "uppercase" | "lowercase" | "number" | "special"
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/variables/addEvent.guid.html b/variables/addEvent.guid.html new file mode 100644 index 00000000..1d364ccc --- /dev/null +++ b/variables/addEvent.guid.html @@ -0,0 +1,64 @@ +guid | index.md - v5.13.0
+
+ +
+
+
+
+ +

Variable guid

+
guid: number
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/variables/default.html b/variables/default.html new file mode 100644 index 00000000..389f8b2b --- /dev/null +++ b/variables/default.html @@ -0,0 +1,3238 @@ +default | index.md - v5.13.0
+
+ +
+
+
+
+ +

Variable default

+
default: {
    CSVToArray: ((data, delimiter?, omitFirstRow?) => string[][]);
    CSVToJSON: ((data, delimiter?) => any[]);
    JSONToCSV: ((arr, columns, delimiter?) => string);
    RGBToHex: ((r, g, b) => string);
    addEvent: typeof addEvent;
    all: (<T>(arr, fn) => boolean);
    any: (<T>(arr, fn) => boolean);
    appVersion: {
        (appName): string | null;
        (appName, ua): string | null;
        (appName, ua): string | null;
        (appName, ua, ignoreCase): string | null;
    };
    arrayBufferToBase64: ((input, mime?) => string);
    arrayBufferToBlob: ((input, mime?) => Blob);
    arrayToCSV: (<T>(arr, delimiter?) => string);
    awaitTo: {
        <T, E>(promise): Promise<[E, undefined] | [null, T]>;
        <T, E>(promise): Promise<[E, undefined] | [null, T[]]>;
        <T, E>(promise, ...promises): Promise<[E, undefined] | [null, T[]]>;
    };
    base64ToArrayBuffer: ((input) => ArrayBuffer);
    base64ToBlob: ((input) => Blob);
    base64ToFile: ((input, fileName) => File);
    blobToArrayBuffer: ((input) => Promise<ArrayBuffer | null>);
    blobToBase64: ((input) => Promise<string | null>);
    blobToUrl: ((input) => string);
    browserVersion: ((ua?) => BrowserVersion | null);
    camel2Dash: ((string) => string);
    cleanData: ((data, map, nullFix?) => any);
    clearAttr: ((string) => string);
    clearHtml: ((string) => string);
    client: ((name?, userAgent?) => boolean | {
        ANDROID: boolean;
        GECKO: boolean;
        IE: boolean;
        IOS: boolean;
        IPAD: boolean;
        IPHONE: boolean;
        MOBILE: boolean;
        OPERA: boolean;
        QQ: null | RegExpMatchArray;
        QQBROWSER: boolean;
        TRIDENT: boolean;
        WEBKIT: boolean;
        WEIXIN: boolean;
    });
    compareVersion: ((input, compare) => 0 | 1 | -1);
    complement: (<T>(...args) => T[]);
    contains: ((arr, item) => boolean);
    copy: ((value) => undefined | boolean);
    cutCHSString: ((str, len?, hasDot?) => string);
    dash2Camel: ((string) => string);
    decodeBase64: ((input) => string);
    decodeUtf8: ((utftext) => string);
    delCache: ((name) => void);
    delCookie: ((name) => void);
    delSession: ((name) => void);
    delay: (() => {
        map: any;
        destroy(id) => void;
        register(id, fn, time, boo) => void;
    });
    download: ((url, filename, type?) => void);
    encodeBase64: ((input) => string);
    encodeUtf8: ((string) => string);
    escape: ((string) => string);
    extend: {
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendArrayData;
        (target, ...args): ExtendArrayData;
    };
    fileToBase64: ((input) => Promise<string | null>);
    fillIPv6: ((ip) => string);
    fingerprint: ((domain?) => null | string);
    fixNumber: ((number, n?) => number);
    getAppVersion: ((appName, withApp?, userAgent?) => string | boolean | null);
    getCHSLength: ((str) => number);
    getCache: ((name) => any);
    getCookie: ((name) => any);
    getCookies: (() => Record<string, string>);
    getDirParam: ((url) => DirParamType);
    getFileType: ((url) => {
        suffix: string;
        type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
    });
    getNumber: ((string) => string);
    getOsVersion: ((osName, withOS?, userAgent?) => string | boolean | null);
    getProperty: ((target, prop) => any);
    getQueryParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    };
    getQueryParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    };
    getScrollPosition: (() => undefined | "bottom" | "top");
    getSession: ((name) => any);
    getType: (<T>(target) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp");
    getUrlParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    };
    getUrlParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    };
    inBrowser: boolean;
    inNodeJs: boolean;
    intersect: (<T>(...args) => T[]);
    isArray: ((target) => target is any[]);
    isDarkMode: (() => boolean);
    isDigitals: ((str) => boolean);
    isEqual: (<T, P>(a, b) => boolean);
    isExitsFunction: ((name) => boolean);
    isExitsVariable: ((name) => boolean);
    isIterable: (<T>(target) => target is Iterable<T>);
    isObject: ((target) => target is Object);
    isPlainObject: ((target) => target is PlainObject);
    isWindow: ((target) => target is Window);
    loadSource: ((url, option) => Promise<boolean | string>);
    mapTemplate: ((tmp, data) => string);
    minus: (<T>(...args) => T[]);
    mountCss: ((src, option?) => Promise<boolean>);
    mountImg: ((src, option?) => Promise<boolean | string>);
    mountJs: ((src, option?) => Promise<boolean>);
    mountStyle: ((css, option?) => Promise<boolean>);
    nextIndex: ((min?, max?) => number);
    nextVersion: ((version, type?, preid?) => string);
    openUrl: ((url) => void);
    osVersion: ((ua?) => OsVersion | null);
    parseUrlParam: ((url, covert?) => Record<string, unknown>);
    pattern: {
        any: RegExp;
        array: RegExp;
        arrjson: RegExp;
        chinese: RegExp;
        email: RegExp;
        float: RegExp;
        isjson: RegExp;
        json: RegExp;
        mobile: RegExp;
        number: RegExp;
        pass: RegExp;
        postcode: RegExp;
        qq: RegExp;
        string: RegExp;
        tel: RegExp;
        textarea: RegExp;
        url: RegExp;
        username: RegExp;
    };
    preloader: {
        (images): HTMLImageElement;
        (images): Record<string, HTMLImageElement>;
    };
    promiseFactory: (<T>(original, resolver) => T & PromiseLike<T>);
    randomColor: (() => string);
    randomNumber: ((min?, max?) => number);
    randomNumbers: ((n?, sum?, noZero?) => number[]);
    randomString: {
        (len?, options?): string;
        (len?, options?): string;
    };
    removeEvent: ((element, type, handler) => void);
    searchObject: ((tree, expression, keySet, number?) => any[]);
    setCache: (<T>(name, value, seconds?) => void);
    setCookie: (<T>(name, value, seconds, path?, samesite?) => void);
    setProperty: ((target, prop, value) => any);
    setSession: (<T>(name, value, seconds?) => void);
    shuffle: {
        (value, size?): string;
        <T>(value, size?): T;
    };
    spliceUrlParam: (<T>(params, covert?, withQuestionsMark?) => string);
    stopBubble: ((e) => boolean);
    stopDefault: ((e) => boolean);
    svgToBlob: ((input) => Blob);
    toThousands: ((num) => string);
    trim: ((string) => string);
    unescape: ((string) => string);
    union: (<T>(...args) => T[]);
    unique: (<T>(arr) => T[]);
    upperFirst: ((string) => string);
    urlToBlob: ((input) => Promise<Blob | null>);
    uuid: (() => string);
    version: string;
    waiting: ((milliseconds, throwOnTimeout?) => Promise<void>);
    windowSize: (() => WindowSizeObj);
}
+
+

Type declaration

+
    +
  • +
    CSVToArray: ((data, delimiter?, omitFirstRow?) => string[][])
    +
      +
    • +
        +
      • (data, delimiter?, omitFirstRow?): string[][]
      • +
      • +

        Converts a comma-separated string of values (CSV) to a 2D array.

        +
        +
        +

        Parameters

        +
          +
        • +
          data: string
          +

          csv data

          +
          +
        • +
        • +
          delimiter: string = ','
          +

          separator, default ','

          +
          +
        • +
        • +
          omitFirstRow: boolean = false
          +

          the first row is the table header data, default false

          +
          +
        +

        Returns string[][]

        array

        + +
        +

        Example

        CSVToArray('a,b\\nc,d')
        // `[['a','b'],['c','d']]`.

        CSVToArray('a;b\\\nc;d', ';')
        // `[['a','b'],['c','d']]`.

        CSVToArray('col1,col2\\\na,b\\\nc,d', ',', true)
        // `[['a','b'],['c','d']]`. +
        +
  • +
  • +
    CSVToJSON: ((data, delimiter?) => any[])
    +
      +
    • +
        +
      • (data, delimiter?): any[]
      • +
      • +

        Converts a comma-separated string of values (CSV) to an array of 2D objects. The first line of the string is used as the header line.

        +
        +
        +

        Parameters

        +
          +
        • +
          data: string
          +

          csv data

          +
          +
        • +
        • +
          delimiter: string = ','
          +

          delimiter, default ','

          +
          +
        +

        Returns any[]

          +
        • json
        • +
        + +
        +

        Example

        CSVToJSON('col1,col2\\na,b\\\nc,d')
        // `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`.

        CSVToJSON('col1;col2\\\na;b\\\nc;d', ';')
        // `[{'col1': 'a', 'col2': 'b'}, {'col1': 'c', 'col2': 'd'}]`. +
        +
  • +
  • +
    JSONToCSV: ((arr, columns, delimiter?) => string)
    +
      +
    • +
        +
      • (arr, columns, delimiter?): string
      • +
      • +

        Converts an array of objects to a comma-separated value (CSV) string containing only the specified columns.

        +
        +
        +

        Parameters

        +
          +
        • +
          arr: any[]
        • +
        • +
          columns: any[]
          +

          the specified columns

          +
          +
        • +
        • +
          delimiter: string = ','
          +

          delimiter, default ','

          +
          +
        +

        Returns string

          +
        • CSV data
        • +
        + +
        +

        Example

        JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'])
        // 'a,b\n "1", "2"\n "3", "4"\n "6",""\n"", "7"'

        JSONToCSV([{ a: 1, b: 2 }, { a: 3, b: 4, c: 5 }, { a: 6 }, { b: 7 }], ['a', 'b'], ';')
        // 'a;b\n "1"; "2"\n "3"; "4"\n "6";""\n""; "7"' +
        +
  • +
  • +
    RGBToHex: ((r, g, b) => string)
    +
      +
    • +
        +
      • (r, g, b): string
      • +
      • +

        Converts RGB component values to color codes.

        +
        +
        +

        Parameters

        +
          +
        • +
          r: number
          +

          the 1st value of RGB

          +
          +
        • +
        • +
          g: number
          +

          RGB's 2nd value

          +
          +
        • +
        • +
          b: number
          +

          RGB's 3rd value

          +
          +
        +

        Returns string

          +
        • hex value
        • +
        + +
        +

        Example

        RGBToHex(255, 165, 1)
        // 'ffa501' +
        +
  • +
  • +
    addEvent: typeof addEvent
  • +
  • +
    all: (<T>(arr, fn) => boolean)
    +
      +
    • +
        +
      • <T>(arr, fn): boolean
      • +
      • +

        Returns true if the provided predicate function returns true for all elements in a set, otherwise it returns false.

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          arr: T[]
          +

          the target array

          +
          +
        • +
        • +
          fn: AnyFunction
          +

          the judgment method

          +
          +
        +

        Returns boolean

          +
        • the result of the judgment
        • +
        + +
        +

        Example

        all([4, 2, 3], x => x > 1)
        // true +
        +
  • +
  • +
    any: (<T>(arr, fn) => boolean)
    +
      +
    • +
        +
      • <T>(arr, fn): boolean
      • +
      • +

        Returns true if the provided predicate function returns true for at least one element of a set, otherwise it returns false.

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          arr: T[]
          +

          the target array

          +
          +
        • +
        • +
          fn: AnyFunction
          +

          the judgment method

          +
          +
        +

        Returns boolean

          +
        • the result of the judgment
        • +
        + +
        +

        Example

        any([0, 1, 2, 0], x => x >= 2)
        // true +
        +
  • +
  • +
    appVersion: {
        (appName): string | null;
        (appName, ua): string | null;
        (appName, ua): string | null;
        (appName, ua, ignoreCase): string | null;
    }
    +
      +
    • +
        +
      • (appName): string | null
      • +
      • +

        Get the APP version from navigator.userAgent, support 'x.x.x' & 'x.x.x-tagname.x'

        +
        +
        +

        Parameters

        +
          +
        • +
          appName: string
          +

          app name

          +
          +
        +

        Returns string | null

        string|null

        + +
        +

        Example

        // navigator.userAgent => '5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 AppName/1.0.0-beta.8'
        appVersion('Chrome') // 114.0.0.0
        appVersion('Safari') // 537.36
        appVersion('appname', false) // null
        appVersion('appname') // 1.0.0-beta.8 +
        +
      • +
      • (appName, ua): string | null
      • +
      • +
        +

        Parameters

        +
          +
        • +
          appName: string
        • +
        • +
          ua: string
        +

        Returns string | null

      • +
      • (appName, ua): string | null
      • +
      • +
        +

        Parameters

        +
          +
        • +
          appName: string
        • +
        • +
          ua: boolean
        +

        Returns string | null

      • +
      • (appName, ua, ignoreCase): string | null
      • +
      • +
        +

        Parameters

        +
          +
        • +
          appName: string
        • +
        • +
          ua: string
        • +
        • +
          ignoreCase: boolean
        +

        Returns string | null

  • +
  • +
    arrayBufferToBase64: ((input, mime?) => string)
    +
      +
    • +
        +
      • (input, mime?): string
      • +
      • +

        arrayBuffer to base64

        +
        +
        +

        Parameters

        +
          +
        • +
          input: ArrayBuffer
          +

          arrayBuffer

          +
          +
        • +
        • +
          mime: string = 'image/png'
          +

          image mime, default: image/png

          +
          +
        +

        Returns string

          +
        • base64
        • +
        + +
  • +
  • +
    arrayBufferToBlob: ((input, mime?) => Blob)
    +
      +
    • +
        +
      • (input, mime?): Blob
      • +
      • +

        arrayBuffer to blob

        +
        +
        +

        Parameters

        +
          +
        • +
          input: ArrayBuffer
          +

          arrayBuffer

          +
          +
        • +
        • +
          mime: string = 'image/png'
          +

          image mime, default: image/png

          +
          +
        +

        Returns Blob

          +
        • blob
        • +
        + +
  • +
  • +
    arrayToCSV: (<T>(arr, delimiter?) => string)
    +
      +
    • +
        +
      • <T>(arr, delimiter?): string
      • +
      • +

        Converts a two-dimensional array to a comma-separated string of values (CSV).

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T extends unknown[][]

        +
        +

        Parameters

        +
          +
        • +
          arr: T
        • +
        • +
          delimiter: string = ','
          +

          delimiter, default ','

          +
          +
        +

        Returns string

        CSV data

        + +
        +

        Example

        arrayToCSV([['a', 'b'], ['c', 'd']])
        // '"a", "b" \n "c", "d"'

        arrayToCSV([['a', 'b'], ['c', 'd']], ';')
        // '"a"; "b"\n "c"; "d"'

        arrayToCSV([['a', '"b" great'], ['c', 3.1415]])
        // '"a", """b"" great"\n "c",3.1415' +
        +
  • +
  • +
    awaitTo: {
        <T, E>(promise): Promise<[E, undefined] | [null, T]>;
        <T, E>(promise): Promise<[E, undefined] | [null, T[]]>;
        <T, E>(promise, ...promises): Promise<[E, undefined] | [null, T[]]>;
    }
    +
      +
    • +
        +
      • <T, E>(promise): Promise<[E, undefined] | [null, T]>
      • +
      • +

        Async await wrapper for easy error handling

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T

        • +
        • +

          E = Error

        +
        +

        Parameters

        +
          +
        • +
          promise: Promise<T>
          +

          Promise

          +
          +
        +

        Returns Promise<[E, undefined] | [null, T]>

          +
        • [Error, undefined] | [null, data | data[]]
        • +
        + +
      • +
      • <T, E>(promise): Promise<[E, undefined] | [null, T[]]>
      • +
      • +
        +

        Type Parameters

        +
          +
        • +

          T

        • +
        • +

          E = Error

        +
        +

        Parameters

        +
          +
        • +
          promise: Promise<T>[]
        +

        Returns Promise<[E, undefined] | [null, T[]]>

      • +
      • <T, E>(promise, ...promises): Promise<[E, undefined] | [null, T[]]>
      • +
      • +
        +

        Type Parameters

        +
          +
        • +

          T

        • +
        • +

          E = Error

        +
        +

        Parameters

        +
          +
        • +
          promise: Promise<T>
        • +
        • +
          Rest ...promises: Promise<T>[]
        +

        Returns Promise<[E, undefined] | [null, T[]]>

  • +
  • +
    base64ToArrayBuffer: ((input) => ArrayBuffer)
    +
      +
    • +
        +
      • (input): ArrayBuffer
      • +
      • +

        base64 to arrayBuffer

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          base64 string

          +
          +
        +

        Returns ArrayBuffer

          +
        • arrayBuffer
        • +
        + +
  • +
  • +
    base64ToBlob: ((input) => Blob)
    +
      +
    • +
        +
      • (input): Blob
      • +
      • +

        base64 to blob

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          base64 string

          +
          +
        +

        Returns Blob

          +
        • blob
        • +
        + +
  • +
  • +
    base64ToFile: ((input, fileName) => File)
    +
      +
    • +
        +
      • (input, fileName): File
      • +
      • +

        base64 to file

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          base64 string

          +
          +
        • +
        • +
          fileName: string
          +

          file name

          +
          +
        +

        Returns File

          +
        • the BASE64 encoding
        • +
        + +
  • +
  • +
    blobToArrayBuffer: ((input) => Promise<ArrayBuffer | null>)
    +
      +
    • +
        +
      • (input): Promise<ArrayBuffer | null>
      • +
      • +

        blob to arrayBuffer

        +
        +
        +

        Parameters

        +
          +
        • +
          input: Blob
          +

          blob data

          +
          +
        +

        Returns Promise<ArrayBuffer | null>

          +
        • arrayBuffer
        • +
        + +
  • +
  • +
    blobToBase64: ((input) => Promise<string | null>)
    +
      +
    • +
        +
      • (input): Promise<string | null>
      • +
      • +

        blob to base64

        +
        +
        +

        Parameters

        +
          +
        • +
          input: Blob
          +

          blob data

          +
          +
        +

        Returns Promise<string | null>

          +
        • base64 string
        • +
        + +
  • +
  • +
    blobToUrl: ((input) => string)
    +
      +
    • +
        +
      • (input): string
      • +
      • +

        blob to blobUrl

        +
        +
        +

        Parameters

        +
          +
        • +
          input: Blob
          +

          blob data

          +
          +
        +

        Returns string

          +
        • blobUrl
        • +
        + +
  • +
  • +
    browserVersion: ((ua?) => BrowserVersion | null)
    +
      +
    • +
        +
      • (ua?): BrowserVersion | null
      • +
      • +

        Get the browser name and version

        +
        +
        +

        Parameters

        +
          +
        • +
          Optional ua: string
          +

          ua or any ua like string, may not be passed, default is navigator.userAgent

          +
          +
        +

        Returns BrowserVersion | null

        BrowserVersion|null

        + +
        +

        Example

        // Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) Ap…KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
        browserVersion() // \{ name: 'Chrome', version: '114.0.0.0' \} +
        +
  • +
  • +
    camel2Dash: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Converts humped strings to -spaced and all lowercase Dash pattern

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          the string to be converted

          +
          +
        +

        Returns string

          +
        • the converted string
        • +
        + +
  • +
  • +
    cleanData: ((data, map, nullFix?) => any)
    +
      +
    • +
        +
      • (data, map, nullFix?): any
      • +
      • +

        Data cleaning methods

        +
        +
        +

        Parameters

        +
          +
        • +
          data: any
          +

          the object to be cleaned, must be passed

          +
          +
        • +
        • +
          map: any[] | AnyObject
          +

          the data queue to be cleaned, can be passed as array or object

          +
          +
        • +
        • +
          Optional nullFix: any
          +
        +

        Returns any

          +
        • the cleaned object
        • +
        + +
  • +
  • +
    clearAttr: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Remove all attributes of HTML tags

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          pass in the string

          +
          +
        +

        Returns string

        newString

        + +
  • +
  • +
    clearHtml: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Removing HTML tags

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          string with html tags

          +
          +
        +

        Returns string

        newString

        + +
  • +
  • +
    client: ((name?, userAgent?) => boolean | {
        ANDROID: boolean;
        GECKO: boolean;
        IE: boolean;
        IOS: boolean;
        IPAD: boolean;
        IPHONE: boolean;
        MOBILE: boolean;
        OPERA: boolean;
        QQ: null | RegExpMatchArray;
        QQBROWSER: boolean;
        TRIDENT: boolean;
        WEBKIT: boolean;
        WEIXIN: boolean;
    })
    +
      +
    • +
        +
      • (name?, userAgent?): boolean | {
            ANDROID: boolean;
            GECKO: boolean;
            IE: boolean;
            IOS: boolean;
            IPAD: boolean;
            IPHONE: boolean;
            MOBILE: boolean;
            OPERA: boolean;
            QQ: null | RegExpMatchArray;
            QQBROWSER: boolean;
            TRIDENT: boolean;
            WEBKIT: boolean;
            WEIXIN: boolean;
        }
      • +
      • +

        The client method returns a browser judgment result: { ANDROID: true, GECKO: true, GLSH_APP: false, IE: false, IOS: false, IPAD: false, IPHONE: false, MOBILE: true, MOBILEDEVICE. true, OPERA: false, QQ: false, QQBROWSER: false, TRIDENT: false, WEBKIT: true, WEIXIN: false }

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string = ''
          +

          optional, e.g. pass in MicroMessenger to return whether it is the built-in browser of Weixin

          +
          +
        • +
        • +
          userAgent: string = navigator.userAgent
          +

          optional, pass in a custom ua, default takes the browser's navigator.userAgent

          +
          +
        +

        Returns boolean | {
            ANDROID: boolean;
            GECKO: boolean;
            IE: boolean;
            IOS: boolean;
            IPAD: boolean;
            IPHONE: boolean;
            MOBILE: boolean;
            OPERA: boolean;
            QQ: null | RegExpMatchArray;
            QQBROWSER: boolean;
            TRIDENT: boolean;
            WEBKIT: boolean;
            WEIXIN: boolean;
        }

          +
        • the common ua match table, if name is passed, then returns whether the terminal matches true/false
        • +
        + +
        +

        Deprecated

        Will be refactored for the next major release

        +
  • +
  • +
    compareVersion: ((input, compare) => 0 | 1 | -1)
    +
      +
    • +
        +
      • (input, compare): 0 | 1 | -1
      • +
      • +

        Version number size comparison, tag version: rc > beta > alpha > other

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          input version

          +
          +
        • +
        • +
          compare: string
          +

          compare version

          +
          +
        +

        Returns 0 | 1 | -1

        1/0/-1

        + +
        +

        Example

        compareVersion('1.11.0', '1.9.9')
        // => 1: 1=Version 1.11.0 is newer than 1.9.9

        compareVersion('1.11.0', '1.11.0')
        // => 0: 0=Versions 1.11.0 and 1.11.0 are the same

        compareVersion('1.11.0', '1.99.0')
        // => -1: -1=Version 1.11.0 is older than 1.99.0

        compareVersion('1.0.0.0.0.10', '1.0')
        // => -1

        // compare tag version: rc > beta > alpha > other
        compareVersion('1.11.0', '1.11.0-beta.1')
        // => -1

        compareVersion('1.11.0-beta.1', '1.11.0')
        // => -1

        compareVersion('1.11.0-beta.10', '1.11.0-beta.10')
        // => 0

        compareVersion('1.11.0-alpha.10', '1.11.0-beta.1')
        // => -1

        compareVersion('1.11.0-alpha.10', '1.11.0-rc.1')
        // => -1

        compareVersion('1.11.0-tag.10', '1.11.0-alpha.1')
        // => -1

        compareVersion('1.11.0-tag.10', '1.11.0-tag.1')
        // => 1

        compareVersion('1.11.0-release.10', '1.11.0-tag.1')
        // => 1 +
        +
  • +
  • +
    complement: (<T>(...args) => T[])
    +
      +
    • +
        +
      • <T>(...args): T[]
      • +
      • +

        Find the complement of multiple arrays

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          Rest ...args: T[][]
          +

          arguments

          +
          +
        +

        Returns T[]

        array

        + +
        +

        Example

        complement([1, 2], [2, '33'], [2]) // [1, '33']
        +
        +
  • +
  • +
    contains: ((arr, item) => boolean)
    +
      +
    • +
        +
      • (arr, item): boolean
      • +
      • +

        Whether the array contains the specified element

        +
        +
        +

        Parameters

        +
          +
        • +
          arr: any[]
          +

          the target array

          +
          +
        • +
        • +
          item: any
          +

          the target to find

          +
          +
        +

        Returns boolean

        boolean

        + +
        +

        Example

        contains([1, 2], 2) // true
        contains([1, 2], 3) // false +
        +
  • +
  • +
    copy: ((value) => undefined | boolean)
    +
      +
    • +
        +
      • (value): undefined | boolean
      • +
      • +

        copy to clipboard

        +
        +
        +

        Parameters

        +
          +
        • +
          value: any
          +

          any target

          +
          +
        +

        Returns undefined | boolean

          +
        • target is Object
        • +
        + +
  • +
  • +
    cutCHSString: ((str, len?, hasDot?) => string)
    +
      +
    • +
        +
      • (str, len?, hasDot?): string
      • +
      • +

        Intercept string, Chinese counts as 2 bytes

        +
        +
        +

        Parameters

        +
          +
        • +
          str: string
          +

          the string to be intercepted

          +
          +
        • +
        • +
          len: number = str.length
          +
        • +
        • +
          hasDot: boolean = false
          +
        +

        Returns string

          +
        • the intercepted string
        • +
        + +
  • +
  • +
    dash2Camel: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Converts -spaced and all lowercase Dash patterns to humped strings

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          the string to be converted

          +
          +
        +

        Returns string

          +
        • the converted string
        • +
        + +
  • +
  • +
    decodeBase64: ((input) => string)
    +
      +
    • +
        +
      • (input): string
      • +
      • +

        base64 decoding

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          the string to be decoded

          +
          +
        +

        Returns string

        decoded string

        + +
  • +
  • +
    decodeUtf8: ((utftext) => string)
    +
      +
    • +
        +
      • (utftext): string
      • +
      • +

        Decoding Utf8

        +
        +
        +

        Parameters

        +
          +
        • +
          utftext: string
        +

        Returns string

        decoded string

        + +
  • +
  • +
    delCache: ((name) => void)
    +
      +
    • +
        +
      • (name): void
      • +
      • +

        Delete localStorage

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          name

          +
          +
        +

        Returns void

        +
  • +
  • +
    delCookie: ((name) => void)
    +
      +
    • +
        +
      • (name): void
      • +
      • +

        Delete cookie

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          cookie name

          +
          +
        +

        Returns void

        +
  • +
  • +
    delSession: ((name) => void)
    +
      +
    • +
        +
      • (name): void
      • +
      • +

        Delete sessionStorage

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          name

          +
          +
        +

        Returns void

        +
  • +
  • +
    delay: (() => {
        map: any;
        destroy(id) => void;
        register(id, fn, time, boo) => void;
    })
    +
      +
    • +
        +
      • (): {
            map: any;
            destroy(id) => void;
            register(id, fn, time, boo) => void;
        }
      • +
      • +

        debounce & throttle

        +
        +

        Returns {
            map: any;
            destroy(id) => void;
            register(id, fn, time, boo) => void;
        }

        class

        + +
          +
        • +
          map: any
        • +
        • +
          destroy:function
          +
            + +
          • +
            +

            Parameters

            +
              +
            • +
              id: string
            +

            Returns void

        • +
        • +
          register:function
          +
            + +
          • +
            +

            Parameters

            +
              +
            • +
              id: string
            • +
            • +
              fn: AnyFunction
            • +
            • +
              time: number
            • +
            • +
              boo: boolean
            +

            Returns void

        +
  • +
  • +
    download: ((url, filename, type?) => void)
    +
      +
    • +
        +
      • (url, filename, type?): void
      • +
      • +

        Several ways of file downloading:

        +
          +
        1. For file formats that some browsers do not recognize. Enter the file URL in the address bar, window.location.href = URL, window.open(URL);
        2. +
        3. using a tag download attribute (or js create a tag);
        4. +
        5. browser-recognizable pdf, txt files, back-end compatible with handling attachment;
        6. +
        7. add token in the header for authenticated download, use XmlHttpRequest to want to backend to launch the request
        8. +
        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          link

          +
          +
        • +
        • +
          filename: string
          +

          filename

          +
          +
        • +
        • +
          Optional type: string
          +

          download type 'href','open','download','request'

          +
          +
        +

        Returns void

        +
  • +
  • +
    encodeBase64: ((input) => string)
    +
      +
    • +
        +
      • (input): string
      • +
      • +

        String, number to base64

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          the string to be encoded

          +
          +
        +

        Returns string

          +
        • the BASE64 encoding
        • +
        + +
  • +
  • +
    encodeUtf8: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Encoding Utf8

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
        +

        Returns string

          +
        • the UTF-8 encoding
        • +
        + +
  • +
  • +
    escape: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Escaping HTML Special Characters

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          string with html tags

          +
          +
        +

        Returns string

          +
        • newString
        • +
        + +
        +

        Example

        escape('<div>test<br />string</div>')
        // '&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;' +
        +
  • +
  • +
    extend: {
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendObjectData;
        (target, ...args): ExtendArrayData;
        (target, ...args): ExtendArrayData;
    }
    +
  • +
  • +
    fileToBase64: ((input) => Promise<string | null>)
    +
      +
    • +
        +
      • (input): Promise<string | null>
      • +
      • +

        file to base64

        +
        +
        +

        Parameters

        +
          +
        • +
          input: File
          +

          file data

          +
          +
        +

        Returns Promise<string | null>

          +
        • base64 string
        • +
        + +
  • +
  • +
    fillIPv6: ((ip) => string)
    +
      +
    • +
        +
      • (ip): string
      • +
      • +

        Read full IPv6

        +
        +
        +

        Parameters

        +
          +
        • +
          ip: string
        +

        Returns string

          +
        • string
        • +
        + +
        +

        Example

        fillIPv6('2409:8005:800::2')
        // '2409:8005:0800:0000:0000:0000:0000:0002'

        fillIPv6('2409:8005:800::1c')
        // '2409:8005:0800:0000:0000:0000:0000:001c' +
        +
  • +
  • +
    fingerprint: ((domain?) => null | string)
    +
      +
    • +
        +
      • (domain?): null | string
      • +
      • +

        Generating Browser Fingerprints

        +
        +
        +

        Parameters

        +
          +
        • +
          Optional domain: string
          +

          key string, default: location.host

          +
          +
        +

        Returns null | string

          +
        • fingerprint
        • +
        + +
  • +
  • +
    fixNumber: ((number, n?) => number)
    +
      +
    • +
        +
      • (number, n?): number
      • +
      • +

        Intercept the decimal places, do not fill in the missing 0

        +
        +
        +

        Parameters

        +
          +
        • +
          number: string | number
          +

          the number of digits to be processed, required

          +
          +
        • +
        • +
          n: number = 2
          +

          the number of decimal places to keep, default is 2

          +
          +
        +

        Returns number

          +
        • the new number
        • +
        + +
        +

        Example

        fixNumber('100.888')
        // 100.88

        fixNumber('100.8', 2)
        // 100.8

        fixNumber('100.8888', 3)
        // 100.888 +
        +
  • +
  • +
    getAppVersion: ((appName, withApp?, userAgent?) => string | boolean | null)
    +
      +
    • +
        +
      • (appName, withApp?, userAgent?): string | boolean | null
      • +
      • +

        Get the APP version number

        +
        +
        +

        Parameters

        +
          +
        • +
          appName: string
          +

          app name

          +
          +
        • +
        • +
          Optional withApp: boolean
          +

          whether to bring the name

          +
          +
        • +
        • +
          Optional userAgent: string
          +

          ua, may not be passed, default is navigator.appVersion

          +
          +
        +

        Returns string | boolean | null

        null/true/false

        + +
        +

        Deprecated

        please use 'appVersion' instead

        +
  • +
  • +
    getCHSLength: ((str) => number)
    +
      +
    • +
        +
      • (str): number
      • +
      • +

        Get the length of the text, Chinese counts as 2 bytes

        +
        +
        +

        Parameters

        +
          +
        • +
          str: string
          +

          string

          +
          +
        +

        Returns number

          +
        • length
        • +
        + +
        +

        Example

        getCHSLength('测试')
        // 2 +
        +
  • +
  • +
    getCache: ((name) => any)
    +
      +
    • +
        +
      • (name): any
      • +
      • +

        Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          cache name

          +
          +
        +

        Returns any

          +
        • data, if it's an object, it's also an object
        • +
        + +
        +

        Example

        const data1 = 100
        const data2 = { a: 10 }
        const data3 = null

        setCache('data1', data1)
        setCache('data2', data2)
        setCache('data3', data3)

        getCache('data1') // 100
        getCache('data2') // {a:10}
        getCache('data3') // null

        getCache('data4') // null +
        +
  • +
  • +
    getCookie: ((name) => any)
    +
      +
    • +
        +
      • (name): any
      • +
      • +

        Read cookie by name

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          cookie name

          +
          +
        +

        Returns any

          +
        • the cookie string
        • +
        + +
        +

        Example

        getCookie('data1')
        // 100 +
        +
  • +
  • +
    getCookies: (() => Record<string, string>)
    +
      +
    • +
        +
      • (): Record<string, string>
      • +
      • +

        Read all cookies

        +
        +

        Returns Record<string, string>

          +
        • the cookie values
        • +
        + +
        +

        Example

        getCookies()
        // \{ token: 'xxx', name: 'saqqdy' \} +
        +
  • +
  • +
    getDirParam: ((url) => DirParamType)
    +
      +
    • +
        +
      • (url): DirParamType
      • +
      • +

        Get directory form URL parameters

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          pass in the url address

          +
          +
        +

        Returns DirParamType

          +
        • parameter object
        • +
        + +
        +

        Deprecated

        It will be refactored and renamed getDirParams in the next major release.

        +
  • +
  • +
    getFileType: ((url) => {
        suffix: string;
        type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
    })
    +
      +
    • +
        +
      • (url): {
            suffix: string;
            type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
        }
      • +
      • +

        Determine file type based on link suffix

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          file url

          +
          +
        +

        Returns {
            suffix: string;
            type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip";
        }

        result

        + +
          +
        • +
          suffix: string
        • +
        • +
          type: "audio" | "video" | "image" | "other" | "word" | "txt" | "excel" | "pdf" | "ppt" | "zip"
        +
        +

        Example

        getFileType('/name.png')
        // { "suffix": "png", "type": "image" }

        getFileType('/name.PDF')
        // { "suffix": "pdf", "type": "pdf" }

        getFileType('/name.xyz')
        // { "suffix": "xyz", "type": "other" } +
        +
  • +
  • +
    getNumber: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Get the number in the string

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          pass in a string with a number

          +
          +
        +

        Returns string

          +
        • a pure numeric string
        • +
        + +
        +

        Example

        getNumber('Chrome123.33')
        // '123.33'.

        getNumber('234test.88')
        // '234.88'. +
        +
  • +
  • +
    getOsVersion: ((osName, withOS?, userAgent?) => string | boolean | null)
    +
      +
    • +
        +
      • (osName, withOS?, userAgent?): string | boolean | null
      • +
      • +

        Get the phone system version

        +
        +
        +

        Parameters

        +
          +
        • +
          osName: string
          +

          system type string Android, iPod, iWatch or iPhone

          +
          +
        • +
        • +
          Optional withOS: boolean
          +

          whether to bring the name

          +
          +
        • +
        • +
          Optional userAgent: string
          +

          ua, may not be passed, default takes navigator.appVersion

          +
          +
        +

        Returns string | boolean | null

          +
        • null/true/false
        • +
        + +
        +

        Example

        getOsVersion('iPhone')
        // '13.2.3'

        getOsVersion('iPhone', true)
        // 'iPhone/13.2.3' +
        + +

        Deprecated

        please use 'osVersion' instead

        +
  • +
  • +
    getProperty: ((target, prop) => any)
    +
      +
    • +
        +
      • (target, prop): any
      • +
      • +

        Get array, object property values based on path string

        +
        +
        +

        Parameters

        +
          +
        • +
          target: any
          +

          target array, object

          +
          +
        • +
        • +
          prop: string | (() => string)
          +

          query target, can pass function

          +
          +
        +

        Returns any

        result

        + +
        +

        Example

        const target = {
        a: 1,
        b: [{
        c: 2
        }]
        }
        getProperty(target, 'a') // 1
        getProperty(target, 'b[0].c') // 2
        getProperty(target, () => 'a') // 1 +
        +
  • +
  • +
    getQueryParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    }
    +
      +
    • +
        +
      • (key): string | undefined
      • +
      • +

        Get a single query parameter (behind "#")

        +
        +
        +

        Parameters

        +
          +
        • +
          key: string
          +

          key name

          +
          +
        +

        Returns string | undefined

          +
        • result
        • +
        + +
        +

        Example

        getQueryParam('key1')
        // key1 => xxx

        getQueryParam('key1', 'https://test.com?key1=100#/home?key1=200')
        // key1 => 200 +
        +
      • +
      • (key, url): string | undefined
      • +
      • +
        +

        Parameters

        +
          +
        • +
          key: string
        • +
        • +
          url: string
        +

        Returns string | undefined

  • +
  • +
    getQueryParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    }
    +
      +
    • +
        +
      • (url): Record<string, string>
      • +
      • +

        Get all URL parameters (behind "#")

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          pass in the url string

          +
          +
        +

        Returns Record<string, string>

          +
        • result
        • +
        + +
        +

        Example

        getQueryParams('https://test.com?key1=100#/home?key1=200')
        // \{"key1":"200"\}

        getQueryParams('https://test.com?key1=100#/home?key1=200', true)
        // \{"key1":200\}

        getQueryParams(true)
        // \{"key1":200\} +
        +
      • +
      • (url): Record<string, unknown>
      • +
      • +
        +

        Parameters

        +
          +
        • +
          url: boolean
        +

        Returns Record<string, unknown>

      • +
      • (url, covert): Record<string, unknown>
      • +
      • +
        +

        Parameters

        +
          +
        • +
          url: string
        • +
        • +
          covert: boolean
        +

        Returns Record<string, unknown>

  • +
  • +
    getScrollPosition: (() => undefined | "bottom" | "top")
    +
      +
    • +
        +
      • (): undefined | "bottom" | "top"
      • +
      • +

        Get slide to top and bottom return 'top' 'bottom', recommend using limit flow

        +
        +

        Returns undefined | "bottom" | "top"

          +
        • position
        • +
        + +
        +

        Deprecated

        will be removed in the next major release.

        +
  • +
  • +
    getSession: ((name) => any)
    +
      +
    • +
        +
      • (name): any
      • +
      • +

        Read sessionStorage

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          name

          +
          +
        +

        Returns any

          +
        • sessionStorage
        • +
        + +
        +

        Example

        const data1 = 100
        const data2 = { a: 10 }
        const data3 = null

        setSession('data1', data1)
        setSession('data2', data2)
        setSession('data3', data3)

        getSession('data1') // 100
        getSession('data2') // {a:10}
        getSession('data3') // null

        getSession('data4') // null +
        +
  • +
  • +
    getType: (<T>(target) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp")
    +
      +
    • +
        +
      • <T>(target): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp"
      • +
      • +

        Get the target type

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = any

        +
        +

        Parameters

        +
          +
        • +
          target: T
          +

          target

          +
          +
        +

        Returns "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function" | "window" | "error" | "promise" | "math" | "document" | "navigator" | "global" | "null" | "array" | "date" | "regexp"

        type

        + +
  • +
  • +
    getUrlParam: {
        (key): string | undefined;
        (key, url): string | undefined;
    }
    +
      +
    • +
        +
      • (key): string | undefined
      • +
      • +

        Get a single URL parameter (from the "location.search", before "#")

        +
        +
        +

        Parameters

        +
          +
        • +
          key: string
          +

          key name

          +
          +
        +

        Returns string | undefined

          +
        • result
        • +
        + +
        +

        Example

        getUrlParam('key1')
        // key1 => xxx

        getUrlParam('key1', 'https://test.com?key1=100#/home?key1=200')
        // key1 => 100 +
        +
      • +
      • (key, url): string | undefined
      • +
      • +
        +

        Parameters

        +
          +
        • +
          key: string
        • +
        • +
          url: string
        +

        Returns string | undefined

  • +
  • +
    getUrlParams: {
        (url): Record<string, string>;
        (url): Record<string, unknown>;
        (url, covert): Record<string, unknown>;
    }
    +
      +
    • +
        +
      • (url): Record<string, string>
      • +
      • +

        Get all URL parameters (from the "location.search", before "#")

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          pass in the url string

          +
          +
        +

        Returns Record<string, string>

          +
        • result
        • +
        + +
        +

        Example

        getUrlParams('https://test.com?key1=100#/home?key1=200')
        // \{"key1":"100"\}

        getUrlParams('https://test.com?key1=100#/home?key1=200', true)
        // \{"key1":100\}

        getUrlParams(true)
        // \{"key1":100\} +
        +
      • +
      • (url): Record<string, unknown>
      • +
      • +
        +

        Parameters

        +
          +
        • +
          url: boolean
        +

        Returns Record<string, unknown>

      • +
      • (url, covert): Record<string, unknown>
      • +
      • +
        +

        Parameters

        +
          +
        • +
          url: string
        • +
        • +
          covert: boolean
        +

        Returns Record<string, unknown>

  • +
  • +
    inBrowser: boolean
  • +
  • +
    inNodeJs: boolean
  • +
  • +
    intersect: (<T>(...args) => T[])
    +
      +
    • +
        +
      • <T>(...args): T[]
      • +
      • +

        Find the intersection of multiple arrays

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          Rest ...args: T[][]
          +

          arguments

          +
          +
        +

        Returns T[]

          +
        • new array
        • +
        + +
        +

        Example

        intersect([1, 2], [2, 3, 4], [2, 8], [2, '33']) // [2]
        +
        +
  • +
  • +
    isArray: ((target) => target is any[])
    +
      +
    • +
        +
      • (target): target is any[]
      • +
      • +

        Determine if it is an array

        +
        +
        +

        Parameters

        +
          +
        • +
          target: any
          +

          any target

          +
          +
        +

        Returns target is any[]

          +
        • target is Array
        • +
        + +
        +

        Example

        isArray([]) // true
        +
        +
  • +
  • +
    isDarkMode: (() => boolean)
    +
      +
    • +
        +
      • (): boolean
      • +
      • +

        Determine if dark color mode

        +
        +

        Returns boolean

          +
        • result
        • +
        + +
        +

        Example

        isDarkMode() // true
        +
        +
  • +
  • +
    isDigitals: ((str) => boolean)
    +
      +
    • +
        +
      • (str): boolean
      • +
      • +

        Whether or not it is a string consisting of numbers

        +
        +
        +

        Parameters

        +
          +
        • +
          str: string
          +

          the string to be tested

          +
          +
        +

        Returns boolean

          +
        • true/false
        • +
        + +
        +

        Deprecated

        will be removed in the next major release.

        +
  • +
  • +
    isEqual: (<T, P>(a, b) => boolean)
    +
      +
    • +
        +
      • <T, P>(a, b): boolean
      • +
      • +

        Determine if 2 objects are equal

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T

        • +
        • +

          P

        +
        +

        Parameters

        +
          +
        • +
          a: T
          +

          source

          +
          +
        • +
        • +
          b: P
          +

          compare

          +
          +
        +

        Returns boolean

          +
        • a equals to b
        • +
        + +
        +

        Example

        isEqual({ a: 22, b: {} }, { b: {}, a: 22 })
        // true

        isEqual([1, 2], [2, 1])
        // false

        isEqual(NaN, NaN)
        // true +
        +
  • +
  • +
    isExitsFunction: ((name) => boolean)
    +
      +
    • +
        +
      • (name): boolean
      • +
      • +

        The presence or absence of the specified function

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          incoming function name

          +
          +
        +

        Returns boolean

          +
        • true/false
        • +
        + +
        +

        Example

        isExitsFunction('test') // false
        isExitsFunction('console.log') // true +
        +
  • +
  • +
    isExitsVariable: ((name) => boolean)
    +
      +
    • +
        +
      • (name): boolean
      • +
      • +

        The presence or absence of the specified variable

        +
        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          variable name

          +
          +
        +

        Returns boolean

          +
        • true/false
        • +
        + +
        +

        Example

        isExitsVariable('test') // false
        isExitsVariable('window') // true +
        +
  • +
  • +
    isIterable: (<T>(target) => target is Iterable<T>)
    +
      +
    • +
        +
      • <T>(target): target is Iterable<T>
      • +
      • +

        Determine if it is iterable

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = any

        +
        +

        Parameters

        +
          +
        • +
          target: T | Iterable<T>
          +

          any target

          +
          +
        +

        Returns target is Iterable<T>

          +
        • target is Array
        • +
        + +
        +

        Example

        isIterable([]) // true
        +
        +
  • +
  • +
    isObject: ((target) => target is Object)
    +
      +
    • +
        +
      • (target): target is Object
      • +
      • +

        Determine if target is an object

        +
        +
        +

        Parameters

        +
          +
        • +
          target: any
          +

          any target

          +
          +
        +

        Returns target is Object

          +
        • target is Object
        • +
        + +
        +

        Example

        isObject({}) // true
        +
        +
  • +
  • +
    isPlainObject: ((target) => target is PlainObject)
    +
      +
    • +
        +
      • (target): target is PlainObject
      • +
      • +

        Determine if target is an plain object

        +
        +
        +

        Parameters

        +
          +
        • +
          target: unknown
          +

          any target

          +
          +
        +

        Returns target is PlainObject

          +
        • target is plain Object
        • +
        + +
        +

        Example

        isPlainObject({}) // true
        isPlainObject(window) // false +
        +
  • +
  • +
    isWindow: ((target) => target is Window)
    +
      +
    • +
        +
      • (target): target is Window
      • +
      • +

        Determine if target is an window object

        +
        +
        +

        Parameters

        +
          +
        • +
          target: any
          +

          any

          +
          +
        +

        Returns target is Window

          +
        • target is Window
        • +
        + +
        +

        Example

        isWindow({}) // false
        isWindow(window) // true +
        +
  • +
  • +
    loadSource: ((url, option) => Promise<boolean | string>)
    +
      +
    • +
        +
      • (url, option): Promise<boolean | string>
      • +
      • +

        Dynamic loading of resources, support js, images, css links, css style strings

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          link to the resource, type must be passed when passing in styleString

          +
          +
        • +
        • +
          option: string | SourceOptions
          +

          parameters: attrs, props, force

          +
          +
        +

        Returns Promise<boolean | string>

          +
        • true|false|imgUrl
        • +
        + +
  • +
  • +
    mapTemplate: ((tmp, data) => string)
    +
      +
    • +
        +
      • (tmp, data): string
      • +
      • +

        Replacing specific data in a template string, support ${xxxx} {{xxxx}} and {xxxx}

        +
        +
        +

        Parameters

        +
          +
        • +
          tmp: string
          +

          Template string

          +
          +
        • +
        • +
          data: Record<string, unknown> | ((value) => unknown)
          +

          Template data of map function

          +
          +
        +

        Returns string

          +
        • result
        • +
        + +
        +

        Example

        const tmp = "My name is ${name}, I'm ${age} years old."
        mapTemplate(tmp, {
        name: 'saqqdy',
        age: 18
        })
        // My name is saqqdy, I'm 18 years old.

        mapTemplate(tmp, key => ({ name: 'saqqdy', age: 28 }[key]))
        // My name is saqqdy, I'm 28 years old.

        const tmp = "My name is {{name}}, I'm {{age}} years old."
        mapTemplate(tmp, {
        name: 'saqqdy',
        age: 18
        })
        // My name is saqqdy, I'm 18 years old. +
        +
  • +
  • +
    minus: (<T>(...args) => T[])
    +
      +
    • +
        +
      • <T>(...args): T[]
      • +
      • +

        Find the set of differences of multiple arrays that belong to A but not to B/C/D... of the elements of

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          Rest ...args: T[][]
          +

          arguments

          +
          +
        +

        Returns T[]

          +
        • new array
        • +
        + +
        +

        Example

        minus([1, 2], [2, '33'], [2, 4]) // [1]
        +
        +
  • +
  • +
    mountCss: ((src, option?) => Promise<boolean>)
    +
      +
    • +
        +
      • (src, option?): Promise<boolean>
      • +
      • +

        Dynamic loading of css link resources

        +
        +
        +

        Parameters

        +
          +
        • +
          src: string
          +

          resource address

          +
          +
        • +
        • +
          Optional option: CssOptions
          +

          parameters: attrs, props, force

          +
          +
        +

        Returns Promise<boolean>

          +
        • result
        • +
        + +
  • +
  • +
    mountImg: ((src, option?) => Promise<boolean | string>)
    +
      +
    • +
        +
      • (src, option?): Promise<boolean | string>
      • +
      • +

        Dynamic loading of image resources

        +
        +
        +

        Parameters

        +
          +
        • +
          src: string
          +

          resource address

          +
          +
        • +
        • +
          Optional option: ImgOptions
          +

          parameters: attrs, props, force

          +
          +
        +

        Returns Promise<boolean | string>

          +
        • result
        • +
        + +
  • +
  • +
    mountJs: ((src, option?) => Promise<boolean>)
    +
      +
    • +
        +
      • (src, option?): Promise<boolean>
      • +
      • +

        Dynamic loading of js linked resources

        +
        +
        +

        Parameters

        +
          +
        • +
          src: string
          +

          resource address

          +
          +
        • +
        • +
          Optional option: JsOptions
          +

          parameters: attrs, props, force

          +
          +
        +

        Returns Promise<boolean>

          +
        • result
        • +
        + +
  • +
  • +
    mountStyle: ((css, option?) => Promise<boolean>)
    +
      +
    • +
        +
      • (css, option?): Promise<boolean>
      • +
      • +

        Dynamic loading of css styles

        +
        +
        +

        Parameters

        +
          +
        • +
          css: string
        • +
        • +
          Optional option: StyleOptions
          +

          parameters: attrs, props

          +
          +
        +

        Returns Promise<boolean>

          +
        • results
        • +
        + +
  • +
  • +
    nextIndex: ((min?, max?) => number)
    +
      +
    • +
        +
      • (min?, max?): number
      • +
      • +

        Return the next zIndex value

        +
        +
        +

        Parameters

        +
          +
        • +
          min: number = 5000
          +

          optional, minimum value

          +
          +
        • +
        • +
          max: number = 10000
          +

          optional, maximum value

          +
          +
        +

        Returns number

          +
        • number
        • +
        + +
        +

        Example

        nextIndex()
        // 1

        nextIndex(1000)
        // 1001

        nextIndex(10, 100)
        // 100 +
        +
  • +
  • +
    nextVersion: ((version, type?, preid?) => string)
    +
      +
    • +
        +
      • (version, type?, preid?): string
      • +
      • +

        return the next version, Only version types with no more than 3 digits are supported. (Follow the npm version rules)

        +
        +
        +

        Parameters

        +
          +
        • +
          version: string
          +

          version(like: 1.0.0)

          +
          +
        • +
        • +
          Optional type: "major" | "minor" | "patch" | "premajor" | "preminor" | "prepatch" | "prerelease"
          +

          optional, version type

          +
          +
        • +
        • +
          preid: string = ''
          +

          optional, prerelease id

          +
          +
        +

        Returns string

          +
        • new version
        • +
        + +
        +

        Example

        nextVersion('1.2.33') // 1.2.34

        nextVersion('1.2.33', 'major') // 2.0.0

        nextVersion('1.2.33', 'premajor', 'alpha') // 2.0.0-alpha.1 +
        +
  • +
  • +
    openUrl: ((url) => void)
    +
      +
    • +
        +
      • (url): void
      • +
      • +

        Open link in new tab (file jump download if browser can't parse)

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          link

          +
          +
        +

        Returns void

        +
  • +
  • +
    osVersion: ((ua?) => OsVersion | null)
    +
      +
    • +
        +
      • (ua?): OsVersion | null
      • +
      • +

        Get the system name and version

        +
        +
        +

        Parameters

        +
          +
        • +
          Optional ua: string
          +

          ua or any ua like string, may not be passed, default is navigator.userAgent

          +
          +
        +

        Returns OsVersion | null

        OsVersion|null

        + +
        +

        Example

        // ipad => 'Mozilla/5.0 (iPad; CPU OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1'
        osVersion() // \{ name: 'iOS', version: '13.3' \}

        // iphone => 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
        osVersion() // \{ name: 'iOS', version: '13.2.3' \}

        // mac os => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
        osVersion() // \{ name: 'MacOS', version: '10.15.7' \}

        // windows => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
        osVersion() // \{ name: 'Windows', version: '10.0' \}

        // windows xp => 'Mozilla/5.0 (Windows NT 5.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36'
        osVersion() // \{ name: 'Windows', version: 'XP' \}

        // windows phone => 'Mozilla/5.0 (Windows Phone OS 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.82 Safari/537.36'
        osVersion() // \{ name: 'WindowsPhone', version: '10.0' \}
        +
        +
  • +
  • +
    parseUrlParam: ((url, covert?) => Record<string, unknown>)
    +
      +
    • +
        +
      • (url, covert?): Record<string, unknown>
      • +
      • +

        parse url params

        +
        +
        +

        Parameters

        +
          +
        • +
          url: string
          +

          url string (like: ?key1=value1&key2=value2)

          +
          +
        • +
        • +
          covert: boolean = false
          +

          Converts a specific string to a corresponding value (Scientific notation, binary, octal and hexadecimal types of data are not converted, like: 0b111, 0o13, 0xFF, 1e3, -1e-2)

          +
          +
        +

        Returns Record<string, unknown>

        object

        + +
        +

        Example

        parseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test')
        // \{"key1":"100","key2":"true","key3":"null","key4":"undefined","key5":"NaN","key6":"10.888","key7":"Infinity","key8":"test"\}

        parseUrlParam('?key1=100&key2=true&key3=null&key4=undefined&key5=NaN&key6=10.888&key7=Infinity&key8=test', true)
        // \{"key1":100,"key2":true,"key3":null,"key5":NaN,"key6":10.888,"key7":Infinity,"key8":"test"\} +
        +
  • +
  • +
    pattern: {
        any: RegExp;
        array: RegExp;
        arrjson: RegExp;
        chinese: RegExp;
        email: RegExp;
        float: RegExp;
        isjson: RegExp;
        json: RegExp;
        mobile: RegExp;
        number: RegExp;
        pass: RegExp;
        postcode: RegExp;
        qq: RegExp;
        string: RegExp;
        tel: RegExp;
        textarea: RegExp;
        url: RegExp;
        username: RegExp;
    }
    +
      +
    • +
      any: RegExp
    • +
    • +
      array: RegExp
    • +
    • +
      arrjson: RegExp
    • +
    • +
      chinese: RegExp
    • +
    • +
      email: RegExp
    • +
    • +
      float: RegExp
    • +
    • +
      isjson: RegExp
    • +
    • +
      json: RegExp
    • +
    • +
      mobile: RegExp
    • +
    • +
      number: RegExp
    • +
    • +
      pass: RegExp
    • +
    • +
      postcode: RegExp
    • +
    • +
      qq: RegExp
    • +
    • +
      string: RegExp
    • +
    • +
      tel: RegExp
    • +
    • +
      textarea: RegExp
    • +
    • +
      url: RegExp
    • +
    • +
      username: RegExp
  • +
  • +
    preloader: {
        (images): HTMLImageElement;
        (images): Record<string, HTMLImageElement>;
    }
    +
      +
    • +
        +
      • (images): HTMLImageElement
      • +
      • +

        Image preloading

        +
        +
        +

        Parameters

        +
          +
        • +
          images: string
          +

          images url

          +
          +
        +

        Returns HTMLImageElement

        +
      • +
      • (images): Record<string, HTMLImageElement>
      • +
      • +
        +

        Parameters

        +
          +
        • +
          images: string[]
        +

        Returns Record<string, HTMLImageElement>

  • +
  • +
    promiseFactory: (<T>(original, resolver) => T & PromiseLike<T>)
    +
      +
    • +
        +
      • <T>(original, resolver): T & PromiseLike<T>
      • +
      • +

        Convert an object to a promise like api

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T extends object

        +
        +

        Parameters

        +
          +
        • +
          original: T
          +

          original object

          +
          +
        • +
        • +
          resolver: (() => Promise<any>)
          +

          resolver function

          +
          +
          +
            +
          • +
              +
            • (): Promise<any>
            • +
            • +

              Returns Promise<any>

        +

        Returns T & PromiseLike<T>

          +
        • result
        • +
        + +
        +

        Example

        import { promiseFactory, waiting } from 'js-cool'

        function promise() {
        const stats = {
        value: 100
        }

        const resolver = () =>
        new Promise(resolve =>
        waiting(2000).then(() => {
        stats.value = 200
        resolve(stats)
        })
        )

        return promiseFactory(stats, resolver)
        }

        const res = promise() // res => 100
        const res = await promise() // res => 200 +
        +
  • +
  • +
    randomColor: (() => string)
    +
      +
    • +
        +
      • (): string
      • +
      • +

        Generate random hexadecimal colors

        +
        +

        Returns string

          +
        • result
        • +
        + +
  • +
  • +
    randomNumber: ((min?, max?) => number)
    +
      +
    • +
        +
      • (min?, max?): number
      • +
      • +

        Get a random integer

        +
        +
        +

        Parameters

        +
          +
        • +
          min: number = 1
          +

          the minimum value of the random number

          +
          +
        • +
        • +
          max: number = 10
          +

          the maximum value of the random number

          +
          +
        +

        Returns number

          +
        • random number
        • +
        + +
        +

        Example

        randomNumber()
        // 8

        randomNumber(0.1, 0.9)
        // 0.8 +
        +
  • +
  • +
    randomNumbers: ((n?, sum?, noZero?) => number[])
    +
      +
    • +
        +
      • (n?, sum?, noZero?): number[]
      • +
      • +

        Generate n random integers that sum to a fixed sum

        +
        +
        +

        Parameters

        +
          +
        • +
          Optional n: number
          +

          Number of generated integers, default: 1

          +
          +
        • +
        • +
          Optional sum: number
          +

          Sum of generated integers, default: 100

          +
          +
        • +
        • +
          Optional noZero: boolean
        +

        Returns number[]

          +
        • numbers
        • +
        + +
        +

        Example

        randomNumbers()
        // [8]

        randomNumbers(4, 5)
        // [1, 1, 2, 1]

        randomNumbers(4, 5, false)
        // [0, 1, 2, 2] +
        +
  • +
  • +
    randomString: {
        (len?, options?): string;
        (len?, options?): string;
    }
    +
      +
    • +
        +
      • (len?, options?): string
      • +
      • +

        Get a random string

        +
        +
        +

        Parameters

        +
          +
        • +
          Optional len: number
          +

          the length of the random string that needs to be obtained

          +
          +
        • +
        • +
          Optional options: boolean | RandomStringOptions
          +

          optional, randomString options

          +
          +
        +

        Returns string

          +
        • random string
        • +
        + +
        +

        Example

        // 1. No parameters are passed, a 32-bit (possibly) string containing upper and lower case letters and numbers is generated by default
        randomString()
        // PVSjz902EqYbmxaLtvDnggtnlvt5uFTZ

        // 2. Generate a 16-bit random string
        randomString(16)
        // coTgZy0mqqMJ1sMM

        // 3. Same effect as #2 above
        randomString({
        length: 16
        })
        // ngCI5aPqJm84t90d

        // 4. Generate containing special characters (old way of passing values, not recommended)
        randomString(true)
        // 0Uby@op3B-sK5]dHl4S|15As.OlHiNXd

        // 5. Same effect as #4 above (recommended)
        randomString({
        charTypes: ['uppercase', 'lowercase', 'number', 'special']
        })
        // m,2^vpkrE,F,DbcSFk0=vr&@DJ27j9XK

        // 6. Same effect as #4 above, Limit string length to 16 bits
        randomString(16, true)
        // dXz[J_sYM^3d8fnA

        // 7. Generate a 16-bit random number
        randomString({
        length: 16,
        charTypes: 'number'
        })
        // 7450026301030286

        // 8. Elimination of confusing characters: oOLl,9gq,Vv,Uu,I1
        randomString({
        length: 16,
        noConfuse: true
        })
        // 8DEGna8ppC4mqyew

        // 9. The generated random string must contain at least 1 character of each type of character specified, e.g. to generate a 16-bit password that must contain upper and lower case letters, numbers, and special characters.
        randomString({
        length: 16,
        strict: true
        })
        // PFYAPD5KFqOHIADL +
        +
      • +
      • (len?, options?): string
      • +
      • +
        +

        Parameters

        +
        +

        Returns string

  • +
  • +
    removeEvent: ((element, type, handler) => void)
    +
      +
    • +
        +
      • (element, type, handler): void
      • +
      • +

        removeEvent removes the event delegate created by addEvent

        +
        +
        +

        Parameters

        +
          +
        • +
          element: AnyObject
          +

          js dom object

          +
          +
        • +
        • +
          type: string
          +

          The type of the event. No need to add on

          +
          +
        • +
        • +
          handler: AnyFunction
          +

          Callback method.

          +
          +
        +

        Returns void

        +
  • +
  • +
    searchObject: ((tree, expression, keySet, number?) => any[])
    +
      +
    • +
        +
      • (tree, expression, keySet, number?): any[]
      • +
      • +

        tree object depth lookup

        +
        +
        +

        Parameters

        +
          +
        • +
          tree: object | any[]
          +

          tree object

          +
          +
        • +
        • +
          expression: any
          +

          required Query method

          +
          +
        • +
        • +
          keySet: SearchKeySet
          +

          optional Default subclass name, query name

          +
          +
        • +
        • +
          number: number = 0
          +

          optional Number of lookups, if not passed, query all

          +
          +
        +

        Returns any[]

          +
        • the queried array
        • +
        + +
  • +
  • +
    setCache: (<T>(name, value, seconds?) => void)
    +
      +
    • +
        +
      • <T>(name, value, seconds?): void
      • +
      • +

        Get the cache, if the deposited is Object, the retrieved is also Object, no need to convert again

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          cache name

          +
          +
        • +
        • +
          value: T
          +

          cache data, can be passed directly into Object

          +
          +
        • +
        • +
          Optional seconds: string | number
          +

          cache time (seconds)

          +
          +
        +

        Returns void

        +
        +

        Example

        // set boolean
        setCache('boolean', true)

        // set object
        setCache('object', { name: 'saqqdy' })

        // set number, expires in 20 seconds
        setCache('number', 666, 20) +
        +
  • +
  • +
    setCookie: (<T>(name, value, seconds, path?, samesite?) => void)
    +
      +
    • +
        +
      • <T>(name, value, seconds, path?, samesite?): void
      • +
      • +

        setCookie method for writing cookies

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T extends string | number | boolean

        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          cookie name

          +
          +
        • +
        • +
          value: T
          +

          Set the value to be stored, either as an object or as a string

          +
          +
        • +
        • +
          seconds: string | number
          +

          cookie validity default 1 day

          +
          +
        • +
        • +
          path: string = '/'
          +

          path, default '/'

          +
          +
        • +
        • +
          samesite: boolean = true
          +

          SameSite, default true

          +
          +
        +

        Returns void

        +
        +

        Example

        // expires in 86400 seconds
        setCookie('token', 'xxxxxx')

        // set to path
        setCookie('token', 'xxxxxx', 20, '/app')

        // enable samesite
        setCookie('number', 666, 20, '/', false) +
        +
  • +
  • +
    setProperty: ((target, prop, value) => any)
    +
      +
    • +
        +
      • (target, prop, value): any
      • +
      • +

        Set array, object property values based on path strings

        +
        +
        +

        Parameters

        +
          +
        • +
          target: any
          +

          target array, object

          +
          +
        • +
        • +
          prop: string | (() => string)
          +

          set target, can pass function, 'a' | 'a[1].c'

          +
          +
        • +
        • +
          value: any
        +

        Returns any

          +
        • the corresponding value
        • +
        + +
        +

        Example

        const target = {
        a: 1,
        b: [{
        c: 2
        }]
        }

        setProperty(target, 'a') // 1

        setProperty(target, 'b[0].c') // 2

        setProperty(target, () => 'a') // 1 +
        +
  • +
  • +
    setSession: (<T>(name, value, seconds?) => void)
    +
      +
    • +
        +
      • <T>(name, value, seconds?): void
      • +
      • +

        Write sessionStorage

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          name: string
          +

          name

          +
          +
        • +
        • +
          value: T
          +

          Set the value to be stored, either as an object or as a string

          +
          +
        • +
        • +
          Optional seconds: string | number
          +

          the valid time

          +
          +
        +

        Returns void

        +
        +

        Example

        // set boolean
        setSession('boolean', true)

        // set object
        setSession('object', { name: 'saqqdy' })

        // set number, expires in 20 seconds
        setSession('number', 666, 20) +
        +
  • +
  • +
    shuffle: {
        (value, size?): string;
        <T>(value, size?): T;
    }
    +
      +
    • +
        +
      • (value, size?): string
      • +
      • +

        shuffling algorithm, Reordering arrays or strings

        +
        +
        +

        Parameters

        +
          +
        • +
          value: string
          +

          arrays or strings

          +
          +
        • +
        • +
          Optional size: number
          +

          new array or string length

          +
          +
        +

        Returns string

          +
        • result
        • +
        + +
        +

        Example

        const str = 'abcde'
        const arr = [1,2,3]

        shuffle(str)
        // cdbse

        shuffle(arr)
        // [3, 1, 2]

        shuffle(arr, 2)
        // [3, 2] +
        +
      • +
      • <T>(value, size?): T
      • +
      • +
        +

        Type Parameters

        +
          +
        • +

          T extends unknown[] = unknown[]

        +
        +

        Parameters

        +
          +
        • +
          value: T
        • +
        • +
          Optional size: number
        +

        Returns T

  • +
  • +
    spliceUrlParam: (<T>(params, covert?, withQuestionsMark?) => string)
    +
      +
    • +
        +
      • <T>(params, covert?, withQuestionsMark?): string
      • +
      • +

        splice url params

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T extends Record<string, unknown>

        +
        +

        Parameters

        +
          +
        • +
          params: T
          +

          json object

          +
          +
        • +
        • +
          covert: boolean = false
          +

          Convert a null value type (null/undefined/) to an empty string

          +
          +
        • +
        • +
          withQuestionsMark: boolean = true
          +

          Splicing a question mark, default: true

          +
          +
        +

        Returns string

          +
        • result
        • +
        + +
        +

        Example

        spliceUrlParam('\{"key1":"100","key2":"true","key3":"null","key4":"undefined","key4":"测试"\}')
        // ?key1=100&key2=true&key3=null&key4=undefined&key5=%E6%B5%8B%E8%AF%95

        spliceUrlParam('\{"key1":"100","key2":"true","key3":"null","key4":"undefined"\}', true)
        // ?key1=100&key2=true&key3=&key4=

        spliceUrlParam('\{"key1":"100","key2":"true","key3":"null","key4":"undefined"\}', true, false)
        // key1=100&key2=true&key3=&key4= +
        +
  • +
  • +
    stopBubble: ((e) => boolean)
    +
      +
    • +
        +
      • (e): boolean
      • +
      • +

        Block bubbling

        +
        +
        +

        Parameters

        +
          +
        • +
          e: Event
          +

          dom's event object

          +
          +
        +

        Returns boolean

          +
        • false
        • +
        + +
  • +
  • +
    stopDefault: ((e) => boolean)
    +
      +
    • +
        +
      • (e): boolean
      • +
      • +

        Block default events

        +
        +
        +

        Parameters

        +
          +
        • +
          e: Event
          +

          dom's event object

          +
          +
        +

        Returns boolean

          +
        • false
        • +
        + +
  • +
  • +
    svgToBlob: ((input) => Blob)
    +
      +
    • +
        +
      • (input): Blob
      • +
      • +

        svg to blob

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          svg string

          +
          +
        +

        Returns Blob

          +
        • blob
        • +
        + +
  • +
  • +
    toThousands: ((num) => string)
    +
      +
    • +
        +
      • (num): string
      • +
      • +

        Digital thousandths division

        +
        +
        +

        Parameters

        +
          +
        • +
          num: string | number
          +

          input number

          +
          +
        +

        Returns string

          +
        • the split string
        • +
        + +
        +

        Example

        toThousands(10000000222)
        // 10,000,000,222

        toThousands(100.2232323)
        // 100.2232323

        toThousands(null)
        // '' +
        +
  • +
  • +
    trim: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Remove leading and trailing spaces from strings

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          pass in the string

          +
          +
        +

        Returns string

          +
        • the new string
        • +
        + +
        +

        Deprecated

        will be removed in the next major release.

        +
  • +
  • +
    unescape: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        Restore HTML Special Characters

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          string

          +
          +
        +

        Returns string

          +
        • newString
        • +
        + +
        +

        Example

        unescape('&lt;div&gt;test&lt;br /&gt;string&lt;/div&gt;')
        // '<div>test<br />string</div>' +
        +
  • +
  • +
    union: (<T>(...args) => T[])
    +
      +
    • +
        +
      • <T>(...args): T[]
      • +
      • +

        Find the concatenation of multiple arrays

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          Rest ...args: T[][]
          +

          arguments

          +
          +
        +

        Returns T[]

          +
        • new array
        • +
        + +
        +

        Example

        union([1, 2], [2, '33'])
        // [1, 2, '33']

        union([1, 2], [2, '33'], [1, 11, 2, '2'])
        // [ 1, 2, '33', 11, '2' ] +
        +
  • +
  • +
    unique: (<T>(arr) => T[])
    +
      +
    • +
        +
      • <T>(arr): T[]
      • +
      • +

        Array de-duplication

        +
        +
        +

        Type Parameters

        +
          +
        • +

          T = unknown

        +
        +

        Parameters

        +
          +
        • +
          arr: T[]
          +

          array data

          +
          +
        +

        Returns T[]

          +
        • new array
        • +
        + +
        +

        Example

        unique([1, 2, 2, '33']) // [1, 2, '33']
        +
        +
  • +
  • +
    upperFirst: ((string) => string)
    +
      +
    • +
        +
      • (string): string
      • +
      • +

        First letter capitalized

        +
        +
        +

        Parameters

        +
          +
        • +
          string: string
          +

          the string to be converted

          +
          +
        +

        Returns string

          +
        • the converted string
        • +
        + +
        +

        Example

        upperFirst('saqqdy') // Saqqdy
        +
        +
  • +
  • +
    urlToBlob: ((input) => Promise<Blob | null>)
    +
      +
    • +
        +
      • (input): Promise<Blob | null>
      • +
      • +

        url to blob

        +
        +
        +

        Parameters

        +
          +
        • +
          input: string
          +

          url

          +
          +
        +

        Returns Promise<Blob | null>

          +
        • blob
        • +
        + +
  • +
  • +
    uuid: (() => string)
    +
      +
    • +
        +
      • (): string
      • +
      • +

        Browser-side generation of uuid, using v4 method

        +
        +

        Returns string

          +
        • uuid
        • +
        + +
        +

        Example

        uuid() // '4222fcfe-5721-4632-bede-6043885be57d'
        +
        +
  • +
  • +
    version: string
  • +
  • +
    waiting: ((milliseconds, throwOnTimeout?) => Promise<void>)
    +
      +
    • +
        +
      • (milliseconds, throwOnTimeout?): Promise<void>
      • +
      • +

        waiting for a while

        +
        +
        +

        Parameters

        +
          +
        • +
          milliseconds: number
          +

          waiting time (milliseconds)

          +
          +
        • +
        • +
          throwOnTimeout: boolean = false
          +

          throw on timeout

          +
          +
        +

        Returns Promise<void>

        +
  • +
  • +
    windowSize: (() => WindowSizeObj)
    +
      +
    • +
        +
      • (): WindowSizeObj
      • +
      • +

        windowSize to get the window size

        +
        +

        Returns WindowSizeObj

          +
        • the width and height
        • +
        + +
        +

        Example

        windowSize() // { width: 1280, height: 800 }
        +
        +
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/variables/inBrowser.html b/variables/inBrowser.html new file mode 100644 index 00000000..12e67060 --- /dev/null +++ b/variables/inBrowser.html @@ -0,0 +1,68 @@ +inBrowser | index.md - v5.13.0
+
+ +
+
+
+
+ +

Variable inBrowserConst

+
inBrowser: boolean = ...
+

Determine if it is running on the browser side

+
+
+

Returns

boolean

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/variables/inNodeJs.html b/variables/inNodeJs.html new file mode 100644 index 00000000..febee989 --- /dev/null +++ b/variables/inNodeJs.html @@ -0,0 +1,68 @@ +inNodeJs | index.md - v5.13.0
+
+ +
+
+
+
+ +

Variable inNodeJsConst

+
inNodeJs: boolean = ...
+

Determine if it is running on node.js

+
+
+

Returns

boolean

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/variables/pattern.html b/variables/pattern.html new file mode 100644 index 00000000..3caddbea --- /dev/null +++ b/variables/pattern.html @@ -0,0 +1,111 @@ +pattern | index.md - v5.13.0
+
+ +
+
+
+
+ +

Variable patternConst

+
pattern: {
    any: RegExp;
    array: RegExp;
    arrjson: RegExp;
    chinese: RegExp;
    email: RegExp;
    float: RegExp;
    isjson: RegExp;
    json: RegExp;
    mobile: RegExp;
    number: RegExp;
    pass: RegExp;
    postcode: RegExp;
    qq: RegExp;
    string: RegExp;
    tel: RegExp;
    textarea: RegExp;
    url: RegExp;
    username: RegExp;
} = ...
+

pattern returns some common regulars: any, arrjson, chinese, email, float, isjson, json, mobile, number, pass, postcode, qq, string, tel, textarea, url, username

+
+
+

Type declaration

+
    +
  • +
    any: RegExp
  • +
  • +
    array: RegExp
  • +
  • +
    arrjson: RegExp
  • +
  • +
    chinese: RegExp
  • +
  • +
    email: RegExp
  • +
  • +
    float: RegExp
  • +
  • +
    isjson: RegExp
  • +
  • +
    json: RegExp
  • +
  • +
    mobile: RegExp
  • +
  • +
    number: RegExp
  • +
  • +
    pass: RegExp
  • +
  • +
    postcode: RegExp
  • +
  • +
    qq: RegExp
  • +
  • +
    string: RegExp
  • +
  • +
    tel: RegExp
  • +
  • +
    textarea: RegExp
  • +
  • +
    url: RegExp
  • +
  • +
    username: RegExp
+
+

Deprecated

It will be refactored and renamed patterns in the next major release.

+ +

Returns

    +
  • object
  • +
+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/variables/version-1.html b/variables/version-1.html new file mode 100644 index 00000000..0507d9e4 --- /dev/null +++ b/variables/version-1.html @@ -0,0 +1,63 @@ +version | index.md - v5.13.0
+
+ +
+
+
+
+ +

Variable versionConst

+
version: string = ...
+
+
+

Generated using TypeDoc

+
\ No newline at end of file