diff --git a/.github/workflows/doc.yaml b/.github/workflows/doc.yaml index 642457de..cbd12869 100644 --- a/.github/workflows/doc.yaml +++ b/.github/workflows/doc.yaml @@ -4,14 +4,21 @@ on: push: branches: - main + paths-ignore: + - 'docs/**' + - 'README.md' + - 'README_ZH.md' + - 'CHANGELOG.md' + - 'LICENSE' + - '.github/**' - pull_request: - branches: - - main +permissions: + contents: write jobs: build: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Checkout code @@ -40,8 +47,8 @@ jobs: branch: docs folder: docs token: ${{ secrets.GITHUB_TOKEN }} - repository-name: cc-heart-dev/utils target-folder: ./ single-commit: true dotfiles: true clean: true + commit-message: 'docs: update documentation [skip ci]' diff --git a/.gitignore b/.gitignore index eb7e91e0..2026e47d 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ publish.sh package-lock.json yarn.lock -dist/* \ No newline at end of file +dist/* +docs \ No newline at end of file diff --git a/docs/.nojekyll b/docs/.nojekyll deleted file mode 100644 index e2ac6616..00000000 --- a/docs/.nojekyll +++ /dev/null @@ -1 +0,0 @@ -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/docs/assets/highlight.css b/docs/assets/highlight.css deleted file mode 100644 index 36c9614f..00000000 --- a/docs/assets/highlight.css +++ /dev/null @@ -1,99 +0,0 @@ -:root { - --light-hl-0: #795E26; - --dark-hl-0: #DCDCAA; - --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: #008000; - --dark-hl-5: #6A9955; - --light-hl-6: #0000FF; - --dark-hl-6: #569CD6; - --light-hl-7: #267F99; - --dark-hl-7: #4EC9B0; - --light-hl-8: #000000FF; - --dark-hl-8: #D4D4D4; - --light-hl-9: #0070C1; - --dark-hl-9: #4FC1FF; - --light-hl-10: #098658; - --dark-hl-10: #B5CEA8; - --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); - --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); - --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); - --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); - --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); } -pre, code { background: var(--code-background); } diff --git a/docs/assets/icons.js b/docs/assets/icons.js deleted file mode 100644 index b79c9e89..00000000 --- a/docs/assets/icons.js +++ /dev/null @@ -1,15 +0,0 @@ -(function(svg) { - svg.innerHTML = ``; - svg.style.display = 'none'; - if (location.protocol === 'file:') { - if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); - else updateUseElements() - function updateUseElements() { - document.querySelectorAll('use').forEach(el => { - if (el.getAttribute('href').includes('#icon-')) { - el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); - } - }); - } - } -})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file diff --git a/docs/assets/icons.svg b/docs/assets/icons.svg deleted file mode 100644 index 7dead611..00000000 --- a/docs/assets/icons.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/main.js b/docs/assets/main.js deleted file mode 100644 index d6f13886..00000000 --- a/docs/assets/main.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=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=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_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),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,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.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}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()}showPage(){document.body.style.display&&(console.log("Show page"),document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){console.log("Scorlling");let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}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&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}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(()=>{Ve(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(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 Ve(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 y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}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 Ne(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 He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!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&&(Be=!0,F="touchstart",fe="touchmove",H="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(fe,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(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),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 n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.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,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(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.showPage(),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.pathname===r.pathname&&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/docs/assets/navigation.js b/docs/assets/navigation.js deleted file mode 100644 index bc428823..00000000 --- a/docs/assets/navigation.js +++ /dev/null @@ -1 +0,0 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE42X0XKbMBBF/4XntG7SJm3zljhknGkdO4a00+l0PDJebDVCItLKidvpv3eAOMZmWfyqe+9BWhYWfv4NEJ4xOA++msUCbHAU5AKXwXmQKOEcuF61/naJmQqOggep58H58cmnf0evyQk8enDYjL4IXLYvkiX0jU7lYpuXGsGmIgHXq+m7mJPTs+YWGNCO4wDUQOi5Ag5VOThUaK2xN0UwgRxNrbi4zsH19vU91rvPH49PT5pbY4hNRzfT5UY7YKENSxd1EMfjaRRfxPfRlrYSVoqZAterybuk93XI8GYYTuMf45BkbFUGMQnv7sMong7DeDC6ojC7DgY1RROhlbrWXqnXCUqjXe9V3AWcfagBxJOQGBsq/iIx4ZlwoEUGVHqjMfFE5BKFkn9IwFblECbLjaPzlcSG9QosjoUVmZsYj2BjM4FF+JzTwFY7c5E5pFLDFcyM1wlca4q87+nEjTpQo8MwkdQLBWNrMulY3p6xExwvrUFULHPrYXDwDInH4l2beGtBJ2sK2HR1I+88eLJv6jqDSY3NBF4JJCFb9SDE5frCWkGerWE6EBjLDCIUGdnKpPEgcOG+XLe/c2hnJ7ocOjHzLiNsDHQB2C87AYtd3ESjdnCLlYEvhRs9kY1dKUxU6pV5gO8Sl+VJymEt9eJaJGgsefv5BHcpd2mMIpGlwkbDNIUE5QpufTarf3/VKXsmFngtlKPPV0l8mCx2sc7GhmYmFfl0bjQ2fitbqncr+eLdetWW9Kor2l7uA6o8mv2GBOl4pbHxsZWZLG4oTXiVOyDlkGhDlGIXIAeL6y/Q0jA1AwuKsKWSEfJljNbZrO3RqTQ2fq/nkNLpUmLD34SS89ZhUNe7MW3DqSYzkMyrKFeSbKeNxsS1MeToKdaZmCnbNDZ3HiwzZggbA82FddDSTxuNi8ucrGOxzsQet3uLTfujSdgYqBV6bjKKUylM1EH1C7YSqpr6xpMbonw8Vh6IbfjeHHNgBUC2UCkwQa/77J9FXWcxc7Cq+FI1A09/R+1ZGrBf/wEmPRT7yhAAAA==" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js deleted file mode 100644 index 4f8f4061..00000000 --- a/docs/assets/search.js +++ /dev/null @@ -1 +0,0 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE72dXXPbttLHv4ty6+YIK+otd4qtJHpqWz6ykqbNdDS0BNtMKVIlKTtup9/9GYCUvVjtUqSp06u04i4WwB+vP4D0360kfkxb77793fojiFatdz3vpBX5a91617rT2ek2SXSUzYO1nlxPr7MkiO5aJ61tErbetW630TIL4ij9j2D59j5bh62T1jL001SnrXet1j8nTKDbOFn72ZmfaSbtl4f1k3v/ZPJznfnrTWnKyK5+EOP6/kmsG97wNWUZJYn/dKAc1qZq4it9G0R6Gi31h4hJFz8uT7Lb7fSeU10ssqcNp+Reem+cX579UIyT1sY3zYpk9q2T85Kyze+TOMvCsvK9mNSrtusgugv1VRKvg7QsfWJ3vIrkEn7DP6pUtdSJL2ZJjZzpm3hb3pheTKpWduJHq3jNJJg/KE0Gui+VOdN/bnWaffKjVfhSp0GU6eTWX+r0P45BabKqDS/5y+51VC25N4Upr4Gbv4pN4nC8QvqfetUCv7V5FIq69LPlfcXYO9t/rbA24K60ULG0eS6F4t4GkR+GTxXjv1j/a0UuQu4K7VUs9C6nQrH9mzjJKuZgZ/uvFdkGPDScuX55HtGg0B72VRfowDAxcZd6k8XJc15MlOdsIIPXj+GlKb6pVi6c07JipZs4SnVZufYsmheMT/JwyfYzKxdtnCRxIpeLPm5aKDa9QyXayyM/K536y3t9Gke3wR3XA9DjGjNSFlZJ601ux2cf56t0PpXz7hhUz/3GT/x1Wi3BN8/GpR1mrxxOwJWf+RXDFaYNgiV7XbhqUXnPRlnZ63PV88K6NsiMJt2lak44vwbZyIK1jrdls5/TgZ6tG8mQJWVrDLfec9um4c506NeKuXNoEHhpRpSKMXe2DcLF0Vn8GIWxv7pK4rtEp1VbFOtYLyM11zfl0SsvaYtkmPyLVXS9XS7r1MyL/b9YIUXQXT0MKtfDLrdi8e0cXTkfO+t/seg2ZOXl/XPB85yKxR4dWOC7eRhVWeIft9ijGov850KPyDKfFPrDwc2cm4cP1bZzxy34B3dDd3DP/lz4D/tbOhjQpdpzNoo0d3koXZt11cu6exlHaZZsl3jJzaX1xjUsLcJrFkpszEProyxd/RSkP22S4CHnzNVzUrJOErJyYHn06rzIyyQ2I+Wro1fnwk7PF/7mQCN4sTpCzCC6DYO7++xgWNfwCJFv/FR/TsLyqC9Gr4sIbe+lv25TXQIl2PiSS9W+VzpsVY/4lv31J1V5EcMnwP9aWn0y/JBLw/n8jytwH5fwP79U4cFlgJCC8HNJJYqYRSoO4/A/rb49MMP89lxxVaqtSoJShd3p8gn2TW5QtUKctFc61NmB+ni2eVWETXxgffCmsHhd6ttDiR/eRYtpO4cSfOpVziKk9Jeh9pNTZ/PKT3fY7lWRkgrLtDcvRq+KcbMNwpXN5c/66cCURkyPMLHpH3q5PdSQX4yOF/GXILufOaClLDS2PkIeEu2vdiOvSXoPSAhCi15HyJMV93lKDQ40Osb6WHl4H6+qtMPC7FhRD6/nXqyOEPN7HEQHQ74YHSFikJ7G642ZEQ7GpaZHiB6ZCylh8Jf+pP2VPrRLYayP0eu20f6S8VCfk3yOlZ/aO0nR6Tg5ooubw9nhPI6Ql42fvCxPD83mrulRRuh1/FB9s8CZvy4X6J5LFMfcHTXzc9WrMmmoNZeG/b1qIutteL0J0Yzwks7uUdWkttFKJ6G5YhV/2rI38IhF1YSX/ibI7JDBpPnysHo+T8sSxI+rJmkbKV5ivSS3e1Q1qT+3OikuDc7j6c13veS0YayqBoit9Tz+70sSTADGqrJccfSgk+zKHtbO4m2mk3k803fjH1ybKLGuGtDQGPuf+6nvHlVNKkjFKt89qp7U9dP6Jg7ZpPJH1ZNi79iZn2vkJkv4rGQHrkzgRN7HQoHMg+rJfI5W+pZNxz6pntDlNuTzYx5UT+YqCdZBFjxwTQg9raGXH6bcaFA8qVPA9Y3mhcsfVU9qfHurl6YYJWkSmzo1aG+MCvVnn1VN7N5Pp49ce88fVM/TFz8MVtItavy4VjE3Osme+LHeeV4zn8J1ePS0eoIX8U0Q8qnlj6omtchicYZ4flajMQdCZw0q99Viz34aR0v7BsKS02HfqGby/93qLVd/+HHltUHAXuo2Px/jcvhzOm/sfx2gn9bG5kiYutebmO3FxZNj5Bgn9Wb3PwfyvTPbZZBfEOvMHrk++GH+hge+24PWx4zZT+oYJStJ+Q337FCpWR+2lFJ9TKrVx57ZkWqDT/cN++RwXez7sCVk68J/9INsHjPZLJ6Ulrjzcir+aT6/WlzPR/PP18+JPfhJ4N+EOv0Pevr6KpSTO3QNFWdOON88nV7OJ5efx9WjvUUuB8PuZBSiX/8ymZ9+mlx+XFzNpvPp6fS8Si3uMsJ7N83T1Wx6Or6+nlx+rJEVx6lpDsaj2fmvnyaX8zqV4Tg1zcH05xqRrXHTiKez8Wg+PqvTDJ89msYenZ6Or+oFRy5No19OLxejz/NP09lkPppPvowXk8sP09nFaD6ZXtbI0qF0mudzYXr++HJeK1PIqWkOZuPr8fwVmaB+jUeI0Ww+GZ2/Iif7no3b7sX7ycfP00qzz3PjRT5N419Mv4zPFlfj2cXocnw5P/+1Rj4436b5+TD9fFmnI+/sG89k4/FiOv80ntWZv5BP8945X1xMzyYfJrXGMeLWNBfz8cXVdDaa/bqYjc8ms/Fpnc7BOjfuq7vW9Zocsc5Nc/R+dLaYjf/7eXxdJyuuV9M8fL4sZorfarUW4tZ8HP31Iq/c/36ezGrlhHFtPnLM3k/OzsZ15lzsc4weXHf0wj6NR/Lx/NP0bGGSHJ2fT3+ppQfrfIwayRdao/fndXYoe45H2BN8/dWursaX88mpXVK9qtkeSKf5CsmOEIv55GI8/VxvjUQ9G6/op5cfzie1xlvk0jT6x+llnRZTmDeNej6+/Dj/9JqWse/ZvM2OT6eXZxPbxj6MJuc1WyrnfYQR/3w6OlvMp9PF+Wj2sY5EnG/jeXA2ydOb1trtE7fms/H156ur6Ww+PltcjM8mo8X816s6VSMmcKTxZHy2mI0uP47t+H49mk+uP0xqDsmHU2pMTb5ejU/no9c1d9a5aY4mi9HFYrSYj0dX0zrDIPVrPLNPrvPVa70p3fFq3sYLRGbUXpjZb15nqyi4N17zWakXZ+Or8eXZ+PK0TpY436OO2a9aX/D+jfd10+niYnT5624LUoc2cL6Ne9blfDy7HJ0vrsezL+PZYjybTevsvCX/Y6xYJxdX52OzOam9EXc9j7HP/Diaj38Z1WnVrldzKjL7MjkdLz5fjr6MJuc15wzeu/HKMC/dK9bI+55N82Itv4xn16a/2ilxN4/XyFZpIq/IITrd2u0K8u0dkyfX4BhnXEyKB78f4+ZS0n3MaS2He5s7VAl5aFSfsqinJHThcYzYbAsvC13SsGtFPhufj+dcdy8J/uxzjJKP5qefapa9cDlC9NH5eb3YucMRIk+vzOzPzdAl0V+cjpCDT+NRxbHieQjLPY4Q+3o8mtWV/dnndfHReHkxuRjbvRdX/S8PjzFOktQOjZEoZ9Ia7ys3UvBh3ubGh0IdnP0uuE4ihCysm8esFbJ5xNPrCo3hmYBdy32wRsQvdSJ+aR7xax0hvx5Dx/+7Zg/HhZCFddOYoy+j69PZ5KpGR3F8Gsa/YiGVEPiqBE1VL/FVjYi5ceOI41ohx0eI+XHyoXrI3LhhxPcXV9Uj5sYNI/4yfl8jZGHdMOb1lxpS5sYNI05Op9Uj5sYNI15cdapHzI2bKjmqMbrnxg0jTj/W0DE3blqr3qhGrVrjhhE/nI9Oq4csrBu3Ha9O25G//VE54ujLpHrE3LhpGac1Wmtu3LR/XNTpHxdHiPjhvEbE3Lj5aF5jGVtYN1Xy5zpK/nyEUv42qTFl5cYNI85GHEUWIubGDSP2f6se0No2jDevU8L5MUr4sUYJPx6hhO9/gxprq9/kj1JVX5ef1Vg/5sYNI55Na0xWuXHjiDU2PWclx5Z1yvi1ViG/HqWUtWLOjxDzK/vOg7R3LnnFoUbEGlrmxs3LWKNeC+vmMWvMkYV105GgDhq4OgoTqNMvy64T1CljDS0L6+alrBPzKP3y6qpOmy2sG8Ycf+UOTISQuXHTEY89p5AGvJIziurryOsae5DcuOmKYFSjj+TGTdfn0w81lgSF9RFi1lj57MybrifnNQqaGzelEXUiTo8RcVxnjB0fY4w1vPqcO0Mr4dvn8gla9b45qrHjyo0b06w6s3Rh3bTN1lhwlVxXqsF5akiZGzeN2Pk8qBEyt25aq9PZjH8bTqraZ4emnPmXGiNCbtx0RLj6/L7GkJBbN2V3V9xLuRK7u5Jfyq2+NriowX1z46b1WucccXyMc8SL6xplzI2b1uovdWr1l2NE/Fqjf+TGTefo9/9XY462xk3HgHmNlpMbN90fcNcqpd2BfJmy+ppg9KXGoUhh3fQmQY17BEeIdlVj9ZEbN74pUeeixBH4co1ZY3aEOeNjjePQj0c4Db36VEPB3Ljx3D/5UGPNsTNvGPXnGiF/PkK8WZ09z+wYe57ReQ1snxs3Pgmpc9zTf/V5D/rTOOfx3Z3e/9xr/nPpJb2qfxgHJVXp7+IUORKqKNQPev97zjjGzuIldfmDtHuxnK/ipjo7PxgOGVUsjxMjjO/KS2OfvyZl7fxxLy5tXfoHvcpTf/STqDTxwuA1aQfRbVyadmHwmrRX+mZbXuM7i9ekniX+cv/rzTj1ncVrUk8zP9n/UL3TGAuLV6VO/hYem/6Bv3+3FwF9b+zWfOU8s5/PnsvfUGSsyq8Ke6jZPMR/2D8VYN3tXz8OorsPvhlu2I9Tljq8/oZyrQhvDtg8p83X+AHvA3Xyz+8nrSBa6R+td3+3HnSSBnHUeteCt523w9ZJ6zbQ4SptvfuWF/TEfHRwbeL+Xjz7opf2E+jvvuUm/2m3Tr61T7rwtq86v/9+8m3nYR/YH6yZap18U5yZcsygdfINODNwzDqtk28dzqzjmHmtk28eZ+Y5Zt3WybcuZ9Z1zHqtk2+9E/DedgbKMes5Zv3Wybc+l1rfMRu0Tr4NOLOBYzaUgg7d6jW1PWTrl+hghWAFU64UylS54jVz1VCm1hUrm3IFUZ5UHOVKokzVK1Zi5aqiRFmUq4sy9a/Y5qBcadRATNIVRxkRFNt0lKsPtKUkwdUHrD49tguQrgJikq48YOVhmyS48oAoD7jygJWHbb7gygOiPODKA1YetgmDKw8YEYBtwuDqA0YEYJswuPp0jArANuGOK1DHqAD84OMK1LGDmXfi9d/22l3XkgxnRgbospauQh2jA/RYS1eijtEBWNU7rkQdIwSwYnZcjTpGCGA16rgadYwQHVajjqtRxwjRYTXquBp5Yh/yXIk8o0OHFdNzJfLEPuS5Cnl2xmFV98icI/YhzxXIMyp0+OnJFcgT+5Dn6uMZETrseOS5+njiEOe58nhWHrbBea48XSNCp89Zdl19ukrsGF1Xny6IHaPrCtTtiB2j6wrUNTJ02ObeJesCqxDb3LuuQl2jg8c2964rUdfo4LHNvetK1BUl6roSdY0OHtvcu65EPbEH9VyFekYGj23uPVehntiDeq5APaOCx4recwXq2WUbK3rPFahnVPBY0Xtk7WYFYhtnzxWoZwUasJauQD0jg8c2j56rUE/uRD1Xob7Rocs2pL4rUd/o0GUbUt+VqG+E6LLto+9q1DdCdFnZ+65GfSNElx28+q5Gfbu6ZsekvqtR3wjRZZc+fbLENkJ0+UW2q1HfCNFlO3vf1ahvhOiyavZdjQa2F7EaDVyNBkaIHqvRwNVoYLsRq9HA1WhghOixGg1cjQZ2JmI1GrgaDYwQPVajgavRwE5FrEYDV6OBEaLHajQgOyE70PF7IVejgd0NsRoNXI2GRog+q9HQ1WhohOizGg1djYZGiD6r0dDVaGiE6LMaDV2NhkaIPqvR0NVoaITosxoNXY2GRog+q9HQ1Who96qsRkNXo6ERos9qNCQbViNEn9VoSPesRokBvxdtk21r22gx4HejbbJxbRs1Bvx+tE22rm2jx4DfaLbJ5rVtFBnwO8g22b+2jSYDfmvYJjvYtlFlwAqWP8O2RpcBK1n+DNtaxsCKlj/DtkabgUAQiG45bBAYAsUNRpshrxsFDhYrDHndKHKwYGHI60ahg2ULQ143yh0sXRjyulHyYAHDkNeNwgeLGIa8bhQ/lPAHCiAsZhjyEhMEoWQGoQiEUBY1DIfcgkUBxUTiClAREKEsbpCSJaLJLEIRGKFyGtHmGyThEcpiB9UWuBZRzZIHIRNENIseVJtvvYRLKEsfVJtvvgRNKAsgVJtvv4ROqE7O9/gGTACFshhCtfkW3KGQz2KkNt+ECaZQFkaoNt8wCalQnVw/fvAhsEJZJKEEgkl4hbJUQgkQkyALZcGEkjgmUdCyCSUQSgIulOUTSmCPBF4oiyiUQBUJv1BeDml5BQnDUJZUKJ4EKo+SWqsgz/gUQRnKAgvF0ztFaIay0ELxAE8RoqEst1A8w1MEaijLLhSP8RQBG8riC8WTPEXYhrIEQwGvIMEbykIMBbyChHAoyzEU8AoSyKG6OWnnFSScQ1maoXiwp7qUt1sFebanCO1QlmkoHu8pAjyUxRqKJ3yKMA9l0Ybi2Z0i3ENZuqF4KqcI+lCWcCietymCP5SFHIonaYoQEGVBh+rwChIKoizrUB1eQQJClMUdimdVirAQ1cuPTHgFe/TQxCrIEytFiIjq5ScnvIIEiiiLPhSPoxThIsrSD8WDJkXQiLIARHnCCQ5R0DIQ5fEKEkCiLAZRHq8gYSTKkhDl8QoSTKIsDFEeryAhJcryEMUTJUVgibJIRPGoSPXp0Ze8jiHARFkswnM6RZCJsmCE52+KQBNl0QhP4BTBJsrCEZ4AKgJOlMUjPK9TBJ0oC0gUD80UoSfKMhLFczNFAIqymETx6EwRhqIGuXR8QyYYRVlYoniApghJUYOSk0ui3SA/u+TbPKEpyjITxRM3RYCKsthE8dBNEaaiLDlRPHdTBKsoC08Uj94UISvK8hPF0zdF4IqyCEXxAE4RvqIsRVE8g1MEsSgLUhSP4RShLMqyFMWTOEVAi7I4RfEwThHWApanKJ7HAYEt0M4PofnzXUJbwBIVxVM5ILgF2vlZNH94S3gLWKaieDYHBLiAhSqKx3NAiAtYqqJ4QgcEuYDFKoqHdECYC1iuonhOBwS6gAUrikd1QKgLWLKieFoHBLtAfs2DB3ZAuAvkNz14ZgcEvEB+2YOndkDIC1i6onhsBwS9QH7ng+d2QNgLWL6ieHAHBL5AfvWDJ3dA6AtYxKJ4dAeEv0B+A4Rnd0DvgFjKonh4B/QeSH4RhKd3sHcVxCrI4zug10Hy+yA8vwN6I8SyFsUDPKC3QnIQwxM8oBdDchDDIzygl0OK2yG8gvR+SI5ieIgH9IpIjmJ4igcExUCOYniMBwTFQI5ieDgHBMVAjmKGvIIExUB+X4QHXkBQDORXRnjgBQTFQH5rhKdYQFAM5BdHeIoFBMVAfneEp1hAUAx08is+vIIExYClLcBTLCAoBixtAZ5iAUExYGkL8BQLCIoBS1uAp1hAUAxY2gI8xQKCYsDSFuApFhAUA5a2AE+xgKAYsLQFeIoFBMWApS3AUywgKAYsbQGeYgFBMeDl97R4BQmKAUtbQLjPRlAM5FdNpJtqRMH8tolwB42gGMgvnAjX0AiKAUtbQLiJRlAMWNoCPMUCgmLA0hbgKRYQFAOWtgBPsYCgGLC0BXiKBQTFgKUtwFMsICgGevllO15BgmLA0hbgKRYQFAOWtgBPsYCgGLC0BXiKBQTFgKUtwFMsICgGLG0BnmIBQTFgaQvwFAsIigFLW4CnWEBQDFjaAjzFAoJiwNIW4CkWEBQDlrYAT7GAoBjo5zcmeQUJigFLW4CnWEBQDFjaAjzFAoJiwNIW4CkWEBQDlrYAT7GAoBiwtAV4igUExYDlLfw1OSAsBixvAZ54AYExYIEL8MQLCI0BS1yAJ15AcAwM8vt6vNqEx8Agv/XKq02ADAxyAXm1CZABy1yAJ15AgAxY5gI86gECZMAyF+BRDxAgA5a5AI96gAAZsNQFeNQDBMmApS7Aox4gSAaG8o3yAsjYNz0edJLp1SR/4+Pbt1b/r9bJ361F8QqI2bnY9MzbIGa/8u7vf/55eenD/J9Juf9XsMFupmO8uPW7gtvuRZYXRxStZ8xOWsP8H+UV/xY/q0H+L7SLf6H4t7CDws4rnnvFc6947u2eF+l0i397hX2vsFe7QGoXSe1CqV0sc9Sb/0d/9x+DXfaGbansWZwWbzy9FH/YeSm/uaXAu/o3sXmlC6nURW6SRv5yqTeZXjmO7QHy7HiSaxi64RTyGojZDP9y24TCbUKMtb4J7rbxNnUiKlwxHbGImz+ciIBbYVdqhf5D4MTqD3CTV5LXox9kWezWZhvlEqR4N/5qcedn+tF/crw91PjNoYLsneg/tzp1mwDg2HnrZr1Tba2Qax+1nqGc6VSbV9mQn4ciduWATjbNxuqlcj2pc9ysneHEkMYXr7Ykyc02CFc38cqp1i4qnTgQWc+lv7zXf2jXG5WxL+bWeBeaBFHgFLjroQSkNm8TILXbRa2hL9buX+CO1kNUTyA1oaWjSAd3kp5UQ7ZysF8H1UxnUOa1jKPbwBnmFM5mv8x37TsNoYPaQVeqzaW/CTI/DP5yZxYUcyANIEs/W947OcXjjlg3ofaTvQryUMCeWEHxehOnjt8QD8niaG4qNQyWZAwY4tyK2cVv3KO6RT2zu5tV+6I6cZQF0Va74x/g8U8us110bPzEX6dJvM10ksWJvtM/HK37qOcMRa037rqj08GNWeo2y0T7ezNhH88w0py2TN1wHg4n1lXqTmZdLNNQ7KXpgzsG4gF+KGVw5We+m0XUTaWBs3i/HXnhcc8snSW/2yDSK30Tb6Olvo2cZoxyKw2cuX+854uGbKkR565pEN2FepPE6yAlaaBeJDXEPI3sPomzLCTuqDVIsq50qDO3y6OM93aLw4FY6+6qytDMlzoXh9TV2lUKCwziNLyKl+4AjNdiIOobL3+4bjgYyMHcYWmIZxhxWbSKMxIMdy5xmlg9kvrAG5auNHyufty6XnhZ0pPaq/aT8Ok+iDK3P2PhlNjJ9NqVG3DxulLxtFuXoHBdelJd6s32xg2G9RZnzuLrH3jNjutFbMnWL4gynZgthpuEwks3Mb8kAXeURYp2il7VlcY//UO7nQrXckes5R96uXX7Mt7j9MWC537LOFpuk0RHS2fxOMTtQlw9FGn8udXubDrE2wEl9bXC+zHI7hOdJe7iFbUVcT+hf2z0MvPNxykWt34QkmkRrwrM9TM+kdxxsdIbHa1oNSi88VPiLHkbRH4YEk+8I5L8Qt8d2/p4BGhLI8Bt6E6vA9xDlNRDbuPkJlittDNXKDwGm5uhou/az1a+285w3Rx0vHnyk8TdNqIqKsn0s38WrHWa+e7+Co8pB9MwKdw87bMLvNAoTcR2do5+AN4swUCaAW/jbeQ2Uod/eFI1FnvuhSlAvHWnKA8vusV92p12vDyU3bxrGAQkZftOZ/kgkZkMBClTAWjRJU1Bd4EzcZkLO6ixi14Op4AO7iE9qb3exZHbUvGWT4lLjTsCEPH4D5I2934aP7rrN6xIW6rUe+27TaGLu+JAGnPvs7XrhYMNxUxma8LB8OAokr77LNss0szPCNNq464vLqasd/EdnkUUZ4t0u9nECd2+4N2mEjlHsPDXC3+RaX9D1mh4Z616UgcIli7w6uNBsy16ma3q3X1GN/Moy+JmNf+uF16RYHYgske7loj8cJHq5EEni72VjfKcuUXSLv9YkpldbQr3xceSbncfkMKDF16+i4QhSG/i2GlFA9yrxB4cpAYVmA0H5URIOHHsMbujW73Mggcdbdc32qkKjPjN64RSErd+mDpFHuAqlNVPyc4KZXgoZ3gd3wShuyDCdEFJE1WQRoFTQXgbocSJPUijrbsfG+Bw7ZJw+xWKp6O22LLT+Oa7dgkOXroMZSU2SbAOjJhOVDzytcWOkRa7ZccVj2NtaaFlXTc6yZ4IJB3iFixu9oM0zZxq6qOePJT7S/q0vnF7TB9ldyjndhuttDNZ4iWeEilykD74YbDaW2gNHKIh59d601Ue3m8r8Uzhu/9A4A0eX8VR2bilyyTYuEN6DzcIsTV9j4OIDikYfkj1+32jXabbw8OIqOf3DfFyjq6k4eB7Grsr7h7unOKhhXELnXkSMNAF8ZjkD3fT3XF4tTQUhDq6y+7t4UyQ0G0U1l/c7BffKcWzHV4Ri8O7/SIo9sLru4HUIcPiO6/YEdeOeOqw7mwHbqU6e3ypda89p3ErfO4E4gqPLBoA7wnNpTLBS2f38cqul/wwjB+JHIBbnZzhYK3tCTXBt9h5IOYgSFdBopd0oYbbkhKPW9Z/kN0pFkaEAevY9cIjLIgz5jp+0KvFRidrP9JRRrbgzh5cPLBbbzpuZLylFKfA9cZzvfBmRpxI1hvSpbFXV/RKCSfEra8rtr7UORs2l0gRTpIGufU2TDehexCIN2pio4nihTlYMT85GuAJtiOpH8XRwt9m93ESGJ7zoBdm8Wx23AEZPdu4DXYkdaI4droeHqrFnVVkApqzN7Mz0y7Iw+cefanubJe1VxXMl67dXotnmK7UnE0C+4gA01YlNhLjG5hltvmV7rBwtxeJoElhHa+C24C441Zq3qXm3eOb724rxSNrTwqaLySz+M+tThgy00eDh3hwFN+5EzM+fgNxTRj/4TYsrFBHUiiO9m6w4IM0kWrH0Sp+jMLYX22S+C7R7rEanmLFnhlHeztBfGQo6xIxeLKDWoQ4E8XR8xeSkScaHkVeFW/sF4PduQeve8RzuThzTzcUXkZ6kld+IOs2P1SlUp/Z+ElKr01gLiDiFOuY6HQTR+52BC9cxR3+xk+ywA/58RLXkniStqGH/RgC9p5vckmteOM/maa4yOJ4EfrJHWFlzsUBqTlu/Cfz//yaEde+8sRSrFwgiDdj5mUdwWs32y8SnS9T3ArEE4TYHzf35PAdT8QiUtkE7pW/IR4YRcq/ici+AY/n4iZwE7u3pPDCOF97GWIrqkPO3vD1LhCvCGzIOSbgWxEgzrabTUrc8JJPnPQ3ZNM3xEs+cQTebGge8Qgh3gPcJOaoaxWIh0W4xYprKicVtuXj26NKvDuzSWIzrpLJTuETPyWPWkn848kul3SUBUtfzgw+GlbiuePGPVDA56a95yurYmZckog5O4hnbmiyz2IGJaE6FO+YJH60il0U7rAc0Y0c8eK1tJL0StwjaTx7gihyov3Vbo4wGJab+THz70vVlWizzxEOqfFoIs6qzK1LfJDiFTeVxfOUwn+R703daR3Xurjv3iXAHWDhhaISD/iLFPZv5Dn3Aw4UQK8WiR/d6fw0ws+C9DbYW6vjmlE9sf3lKVqs7vo7ZyPl3tLFA+fmeuUk3AUQahed4tq3iAsSneqMX4/g0oiXEHbNXCoPnl3lVr6Xhlsg1Ok6xZGluJPau1CAG5k4I1mvlQ5deoqvJso1QNat+IYxyD17G5XeH8GsUFzNJdvoQFvA9+/EkdwmUy5BDzUG8UZNam6UujdR8eG4+QiI5KgXsTmtchsg7o2eVAfmrCxY6sU28h/8INzr03hSU6Icqc6r8MEP8+sGZKjCKxSVd0zzCkVJcgwWxXOHuH5LQ61dgoGqQa7B/A/m4D6DF3AlfuR+F16JiSMgszkEPJ+ByIrSB7Jhx51FPP9JH8nFN+wlrm7Sx+CWIHEMJkQakj4G2fI+iO4WmyTO4mUckiNwvEsS552MLjfwSAhSV8z0ehMnfvIkbHHwhCnuic3y0J1n8UguOe03eryIFLcAZie59qOn3fsdbl1hNq/ERUYW2ysm7tyOW6I42hd/hgq3Q7woEImfm01wpl3xLlRGCQVuhiKFyUgXcy4pSz4/yKtSeCgUj+m3UUFS/6K7ATyVi9BnG/EvIeA+Kt4XMeeWSWhuJsf3W/eiFn4PRrwftY2KnZEZwBdme5ORW3V4tSlekt9GzzdNFmu9Cvy9l/UUXsIrkU5ukyCHJDHZqWHop8RLt9tUl90vxd1CzoIBTWWLRXxFUTye277gKikZNDyI0Cf/M3h4NsNjqbhCefTTtdtn8CQo8qFHn5wJ4clFvO3xqG/cbSG+DQHiXdZHfUNe3MJDj3iJ4nFNTrtwxxaH2cf41h1E8MuMIGJV4wauH86kuDr6QeYufLsXxOHnR+iqpvDrPSBeFv8RpuQyvLP6l/rKj5DQIDwYi/PrD3KtDa9QlfjqDXnlV+HbQMBzvN9PLP0zY1vr3bff//nn/wH74Eo7avEAAA=="; \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css deleted file mode 100644 index 778b9492..00000000 --- a/docs/assets/style.css +++ /dev/null @@ -1,1412 +0,0 @@ -: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-keyword: #056bd6; - --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: #a55c0e; - --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-keyword: #3399ff; - --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: #e07d13; - --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-keyword: var(--light-color-ts-keyword); - --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-keyword: var(--dark-color-ts-keyword); - --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-keyword: var(--light-color-ts-keyword); - --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-keyword: var(--dark-color-ts-keyword); - --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:not(.link), -h2 > a:not(.link), -h3 > a:not(.link), -h4 > a:not(.link), -h5 > a:not(.link), -h6 > a:not(.link) { - 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 */ -footer { - border-top: 1px solid var(--color-accent); - padding-top: 1rem; - padding-bottom: 1rem; - max-height: 3.5rem; -} -.tsd-generator { - margin: 0 1em; -} - -.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: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", - Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; - 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-full-hierarchy:not(:last-child) { - margin-bottom: 1em; - padding-bottom: 1em; - border-bottom: 1px solid var(--color-accent); -} -.tsd-full-hierarchy, -.tsd-full-hierarchy ul { - list-style: none; - margin: 0; - padding: 0; -} -.tsd-full-hierarchy ul { - padding-left: 1.5rem; -} -.tsd-full-hierarchy a { - padding: 0.25rem 0 !important; - font-size: 1rem; - display: inline-flex; - align-items: center; - color: var(--color-text); -} - -.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.25rem); - display: flex; - align-items: center; -} -.tsd-navigation a, -.tsd-navigation summary > span, -.tsd-page-navigation a { - display: flex; - width: calc(100% - 0.25rem); - 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-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-keyword { - color: var(--color-ts-keyword); - font-weight: normal; -} - -.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/docs/classes/Logger.html b/docs/classes/Logger.html deleted file mode 100644 index 2ccf5b9b..00000000 --- a/docs/classes/Logger.html +++ /dev/null @@ -1,41 +0,0 @@ -Logger | @cc-heart/utils

Logger class for formatted and leveled log output.

-

Constructors

Properties

Methods

Constructors

  • Initializes the logger with an optional log level (default: TRACE).

    -

    Parameters

    • level: number = LOG_LEVELS.TRACE

      The minimum log level to output.

      -

    Returns Logger

Properties

level: number

Methods

  • Logs a debug message (for developers).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.debug('User data:', user)
    -
    -
  • Logs an error message (should be fixed immediately).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.error('API request failed', err)
    -
    -
  • Logs an informational message (general purpose info).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.info('Server started on port 3000')
    -
    -
  • Core log function that handles formatted output.

    -

    Parameters

    • level: number

      The severity level of the message.

      -
    • Rest ...message: string[]

      The message(s) to log.

      -

    Returns void

  • Updates the logger's log level.

    -

    Parameters

    • level: number

      New log level threshold.

      -

    Returns void

  • Logs a start/init message (task beginning).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.start('Uploading files...')
    -
    -
  • Logs a success message (completed task).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.success('Upload completed')
    -
    -
  • Logs a trace message (detailed execution info).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.trace('Entering function handleClick()')
    -
    -
  • Logs a warning message (recoverable issues or alerts).

    -

    Parameters

    • Rest ...message: string[]

    Returns void

    Example

    logger.warn('Missing optional config, using defaults')
    -
    -
\ No newline at end of file diff --git a/docs/classes/Request.html b/docs/classes/Request.html deleted file mode 100644 index b95fdb38..00000000 --- a/docs/classes/Request.html +++ /dev/null @@ -1,40 +0,0 @@ -Request | @cc-heart/utils

HTTP client with interceptors, timeout, retry, cache, deduplication, and download progress.

-

Basic usage

const api = new Request('https://api.example.com')

// Directly awaitable
const user = await api.get<User>('/users/1')

// Lifecycle callbacks
await api.get('/users', {
onSuccess: setUsers,
onError: toast.error,
onFinally: () => setLoading(false),
}) -
-

Composable best practice

Prefer small focused instances over one instance with all interceptors:

-
// ── Building blocks (pure functions, reusable) ──
const addAuth: RequestInterceptor = (config) => ({
...config,
headers: { ...config.headers, Authorization: `Bearer ${getToken()}` }
})
const addLang: RequestInterceptor = (config) => ({
...config,
headers: { ...config.headers, 'Accept-Language': 'zh-CN' }
})

// ── Compose: each instance handles one concern ──
const authApi = new Request('https://api.example.com')
authApi.useRequestInterceptor(addAuth)
authApi.useRequestInterceptor(addLang)

const publicApi = new Request('https://open.api.com')

// ── Or use per-request interceptors ──
api.get('/users', {}, {
requestInterceptors: [addAuth],
onSuccess: setUsers,
}) -
-

Constructors

Properties

baseUrl: string = ''
cacheMap: Map<string, CacheEntry> = ...
errorInterceptors: ErrorInterceptor[] = []
inflightMap: Map<string, Promise<unknown>> = ...
requestInterceptors: RequestInterceptor[] = []
responseInterceptors: ResponseInterceptor<any, any>[] = []

Methods

  • Parameters

    • data: unknown

    Returns string | Blob | FormData | URLSearchParams

  • Parameters

    • method: string
    • url: string

    Returns string

  • Parameters

    • method: string
    • data: unknown
    • config: RequestInit
    • controller: AbortController

    Returns RequestInit

  • Parameters

    • url: string
    • method: string
    • Optional params: Record<PropertyKey, any>

    Returns string

  • Clear the in-memory response cache.

    -

    Returns void

  • Type Parameters

    • T

    Parameters

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • requestUrl: string
    • method: string
    • data: unknown
    • requestConfig: RequestInit
    • controller: AbortController
    • requestInterceptors: RequestInterceptor[]
    • responseInterceptors: ResponseInterceptor<any, any>[]
    • errorInterceptors: ErrorInterceptor[]
    • onDownloadProgress: undefined | ((loaded, total) => void)
    • timeout: undefined | number
    • maxRetries: number
    • retryDelayMs: number
    • cache: undefined | boolean | CacheConfig
    • cacheKey: string

    Returns Promise<T>

  • Parameters

    • url: string

    Returns boolean

  • Parameters

    • baseUrl: string
    • url: string

    Returns string

  • Parameters

    • Optional headers: HeadersInit

    Returns Record<string, string>

  • Parameters

    • response: Response

    Returns Promise<any>

  • Parameters

    • response: Response
    • onProgress: ((loaded, total) => void)
        • (loaded, total): void
        • Parameters

          • loaded: number
          • total: number

          Returns void

    Returns Promise<unknown>

  • Type Parameters

    • T

    Parameters

    • interceptors: T[]
    • interceptor: T

    Returns void

  • Parameters

    Returns Promise<RequestInit>

  • Type Parameters

    • T = unknown
    • U = unknown

    Parameters

    Returns (() => void)

      • (): void
      • Returns void

\ No newline at end of file diff --git a/docs/documentation.json b/docs/documentation.json deleted file mode 100644 index 5f7a183f..00000000 --- a/docs/documentation.json +++ /dev/null @@ -1,17044 +0,0 @@ -{ - "id": 0, - "name": "@cc-heart/utils", - "variant": "project", - "kind": 1, - "flags": {}, - "children": [ - { - "id": 574, - "name": "Logger", - "variant": "declaration", - "kind": 128, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logger class for formatted and leveled log output." - } - ] - }, - "children": [ - { - "id": 575, - "name": "constructor", - "variant": "declaration", - "kind": 512, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 80, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L80" - } - ], - "signatures": [ - { - "id": 576, - "name": "new Logger", - "variant": "signature", - "kind": 16384, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Initializes the logger with an optional log level (default: TRACE)." - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 80, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L80" - } - ], - "parameters": [ - { - "id": 577, - "name": "level", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The minimum log level to output." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "LOG_LEVELS.TRACE" - } - ], - "type": { - "type": "reference", - "target": 574, - "name": "Logger", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 578, - "name": "level", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 74, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L74" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 595, - "name": "debug", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 140, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L140" - } - ], - "signatures": [ - { - "id": 596, - "name": "debug", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs a debug message (for developers)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.debug('User data:', user)\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 140, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L140" - } - ], - "parameters": [ - { - "id": 597, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 586, - "name": "error", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 116, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L116" - } - ], - "signatures": [ - { - "id": 587, - "name": "error", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs an error message (should be fixed immediately)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.error('API request failed', err)\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 116, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L116" - } - ], - "parameters": [ - { - "id": 588, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 592, - "name": "info", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 132, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L132" - } - ], - "signatures": [ - { - "id": 593, - "name": "info", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs an informational message (general purpose info)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.info('Server started on port 3000')\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 132, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L132" - } - ], - "parameters": [ - { - "id": 594, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 582, - "name": "log", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 97, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L97" - } - ], - "signatures": [ - { - "id": 583, - "name": "log", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Core log function that handles formatted output." - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 97, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L97" - } - ], - "parameters": [ - { - "id": 584, - "name": "level", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The severity level of the message." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 585, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The message(s) to log." - } - ] - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 579, - "name": "setLevel", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 88, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L88" - } - ], - "signatures": [ - { - "id": 580, - "name": "setLevel", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Updates the logger's log level." - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 88, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L88" - } - ], - "parameters": [ - { - "id": 581, - "name": "level", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "New log level threshold." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 601, - "name": "start", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 156, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L156" - } - ], - "signatures": [ - { - "id": 602, - "name": "start", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs a start/init message (task beginning)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.start('Uploading files...')\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 156, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L156" - } - ], - "parameters": [ - { - "id": 603, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 604, - "name": "success", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 164, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L164" - } - ], - "signatures": [ - { - "id": 605, - "name": "success", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs a success message (completed task)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.success('Upload completed')\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 164, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L164" - } - ], - "parameters": [ - { - "id": 606, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 598, - "name": "trace", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 148, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L148" - } - ], - "signatures": [ - { - "id": 599, - "name": "trace", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs a trace message (detailed execution info)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.trace('Entering function handleClick()')\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 148, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L148" - } - ], - "parameters": [ - { - "id": 600, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 589, - "name": "warn", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 124, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L124" - } - ], - "signatures": [ - { - "id": 590, - "name": "warn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Logs a warning message (recoverable issues or alerts)." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nlogger.warn('Missing optional config, using defaults')\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 124, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L124" - } - ], - "parameters": [ - { - "id": 591, - "name": "message", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "children": [ - 575 - ] - }, - { - "title": "Properties", - "children": [ - 578 - ] - }, - { - "title": "Methods", - "children": [ - 595, - 586, - 592, - 582, - 579, - 601, - 604, - 598, - 589 - ] - } - ], - "sources": [ - { - "fileName": "lib/log/index.ts", - "line": 73, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/log/index.ts#L73" - } - ] - }, - { - "id": 140, - "name": "Request", - "variant": "declaration", - "kind": 128, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "HTTP client with interceptors, timeout, retry, cache, deduplication, and download progress.\n\n### Basic usage\n" - }, - { - "kind": "code", - "text": "```ts\nconst api = new Request('https://api.example.com')\n\n// Directly awaitable\nconst user = await api.get('/users/1')\n\n// Lifecycle callbacks\nawait api.get('/users', {\n onSuccess: setUsers,\n onError: toast.error,\n onFinally: () => setLoading(false),\n})\n```" - }, - { - "kind": "text", - "text": "\n\n### Composable best practice\n\nPrefer small focused instances over one instance with all interceptors:\n" - }, - { - "kind": "code", - "text": "```ts\n// ── Building blocks (pure functions, reusable) ──\nconst addAuth: RequestInterceptor = (config) => ({\n ...config,\n headers: { ...config.headers, Authorization: `Bearer ${getToken()}` }\n})\nconst addLang: RequestInterceptor = (config) => ({\n ...config,\n headers: { ...config.headers, 'Accept-Language': 'zh-CN' }\n})\n\n// ── Compose: each instance handles one concern ──\nconst authApi = new Request('https://api.example.com')\nauthApi.useRequestInterceptor(addAuth)\nauthApi.useRequestInterceptor(addLang)\n\nconst publicApi = new Request('https://open.api.com')\n\n// ── Or use per-request interceptors ──\napi.get('/users', {}, {\n requestInterceptors: [addAuth],\n onSuccess: setUsers,\n})\n```" - } - ] - }, - "children": [ - { - "id": 141, - "name": "constructor", - "variant": "declaration", - "kind": 512, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 129, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L129" - } - ], - "signatures": [ - { - "id": 142, - "name": "new Request", - "variant": "signature", - "kind": 16384, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 129, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L129" - } - ], - "parameters": [ - { - "id": 143, - "name": "baseUrl", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "''" - } - ], - "type": { - "type": "reference", - "target": 140, - "name": "Request", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 149, - "name": "baseUrl", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true, - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 129, - "character": 31, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L129" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "''" - }, - { - "id": 147, - "name": "cacheMap", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 126, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L126" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es2015.collection.d.ts", - "qualifiedName": "Map" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "target": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "CacheEntry" - }, - "name": "CacheEntry", - "package": "@cc-heart/utils" - } - ], - "name": "Map", - "package": "typescript" - }, - "defaultValue": "..." - }, - { - "id": 146, - "name": "errorInterceptors", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 125, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L125" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 91, - "name": "ErrorInterceptor", - "package": "@cc-heart/utils" - } - }, - "defaultValue": "[]" - }, - { - "id": 148, - "name": "inflightMap", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 127, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L127" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es2015.collection.d.ts", - "qualifiedName": "Map" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - ], - "name": "Map", - "package": "typescript" - }, - "defaultValue": "..." - }, - { - "id": 144, - "name": "requestInterceptors", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 123, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L123" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 81, - "name": "RequestInterceptor", - "package": "@cc-heart/utils" - } - }, - "defaultValue": "[]" - }, - { - "id": 145, - "name": "responseInterceptors", - "variant": "declaration", - "kind": 1024, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 124, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L124" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 85, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "ResponseInterceptor", - "package": "@cc-heart/utils" - } - }, - "defaultValue": "[]" - }, - { - "id": 249, - "name": "buildBody", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 494, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L494" - } - ], - "signatures": [ - { - "id": 250, - "name": "buildBody", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 494, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L494" - } - ], - "parameters": [ - { - "id": 251, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/buffer.d.ts", - "qualifiedName": "\"buffer\".Blob" - }, - "name": "Blob", - "package": "@types/node", - "qualifiedName": "\"buffer\".Blob" - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts", - "qualifiedName": "FormData" - }, - "name": "FormData", - "package": "undici-types" - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/url.d.ts", - "qualifiedName": "\"url\".URLSearchParams" - }, - "name": "URLSearchParams", - "package": "@types/node", - "qualifiedName": "\"url\".URLSearchParams" - } - ] - } - } - ] - }, - { - "id": 204, - "name": "buildCacheKey", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 212, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L212" - } - ], - "signatures": [ - { - "id": 205, - "name": "buildCacheKey", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 212, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L212" - } - ], - "parameters": [ - { - "id": 206, - "name": "method", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 207, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 243, - "name": "buildRequestInit", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 463, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L463" - } - ], - "signatures": [ - { - "id": 244, - "name": "buildRequestInit", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 463, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L463" - } - ], - "parameters": [ - { - "id": 245, - "name": "method", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 246, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 247, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - }, - { - "id": 248, - "name": "controller", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.AbortController" - }, - "name": "AbortController", - "package": "@types/node", - "qualifiedName": "__global.AbortController" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - } - ] - }, - { - "id": 252, - "name": "buildUrl", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 502, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L502" - } - ], - "signatures": [ - { - "id": 253, - "name": "buildUrl", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 502, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L502" - } - ], - "parameters": [ - { - "id": 254, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 255, - "name": "method", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 256, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 197, - "name": "clearCache", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 181, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L181" - } - ], - "signatures": [ - { - "id": 198, - "name": "clearCache", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Clear the in-memory response cache." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 181, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L181" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 173, - "name": "delete", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 160, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L160" - } - ], - "signatures": [ - { - "id": 174, - "name": "delete", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 160, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L160" - } - ], - "typeParameter": [ - { - "id": 175, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 176, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 177, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 178, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "target": 49, - "typeArguments": [ - { - "type": "reference", - "target": 175, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "RequestHandle", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 208, - "name": "execute", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 216, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L216" - } - ], - "signatures": [ - { - "id": 209, - "name": "execute", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 216, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L216" - } - ], - "typeParameter": [ - { - "id": 210, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ], - "parameters": [ - { - "id": 211, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 212, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - } - }, - { - "id": 213, - "name": "controller", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.AbortController" - }, - "name": "AbortController", - "package": "@types/node", - "qualifiedName": "__global.AbortController" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 210, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 214, - "name": "executeWithRetry", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 313, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L313" - } - ], - "signatures": [ - { - "id": 215, - "name": "executeWithRetry", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 313, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L313" - } - ], - "typeParameter": [ - { - "id": 216, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ], - "parameters": [ - { - "id": 217, - "name": "requestUrl", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 218, - "name": "method", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 219, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 220, - "name": "requestConfig", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - }, - { - "id": 221, - "name": "controller", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.AbortController" - }, - "name": "AbortController", - "package": "@types/node", - "qualifiedName": "__global.AbortController" - } - }, - { - "id": 222, - "name": "requestInterceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 81, - "name": "RequestInterceptor", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 223, - "name": "responseInterceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 85, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "ResponseInterceptor", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 224, - "name": "errorInterceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 91, - "name": "ErrorInterceptor", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 225, - "name": "onDownloadProgress", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reflection", - "declaration": { - "id": 226, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 322, - "character": 25, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L322" - } - ], - "signatures": [ - { - "id": 227, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 322, - "character": 25, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L322" - } - ], - "parameters": [ - { - "id": 228, - "name": "loaded", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 229, - "name": "total", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - ] - } - }, - { - "id": 230, - "name": "timeout", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "number" - } - ] - } - }, - { - "id": 231, - "name": "maxRetries", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 232, - "name": "retryDelayMs", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 233, - "name": "cache", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "intrinsic", - "name": "boolean" - }, - { - "type": "reference", - "target": 95, - "name": "CacheConfig", - "package": "@cc-heart/utils" - } - ] - } - }, - { - "id": 234, - "name": "cacheKey", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 216, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 167, - "name": "get", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 152, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L152" - } - ], - "signatures": [ - { - "id": 168, - "name": "get", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 152, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L152" - } - ], - "typeParameter": [ - { - "id": 169, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 170, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 171, - "name": "params", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 172, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "target": 49, - "typeArguments": [ - { - "type": "reference", - "target": 169, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "RequestHandle", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 261, - "name": "isCompleteUrl", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 525, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L525" - } - ], - "signatures": [ - { - "id": 262, - "name": "isCompleteUrl", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 525, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L525" - } - ], - "parameters": [ - { - "id": 263, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 257, - "name": "joinUrl", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 520, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L520" - } - ], - "signatures": [ - { - "id": 258, - "name": "joinUrl", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 520, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L520" - } - ], - "parameters": [ - { - "id": 259, - "name": "baseUrl", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 260, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 264, - "name": "normalizeHeaders", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 529, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L529" - } - ], - "signatures": [ - { - "id": 265, - "name": "normalizeHeaders", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 529, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L529" - } - ], - "parameters": [ - { - "id": 266, - "name": "headers", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "HeadersInit" - }, - "name": "HeadersInit", - "package": "undici-types" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "string" - }, - { - "type": "intrinsic", - "name": "string" - } - ], - "name": "Record", - "package": "typescript" - } - } - ] - }, - { - "id": 279, - "name": "parseResponse", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 582, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L582" - } - ], - "signatures": [ - { - "id": 280, - "name": "parseResponse", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 582, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L582" - } - ], - "parameters": [ - { - "id": 281, - "name": "response", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/shiki@0.14.7/node_modules/shiki/dist/index.d.ts", - "qualifiedName": "__global.Response" - }, - "name": "Response", - "package": "shiki", - "qualifiedName": "__global.Response" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 191, - "name": "patch", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 176, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L176" - } - ], - "signatures": [ - { - "id": 192, - "name": "patch", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 176, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L176" - } - ], - "typeParameter": [ - { - "id": 193, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 194, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 195, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 196, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "target": 49, - "typeArguments": [ - { - "type": "reference", - "target": 193, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "RequestHandle", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 179, - "name": "post", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 168, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L168" - } - ], - "signatures": [ - { - "id": 180, - "name": "post", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 168, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L168" - } - ], - "typeParameter": [ - { - "id": 181, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 182, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 183, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 184, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "target": 49, - "typeArguments": [ - { - "type": "reference", - "target": 181, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "RequestHandle", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 185, - "name": "put", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 172, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L172" - } - ], - "signatures": [ - { - "id": 186, - "name": "put", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 172, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L172" - } - ], - "typeParameter": [ - { - "id": 187, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 188, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 189, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 190, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "target": 49, - "typeArguments": [ - { - "type": "reference", - "target": 187, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "RequestHandle", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 235, - "name": "readResponseWithProgress", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 425, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L425" - } - ], - "signatures": [ - { - "id": 236, - "name": "readResponseWithProgress", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 425, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L425" - } - ], - "parameters": [ - { - "id": 237, - "name": "response", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/shiki@0.14.7/node_modules/shiki/dist/index.d.ts", - "qualifiedName": "__global.Response" - }, - "name": "Response", - "package": "shiki", - "qualifiedName": "__global.Response" - } - }, - { - "id": 238, - "name": "onProgress", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reflection", - "declaration": { - "id": 239, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 427, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L427" - } - ], - "signatures": [ - { - "id": 240, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 427, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L427" - } - ], - "parameters": [ - { - "id": 241, - "name": "loaded", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 242, - "name": "total", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 282, - "name": "removeInterceptor", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 600, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L600" - } - ], - "signatures": [ - { - "id": 283, - "name": "removeInterceptor", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 600, - "character": 10, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L600" - } - ], - "typeParameter": [ - { - "id": 284, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ], - "parameters": [ - { - "id": 285, - "name": "interceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 284, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - }, - { - "id": 286, - "name": "interceptor", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 284, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 199, - "name": "request", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 187, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L187" - } - ], - "signatures": [ - { - "id": 200, - "name": "request", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 187, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L187" - } - ], - "typeParameter": [ - { - "id": 201, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 202, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 203, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 97, - "name": "RequestConfig", - "package": "@cc-heart/utils" - }, - "defaultValue": "{}" - } - ], - "type": { - "type": "reference", - "target": 49, - "typeArguments": [ - { - "type": "reference", - "target": 201, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "RequestHandle", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 275, - "name": "runErrorInterceptors", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 569, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L569" - } - ], - "signatures": [ - { - "id": 276, - "name": "runErrorInterceptors", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 569, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L569" - } - ], - "parameters": [ - { - "id": 277, - "name": "error", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 278, - "name": "interceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 91, - "name": "ErrorInterceptor", - "package": "@cc-heart/utils" - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 267, - "name": "runRequestInterceptors", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 547, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L547" - } - ], - "signatures": [ - { - "id": 268, - "name": "runRequestInterceptors", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 547, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L547" - } - ], - "parameters": [ - { - "id": 269, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - }, - { - "id": 270, - "name": "interceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 81, - "name": "RequestInterceptor", - "package": "@cc-heart/utils" - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 271, - "name": "runResponseInterceptors", - "variant": "declaration", - "kind": 2048, - "flags": { - "isPrivate": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 558, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L558" - } - ], - "signatures": [ - { - "id": 272, - "name": "runResponseInterceptors", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 558, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L558" - } - ], - "parameters": [ - { - "id": 273, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 274, - "name": "interceptors", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 85, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "ResponseInterceptor", - "package": "@cc-heart/utils" - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 162, - "name": "useErrorInterceptor", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 145, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L145" - } - ], - "signatures": [ - { - "id": 163, - "name": "useErrorInterceptor", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 145, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L145" - } - ], - "parameters": [ - { - "id": 164, - "name": "interceptor", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 91, - "name": "ErrorInterceptor", - "package": "@cc-heart/utils" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 165, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 147, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L147" - } - ], - "signatures": [ - { - "id": 166, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 147, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L147" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ] - }, - { - "id": 150, - "name": "useRequestInterceptor", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 133, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L133" - } - ], - "signatures": [ - { - "id": 151, - "name": "useRequestInterceptor", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 133, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L133" - } - ], - "parameters": [ - { - "id": 152, - "name": "interceptor", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 81, - "name": "RequestInterceptor", - "package": "@cc-heart/utils" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 153, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 135, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L135" - } - ], - "signatures": [ - { - "id": 154, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 135, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L135" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ] - }, - { - "id": 155, - "name": "useResponseInterceptor", - "variant": "declaration", - "kind": 2048, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 138, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L138" - } - ], - "signatures": [ - { - "id": 156, - "name": "useResponseInterceptor", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 138, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L138" - } - ], - "typeParameter": [ - { - "id": 157, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 158, - "name": "U", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "parameters": [ - { - "id": 159, - "name": "interceptor", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 85, - "typeArguments": [ - { - "type": "reference", - "target": 157, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": 158, - "name": "U", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "ResponseInterceptor", - "package": "@cc-heart/utils" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 160, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 142, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L142" - } - ], - "signatures": [ - { - "id": 161, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 142, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L142" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ] - } - ], - "groups": [ - { - "title": "Constructors", - "children": [ - 141 - ] - }, - { - "title": "Properties", - "children": [ - 149, - 147, - 146, - 148, - 144, - 145 - ] - }, - { - "title": "Methods", - "children": [ - 249, - 204, - 243, - 252, - 197, - 173, - 208, - 214, - 167, - 261, - 257, - 264, - 279, - 191, - 179, - 185, - 235, - 282, - 199, - 275, - 267, - 271, - 162, - 150, - 155 - ] - } - ], - "sources": [ - { - "fileName": "lib/request.ts", - "line": 122, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L122" - } - ] - }, - { - "id": 95, - "name": "CacheConfig", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 96, - "name": "ttl", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Time-to-live in milliseconds." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 34, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L34" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 96 - ] - } - ], - "sources": [ - { - "fileName": "lib/request.ts", - "line": 32, - "character": 17, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L32" - } - ] - }, - { - "id": 97, - "name": "RequestConfig", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 129, - "name": "body", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 108, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "BodyInit" - }, - "name": "BodyInit", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.body" - } - }, - { - "id": 106, - "name": "cache", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Response cache configuration. " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " = default TTL (5000ms)." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 52, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L52" - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "boolean" - }, - { - "type": "reference", - "target": 95, - "name": "CacheConfig", - "package": "@cc-heart/utils" - } - ] - } - }, - { - "id": 133, - "name": "credentials", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 112, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestCredentials" - }, - "name": "RequestCredentials", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.credentials" - } - }, - { - "id": 99, - "name": "data", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 41, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L41" - } - ], - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 138, - "name": "dispatcher", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 117, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts", - "qualifiedName": "Dispatcher" - }, - "name": "Dispatcher", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.dispatcher" - } - }, - { - "id": 139, - "name": "duplex", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 118, - "character": 2 - } - ], - "type": { - "type": "literal", - "value": "half" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.duplex" - } - }, - { - "id": 102, - "name": "errorInterceptors", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 44, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L44" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 91, - "name": "ErrorInterceptor", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 128, - "name": "headers", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 107, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "HeadersInit" - }, - "name": "HeadersInit", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.headers" - } - }, - { - "id": 131, - "name": "integrity", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 110, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.integrity" - } - }, - { - "id": 127, - "name": "keepalive", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 106, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.keepalive" - } - }, - { - "id": 126, - "name": "method", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 105, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.method" - } - }, - { - "id": 134, - "name": "mode", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 113, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestMode" - }, - "name": "RequestMode", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.mode" - } - }, - { - "id": 120, - "name": "onAbort", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 59, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L59" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 121, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 59, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L59" - } - ], - "signatures": [ - { - "id": 122, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 59, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L59" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 107, - "name": "onDownloadProgress", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Download progress callback. Receives (loadedBytes, totalBytes)." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 54, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L54" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 108, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 54, - "character": 23, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L54" - } - ], - "signatures": [ - { - "id": 109, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 54, - "character": 23, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L54" - } - ], - "parameters": [ - { - "id": 110, - "name": "loaded", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 111, - "name": "total", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 116, - "name": "onError", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 58, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L58" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 117, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 58, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L58" - } - ], - "signatures": [ - { - "id": 118, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 58, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L58" - } - ], - "parameters": [ - { - "id": 119, - "name": "error", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 123, - "name": "onFinally", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 60, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L60" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 124, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 60, - "character": 14, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L60" - } - ], - "signatures": [ - { - "id": 125, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 60, - "character": 14, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L60" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 112, - "name": "onSuccess", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 57, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L57" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 113, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 57, - "character": 14, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L57" - } - ], - "signatures": [ - { - "id": 114, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 57, - "character": 14, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L57" - } - ], - "parameters": [ - { - "id": 115, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 98, - "name": "params", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 40, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L40" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 130, - "name": "redirect", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 109, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestRedirect" - }, - "name": "RequestRedirect", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.redirect" - } - }, - { - "id": 135, - "name": "referrer", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 114, - "character": 2 - } - ], - "type": { - "type": "intrinsic", - "name": "string" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.referrer" - } - }, - { - "id": 136, - "name": "referrerPolicy", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 115, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "ReferrerPolicy" - }, - "name": "ReferrerPolicy", - "package": "undici-types" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.referrerPolicy" - } - }, - { - "id": 100, - "name": "requestInterceptors", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 42, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L42" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 81, - "name": "RequestInterceptor", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 101, - "name": "responseInterceptors", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 43, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L43" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": 85, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "ResponseInterceptor", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 104, - "name": "retry", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Max retry count on failure. 0 = no retry." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 48, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L48" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 105, - "name": "retryDelay", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Delay between retries in milliseconds." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 50, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L50" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 132, - "name": "signal", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 111, - "character": 2 - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.AbortSignal" - }, - "name": "AbortSignal", - "package": "@types/node", - "qualifiedName": "__global.AbortSignal" - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.signal" - } - }, - { - "id": 103, - "name": "timeout", - "variant": "declaration", - "kind": 1024, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Request timeout in milliseconds. 0 or undefined = no timeout." - } - ] - }, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 46, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L46" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 137, - "name": "window", - "variant": "declaration", - "kind": 1024, - "flags": { - "isExternal": true, - "isOptional": true - }, - "sources": [ - { - "fileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "line": 116, - "character": 2 - } - ], - "type": { - "type": "literal", - "value": null - }, - "inheritedFrom": { - "type": "reference", - "target": -1, - "name": "RequestInit.window" - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 129, - 106, - 133, - 99, - 138, - 139, - 102, - 128, - 131, - 127, - 126, - 134, - 120, - 107, - 116, - 123, - 112, - 98, - 130, - 135, - 136, - 100, - 101, - 104, - 105, - 132, - 103, - 137 - ] - } - ], - "sources": [ - { - "fileName": "lib/request.ts", - "line": 39, - "character": 17, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L39" - } - ], - "extendedTypes": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - ] - }, - { - "id": 49, - "name": "RequestHandle", - "variant": "declaration", - "kind": 256, - "flags": {}, - "children": [ - { - "id": 77, - "name": "abort", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 15, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L15" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 78, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 15, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L15" - } - ], - "signatures": [ - { - "id": 79, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 15, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L15" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - }, - { - "id": 63, - "name": "catch", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 11, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L11" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 64, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 11, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L11" - } - ], - "signatures": [ - { - "id": 65, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 11, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L11" - } - ], - "typeParameter": [ - { - "id": 66, - "name": "R", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "never" - } - } - ], - "parameters": [ - { - "id": 67, - "name": "onrejected", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 68, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 12, - "character": 18, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L12" - } - ], - "signatures": [ - { - "id": 69, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 12, - "character": 18, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L12" - } - ], - "parameters": [ - { - "id": 70, - "name": "reason", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 66, - "name": "R", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PromiseLike" - }, - "typeArguments": [ - { - "type": "reference", - "target": 66, - "name": "R", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "PromiseLike", - "package": "typescript" - } - ] - } - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": 80, - "name": "T", - "package": "@cc-heart/utils", - "qualifiedName": "RequestHandle.T", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": 66, - "name": "R", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ] - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 71, - "name": "finally", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 14, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L14" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 72, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 14, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L14" - } - ], - "signatures": [ - { - "id": 73, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 14, - "character": 11, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L14" - } - ], - "parameters": [ - { - "id": 74, - "name": "onfinally", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 75, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 14, - "character": 25, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L14" - } - ], - "signatures": [ - { - "id": 76, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 14, - "character": 25, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L14" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 80, - "name": "T", - "package": "@cc-heart/utils", - "qualifiedName": "RequestHandle.T", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - }, - { - "id": 50, - "name": "then", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 7, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L7" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 51, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 7, - "character": 8, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L7" - } - ], - "signatures": [ - { - "id": 52, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 7, - "character": 8, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L7" - } - ], - "typeParameter": [ - { - "id": 53, - "name": "R1", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "reference", - "target": 80, - "name": "T", - "package": "@cc-heart/utils", - "qualifiedName": "RequestHandle.T", - "refersToTypeParameter": true - } - }, - { - "id": 54, - "name": "R2", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "never" - } - } - ], - "parameters": [ - { - "id": 55, - "name": "onfulfilled", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 56, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 8, - "character": 19, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L8" - } - ], - "signatures": [ - { - "id": 57, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 8, - "character": 19, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L8" - } - ], - "parameters": [ - { - "id": 58, - "name": "value", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 80, - "name": "T", - "package": "@cc-heart/utils", - "qualifiedName": "RequestHandle.T", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 53, - "name": "R1", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PromiseLike" - }, - "typeArguments": [ - { - "type": "reference", - "target": 53, - "name": "R1", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "PromiseLike", - "package": "typescript" - } - ] - } - } - ] - } - } - ] - } - }, - { - "id": 59, - "name": "onrejected", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "reflection", - "declaration": { - "id": 60, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 9, - "character": 18, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L9" - } - ], - "signatures": [ - { - "id": 61, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 9, - "character": 18, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L9" - } - ], - "parameters": [ - { - "id": 62, - "name": "reason", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 54, - "name": "R2", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PromiseLike" - }, - "typeArguments": [ - { - "type": "reference", - "target": 54, - "name": "R2", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "PromiseLike", - "package": "typescript" - } - ] - } - } - ] - } - } - ] - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "reference", - "target": 53, - "name": "R1", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": 54, - "name": "R2", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ] - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 77, - 63, - 71, - 50 - ] - } - ], - "sources": [ - { - "fileName": "lib/request.ts", - "line": 6, - "character": 17, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L6" - } - ], - "typeParameters": [ - { - "id": 80, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ] - }, - { - "id": 91, - "name": "ErrorInterceptor", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 28, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L28" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 92, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 28, - "character": 31, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L28" - } - ], - "signatures": [ - { - "id": 93, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 94, - "name": "error", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - ] - } - } - ] - } - } - }, - { - "id": 81, - "name": "RequestInterceptor", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 20, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L20" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 82, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 20, - "character": 33, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L20" - } - ], - "signatures": [ - { - "id": 83, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 84, - "name": "config", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/@types+node@18.19.44/node_modules/@types/node/globals.d.ts", - "qualifiedName": "__global.RequestInit" - }, - "name": "RequestInit", - "package": "@types/node", - "qualifiedName": "__global.RequestInit" - } - ], - "name": "Promise", - "package": "typescript" - } - ] - } - } - ] - } - } - }, - { - "id": 85, - "name": "ResponseInterceptor", - "variant": "declaration", - "kind": 2097152, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 24, - "character": 12, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L24" - } - ], - "typeParameters": [ - { - "id": 89, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 90, - "name": "U", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "default": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 86, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/request.ts", - "line": 24, - "character": 60, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/request.ts#L24" - } - ], - "signatures": [ - { - "id": 87, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "parameters": [ - { - "id": 88, - "name": "data", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 89, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "reference", - "target": 90, - "name": "U", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - }, - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 90, - "name": "U", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - ] - } - } - ] - } - } - }, - { - "id": 424, - "name": "HTTP_STATUS", - "variant": "declaration", - "kind": 32, - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 1, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L1" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 425, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 432, - "name": "ACCEPTED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 8, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L8" - } - ], - "type": { - "type": "literal", - "value": 202 - }, - "defaultValue": "202" - }, - { - "id": 437, - "name": "AMBIGUOUS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 13, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L13" - } - ], - "type": { - "type": "literal", - "value": 300 - }, - "defaultValue": "300" - }, - { - "id": 470, - "name": "BAD_GATEWAY", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 46, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L46" - } - ], - "type": { - "type": "literal", - "value": 502 - }, - "defaultValue": "502" - }, - { - "id": 444, - "name": "BAD_REQUEST", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 20, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L20" - } - ], - "type": { - "type": "literal", - "value": 400 - }, - "defaultValue": "400" - }, - { - "id": 453, - "name": "CONFLICT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 29, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L29" - } - ], - "type": { - "type": "literal", - "value": 409 - }, - "defaultValue": "409" - }, - { - "id": 426, - "name": "CONTINUE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 2, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L2" - } - ], - "type": { - "type": "literal", - "value": 100 - }, - "defaultValue": "100" - }, - { - "id": 431, - "name": "CREATED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 7, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L7" - } - ], - "type": { - "type": "literal", - "value": 201 - }, - "defaultValue": "201" - }, - { - "id": 429, - "name": "EARLYHINTS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 5, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L5" - } - ], - "type": { - "type": "literal", - "value": 103 - }, - "defaultValue": "103" - }, - { - "id": 461, - "name": "EXPECTATION_FAILED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 37, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L37" - } - ], - "type": { - "type": "literal", - "value": 417 - }, - "defaultValue": "417" - }, - { - "id": 465, - "name": "FAILED_DEPENDENCY", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 41, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L41" - } - ], - "type": { - "type": "literal", - "value": 424 - }, - "defaultValue": "424" - }, - { - "id": 447, - "name": "FORBIDDEN", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 23, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L23" - } - ], - "type": { - "type": "literal", - "value": 403 - }, - "defaultValue": "403" - }, - { - "id": 439, - "name": "FOUND", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 15, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L15" - } - ], - "type": { - "type": "literal", - "value": 302 - }, - "defaultValue": "302" - }, - { - "id": 472, - "name": "GATEWAY_TIMEOUT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 48, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L48" - } - ], - "type": { - "type": "literal", - "value": 504 - }, - "defaultValue": "504" - }, - { - "id": 454, - "name": "GONE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 30, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L30" - } - ], - "type": { - "type": "literal", - "value": 410 - }, - "defaultValue": "410" - }, - { - "id": 473, - "name": "HTTP_VERSION_NOT_SUPPORTED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 49, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L49" - } - ], - "type": { - "type": "literal", - "value": 505 - }, - "defaultValue": "505" - }, - { - "id": 468, - "name": "INTERNAL_SERVER_ERROR", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 44, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L44" - } - ], - "type": { - "type": "literal", - "value": 500 - }, - "defaultValue": "500" - }, - { - "id": 462, - "name": "I_AM_A_TEAPOT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 38, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L38" - } - ], - "type": { - "type": "literal", - "value": 418 - }, - "defaultValue": "418" - }, - { - "id": 455, - "name": "LENGTH_REQUIRED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 31, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L31" - } - ], - "type": { - "type": "literal", - "value": 411 - }, - "defaultValue": "411" - }, - { - "id": 449, - "name": "METHOD_NOT_ALLOWED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 25, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L25" - } - ], - "type": { - "type": "literal", - "value": 405 - }, - "defaultValue": "405" - }, - { - "id": 463, - "name": "MISDIRECTED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 39, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L39" - } - ], - "type": { - "type": "literal", - "value": 421 - }, - "defaultValue": "421" - }, - { - "id": 438, - "name": "MOVED_PERMANENTLY", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 14, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L14" - } - ], - "type": { - "type": "literal", - "value": 301 - }, - "defaultValue": "301" - }, - { - "id": 433, - "name": "NON_AUTHORITATIVE_INFORMATION", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 9, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L9" - } - ], - "type": { - "type": "literal", - "value": 203 - }, - "defaultValue": "203" - }, - { - "id": 450, - "name": "NOT_ACCEPTABLE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 26, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L26" - } - ], - "type": { - "type": "literal", - "value": 406 - }, - "defaultValue": "406" - }, - { - "id": 448, - "name": "NOT_FOUND", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 24, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L24" - } - ], - "type": { - "type": "literal", - "value": 404 - }, - "defaultValue": "404" - }, - { - "id": 469, - "name": "NOT_IMPLEMENTED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 45, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L45" - } - ], - "type": { - "type": "literal", - "value": 501 - }, - "defaultValue": "501" - }, - { - "id": 441, - "name": "NOT_MODIFIED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 17, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L17" - } - ], - "type": { - "type": "literal", - "value": 304 - }, - "defaultValue": "304" - }, - { - "id": 434, - "name": "NO_CONTENT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 10, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L10" - } - ], - "type": { - "type": "literal", - "value": 204 - }, - "defaultValue": "204" - }, - { - "id": 430, - "name": "OK", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 6, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L6" - } - ], - "type": { - "type": "literal", - "value": 200 - }, - "defaultValue": "200" - }, - { - "id": 436, - "name": "PARTIAL_CONTENT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 12, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L12" - } - ], - "type": { - "type": "literal", - "value": 206 - }, - "defaultValue": "206" - }, - { - "id": 457, - "name": "PAYLOAD_TOO_LARGE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 33, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L33" - } - ], - "type": { - "type": "literal", - "value": 413 - }, - "defaultValue": "413" - }, - { - "id": 446, - "name": "PAYMENT_REQUIRED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 22, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L22" - } - ], - "type": { - "type": "literal", - "value": 402 - }, - "defaultValue": "402" - }, - { - "id": 443, - "name": "PERMANENT_REDIRECT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 19, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L19" - } - ], - "type": { - "type": "literal", - "value": 308 - }, - "defaultValue": "308" - }, - { - "id": 456, - "name": "PRECONDITION_FAILED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 32, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L32" - } - ], - "type": { - "type": "literal", - "value": 412 - }, - "defaultValue": "412" - }, - { - "id": 466, - "name": "PRECONDITION_REQUIRED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 42, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L42" - } - ], - "type": { - "type": "literal", - "value": 428 - }, - "defaultValue": "428" - }, - { - "id": 428, - "name": "PROCESSING", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 4, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L4" - } - ], - "type": { - "type": "literal", - "value": 102 - }, - "defaultValue": "102" - }, - { - "id": 451, - "name": "PROXY_AUTHENTICATION_REQUIRED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 27, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L27" - } - ], - "type": { - "type": "literal", - "value": 407 - }, - "defaultValue": "407" - }, - { - "id": 460, - "name": "REQUESTED_RANGE_NOT_SATISFIABLE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 36, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L36" - } - ], - "type": { - "type": "literal", - "value": 416 - }, - "defaultValue": "416" - }, - { - "id": 452, - "name": "REQUEST_TIMEOUT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 28, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L28" - } - ], - "type": { - "type": "literal", - "value": 408 - }, - "defaultValue": "408" - }, - { - "id": 435, - "name": "RESET_CONTENT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 11, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L11" - } - ], - "type": { - "type": "literal", - "value": 205 - }, - "defaultValue": "205" - }, - { - "id": 440, - "name": "SEE_OTHER", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 16, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L16" - } - ], - "type": { - "type": "literal", - "value": 303 - }, - "defaultValue": "303" - }, - { - "id": 471, - "name": "SERVICE_UNAVAILABLE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 47, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L47" - } - ], - "type": { - "type": "literal", - "value": 503 - }, - "defaultValue": "503" - }, - { - "id": 427, - "name": "SWITCHING_PROTOCOLS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 3, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L3" - } - ], - "type": { - "type": "literal", - "value": 101 - }, - "defaultValue": "101" - }, - { - "id": 442, - "name": "TEMPORARY_REDIRECT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 18, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L18" - } - ], - "type": { - "type": "literal", - "value": 307 - }, - "defaultValue": "307" - }, - { - "id": 467, - "name": "TOO_MANY_REQUESTS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 43, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L43" - } - ], - "type": { - "type": "literal", - "value": 429 - }, - "defaultValue": "429" - }, - { - "id": 445, - "name": "UNAUTHORIZED", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 21, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L21" - } - ], - "type": { - "type": "literal", - "value": 401 - }, - "defaultValue": "401" - }, - { - "id": 464, - "name": "UNPROCESSABLE_ENTITY", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 40, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L40" - } - ], - "type": { - "type": "literal", - "value": 422 - }, - "defaultValue": "422" - }, - { - "id": 459, - "name": "UNSUPPORTED_MEDIA_TYPE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 35, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L35" - } - ], - "type": { - "type": "literal", - "value": 415 - }, - "defaultValue": "415" - }, - { - "id": 458, - "name": "URI_TOO_LONG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 34, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L34" - } - ], - "type": { - "type": "literal", - "value": 414 - }, - "defaultValue": "414" - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 432, - 437, - 470, - 444, - 453, - 426, - 431, - 429, - 461, - 465, - 447, - 439, - 472, - 454, - 473, - 468, - 462, - 455, - 449, - 463, - 438, - 433, - 450, - 448, - 469, - 441, - 434, - 430, - 436, - 457, - 446, - 443, - 456, - 466, - 428, - 451, - 460, - 452, - 435, - 440, - 471, - 427, - 442, - 467, - 445, - 464, - 459, - 458 - ] - } - ], - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 1, - "character": 27, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L1" - } - ] - } - }, - "defaultValue": "..." - }, - { - "id": 485, - "name": "MIME_TYPES", - "variant": "declaration", - "kind": 32, - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 64, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L64" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 486, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 517, - "name": "7Z", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 95, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L95" - } - ], - "type": { - "type": "literal", - "value": "application/x-7z-compressed" - }, - "defaultValue": "'application/x-7z-compressed'" - }, - { - "id": 573, - "name": "7ZIP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 151, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L151" - } - ], - "type": { - "type": "literal", - "value": "application/x-7z-compressed" - }, - "defaultValue": "'application/x-7z-compressed'" - }, - { - "id": 572, - "name": "ALZ", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 150, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L150" - } - ], - "type": { - "type": "literal", - "value": "application/x-alz" - }, - "defaultValue": "'application/x-alz'" - }, - { - "id": 553, - "name": "APK", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 131, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L131" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.android.package-archive" - }, - "defaultValue": "'application/vnd.android.package-archive'" - }, - { - "id": 509, - "name": "AVI", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 87, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L87" - } - ], - "type": { - "type": "literal", - "value": "video/x-msvideo" - }, - "defaultValue": "'video/x-msvideo'" - }, - { - "id": 538, - "name": "BAT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 116, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L116" - } - ], - "type": { - "type": "literal", - "value": "application/x-msdownload" - }, - "defaultValue": "'application/x-msdownload'" - }, - { - "id": 499, - "name": "BMP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 77, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L77" - } - ], - "type": { - "type": "literal", - "value": "image/bmp" - }, - "defaultValue": "'image/bmp'" - }, - { - "id": 520, - "name": "BZ2", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 98, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L98" - } - ], - "type": { - "type": "literal", - "value": "application/x-bzip2" - }, - "defaultValue": "'application/x-bzip2'" - }, - { - "id": 563, - "name": "C", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 141, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L141" - } - ], - "type": { - "type": "literal", - "value": "text/x-csrc" - }, - "defaultValue": "'text/x-csrc'" - }, - { - "id": 564, - "name": "CPP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 142, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L142" - } - ], - "type": { - "type": "literal", - "value": "text/x-c++src" - }, - "defaultValue": "'text/x-c++src'" - }, - { - "id": 565, - "name": "CS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 143, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L143" - } - ], - "type": { - "type": "literal", - "value": "text/plain" - }, - "defaultValue": "'text/plain'" - }, - { - "id": 490, - "name": "CSS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 68, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L68" - } - ], - "type": { - "type": "literal", - "value": "text/css" - }, - "defaultValue": "'text/css'" - }, - { - "id": 491, - "name": "CSV", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 69, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L69" - } - ], - "type": { - "type": "literal", - "value": "text/csv" - }, - "defaultValue": "'text/csv'" - }, - { - "id": 536, - "name": "DLL", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 114, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L114" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.microsoft.portable-executable" - }, - "defaultValue": "'application/vnd.microsoft.portable-executable'" - }, - { - "id": 554, - "name": "DMG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 132, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L132" - } - ], - "type": { - "type": "literal", - "value": "application/x-apple-diskimage" - }, - "defaultValue": "'application/x-apple-diskimage'" - }, - { - "id": 522, - "name": "DOC", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 100, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L100" - } - ], - "type": { - "type": "literal", - "value": "application/msword" - }, - "defaultValue": "'application/msword'" - }, - { - "id": 524, - "name": "DOCX", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 102, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L102" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document" - }, - "defaultValue": "'application/vnd.openxmlformats-officedocument.wordprocessingml.document'" - }, - { - "id": 523, - "name": "DOT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 101, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L101" - } - ], - "type": { - "type": "literal", - "value": "application/msword" - }, - "defaultValue": "'application/msword'" - }, - { - "id": 525, - "name": "DOTX", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 103, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L103" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.openxmlformats-officedocument.wordprocessingml.template" - }, - "defaultValue": "'application/vnd.openxmlformats-officedocument.wordprocessingml.template'" - }, - { - "id": 557, - "name": "DWG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 135, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L135" - } - ], - "type": { - "type": "literal", - "value": "application/acad" - }, - "defaultValue": "'application/acad'" - }, - { - "id": 558, - "name": "DXF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 136, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L136" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.dxf" - }, - "defaultValue": "'application/vnd.dxf'" - }, - { - "id": 555, - "name": "EML", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 133, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L133" - } - ], - "type": { - "type": "literal", - "value": "message/rfc822" - }, - "defaultValue": "'message/rfc822'" - }, - { - "id": 543, - "name": "EOT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 121, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L121" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-fontobject" - }, - "defaultValue": "'application/vnd.ms-fontobject'" - }, - { - "id": 552, - "name": "EPUB", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 130, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L130" - } - ], - "type": { - "type": "literal", - "value": "application/epub+zip" - }, - "defaultValue": "'application/epub+zip'" - }, - { - "id": 535, - "name": "EXE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 113, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L113" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.microsoft.portable-executable" - }, - "defaultValue": "'application/vnd.microsoft.portable-executable'" - }, - { - "id": 507, - "name": "FLAC", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 85, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L85" - } - ], - "type": { - "type": "literal", - "value": "audio/flac" - }, - "defaultValue": "'audio/flac'" - }, - { - "id": 512, - "name": "FLV", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 90, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L90" - } - ], - "type": { - "type": "literal", - "value": "video/x-flv" - }, - "defaultValue": "'video/x-flv'" - }, - { - "id": 498, - "name": "GIF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 76, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L76" - } - ], - "type": { - "type": "literal", - "value": "image/gif" - }, - "defaultValue": "'image/gif'" - }, - { - "id": 567, - "name": "GO", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 145, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L145" - } - ], - "type": { - "type": "literal", - "value": "text/plain" - }, - "defaultValue": "'text/plain'" - }, - { - "id": 519, - "name": "GZ", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 97, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L97" - } - ], - "type": { - "type": "literal", - "value": "application/gzip" - }, - "defaultValue": "'application/gzip'" - }, - { - "id": 489, - "name": "HTM", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 67, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L67" - } - ], - "type": { - "type": "literal", - "value": "text/html" - }, - "defaultValue": "'text/html'" - }, - { - "id": 488, - "name": "HTML", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 66, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L66" - } - ], - "type": { - "type": "literal", - "value": "text/html" - }, - "defaultValue": "'text/html'" - }, - { - "id": 502, - "name": "ICO", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 80, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L80" - } - ], - "type": { - "type": "literal", - "value": "image/vnd.microsoft.icon" - }, - "defaultValue": "'image/vnd.microsoft.icon'" - }, - { - "id": 562, - "name": "JAVA", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 140, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L140" - } - ], - "type": { - "type": "literal", - "value": "text/x-java-source" - }, - "defaultValue": "'text/x-java-source'" - }, - { - "id": 494, - "name": "JAVASCRIPT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 72, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L72" - } - ], - "type": { - "type": "literal", - "value": "application/javascript" - }, - "defaultValue": "'application/javascript'" - }, - { - "id": 497, - "name": "JPEG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 75, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L75" - } - ], - "type": { - "type": "literal", - "value": "image/jpeg" - }, - "defaultValue": "'image/jpeg'" - }, - { - "id": 496, - "name": "JPG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 74, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L74" - } - ], - "type": { - "type": "literal", - "value": "image/jpeg" - }, - "defaultValue": "'image/jpeg'" - }, - { - "id": 493, - "name": "JSON", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 71, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L71" - } - ], - "type": { - "type": "literal", - "value": "application/json" - }, - "defaultValue": "'application/json'" - }, - { - "id": 544, - "name": "JSONLD", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 122, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L122" - } - ], - "type": { - "type": "literal", - "value": "application/ld+json" - }, - "defaultValue": "'application/ld+json'" - }, - { - "id": 570, - "name": "KT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 148, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L148" - } - ], - "type": { - "type": "literal", - "value": "text/plain" - }, - "defaultValue": "'text/plain'" - }, - { - "id": 549, - "name": "M3U8", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 127, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L127" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.apple.mpegurl" - }, - "defaultValue": "'application/vnd.apple.mpegurl'" - }, - { - "id": 506, - "name": "M4A", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 84, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L84" - } - ], - "type": { - "type": "literal", - "value": "audio/mp4" - }, - "defaultValue": "'audio/mp4'" - }, - { - "id": 545, - "name": "MAP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 123, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L123" - } - ], - "type": { - "type": "literal", - "value": "application/json" - }, - "defaultValue": "'application/json'" - }, - { - "id": 514, - "name": "MKV", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 92, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L92" - } - ], - "type": { - "type": "literal", - "value": "video/x-matroska" - }, - "defaultValue": "'video/x-matroska'" - }, - { - "id": 510, - "name": "MOV", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 88, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L88" - } - ], - "type": { - "type": "literal", - "value": "video/quicktime" - }, - "defaultValue": "'video/quicktime'" - }, - { - "id": 503, - "name": "MP3", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 81, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L81" - } - ], - "type": { - "type": "literal", - "value": "audio/mpeg" - }, - "defaultValue": "'audio/mpeg'" - }, - { - "id": 508, - "name": "MP4", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 86, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L86" - } - ], - "type": { - "type": "literal", - "value": "video/mp4" - }, - "defaultValue": "'video/mp4'" - }, - { - "id": 548, - "name": "MPD", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 126, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L126" - } - ], - "type": { - "type": "literal", - "value": "application/dash+xml" - }, - "defaultValue": "'application/dash+xml'" - }, - { - "id": 556, - "name": "MSG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 134, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L134" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-outlook" - }, - "defaultValue": "'application/vnd.ms-outlook'" - }, - { - "id": 537, - "name": "MSI", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 115, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L115" - } - ], - "type": { - "type": "literal", - "value": "application/x-msdownload" - }, - "defaultValue": "'application/x-msdownload'" - }, - { - "id": 559, - "name": "OBJ", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 137, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L137" - } - ], - "type": { - "type": "literal", - "value": "application/octet-stream" - }, - "defaultValue": "'application/octet-stream'" - }, - { - "id": 505, - "name": "OGG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 83, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L83" - } - ], - "type": { - "type": "literal", - "value": "audio/ogg" - }, - "defaultValue": "'audio/ogg'" - }, - { - "id": 542, - "name": "OTF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 120, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L120" - } - ], - "type": { - "type": "literal", - "value": "font/otf" - }, - "defaultValue": "'font/otf'" - }, - { - "id": 521, - "name": "PDF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 99, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L99" - } - ], - "type": { - "type": "literal", - "value": "application/pdf" - }, - "defaultValue": "'application/pdf'" - }, - { - "id": 568, - "name": "PHP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 146, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L146" - } - ], - "type": { - "type": "literal", - "value": "application/x-httpd-php" - }, - "defaultValue": "'application/x-httpd-php'" - }, - { - "id": 495, - "name": "PNG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 73, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L73" - } - ], - "type": { - "type": "literal", - "value": "image/png" - }, - "defaultValue": "'image/png'" - }, - { - "id": 531, - "name": "POT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 109, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L109" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-powerpoint" - }, - "defaultValue": "'application/vnd.ms-powerpoint'" - }, - { - "id": 533, - "name": "POTX", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 111, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L111" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.openxmlformats-officedocument.presentationml.template" - }, - "defaultValue": "'application/vnd.openxmlformats-officedocument.presentationml.template'" - }, - { - "id": 534, - "name": "PPSX", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 112, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L112" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.openxmlformats-officedocument.presentationml.slideshow" - }, - "defaultValue": "'application/vnd.openxmlformats-officedocument.presentationml.slideshow'" - }, - { - "id": 530, - "name": "PPT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 108, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L108" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-powerpoint" - }, - "defaultValue": "'application/vnd.ms-powerpoint'" - }, - { - "id": 532, - "name": "PPTX", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 110, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L110" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.openxmlformats-officedocument.presentationml.presentation" - }, - "defaultValue": "'application/vnd.openxmlformats-officedocument.presentationml.presentation'" - }, - { - "id": 561, - "name": "PY", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 139, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L139" - } - ], - "type": { - "type": "literal", - "value": "text/x-python" - }, - "defaultValue": "'text/x-python'" - }, - { - "id": 516, - "name": "RAR", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 94, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L94" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.rar" - }, - "defaultValue": "'application/vnd.rar'" - }, - { - "id": 566, - "name": "RB", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 144, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L144" - } - ], - "type": { - "type": "literal", - "value": "application/x-ruby" - }, - "defaultValue": "'application/x-ruby'" - }, - { - "id": 571, - "name": "RTF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 149, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L149" - } - ], - "type": { - "type": "literal", - "value": "application/rtf" - }, - "defaultValue": "'application/rtf'" - }, - { - "id": 560, - "name": "STL", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 138, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L138" - } - ], - "type": { - "type": "literal", - "value": "application/sla" - }, - "defaultValue": "'application/sla'" - }, - { - "id": 501, - "name": "SVG", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 79, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L79" - } - ], - "type": { - "type": "literal", - "value": "image/svg+xml" - }, - "defaultValue": "'image/svg+xml'" - }, - { - "id": 551, - "name": "SWF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 129, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L129" - } - ], - "type": { - "type": "literal", - "value": "application/x-shockwave-flash" - }, - "defaultValue": "'application/x-shockwave-flash'" - }, - { - "id": 569, - "name": "SWIFT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 147, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L147" - } - ], - "type": { - "type": "literal", - "value": "text/x-swift" - }, - "defaultValue": "'text/x-swift'" - }, - { - "id": 518, - "name": "TAR", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 96, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L96" - } - ], - "type": { - "type": "literal", - "value": "application/x-tar" - }, - "defaultValue": "'application/x-tar'" - }, - { - "id": 550, - "name": "TORRENT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 128, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L128" - } - ], - "type": { - "type": "literal", - "value": "application/x-bittorrent" - }, - "defaultValue": "'application/x-bittorrent'" - }, - { - "id": 547, - "name": "TS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 125, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L125" - } - ], - "type": { - "type": "literal", - "value": "video/mp2t" - }, - "defaultValue": "'video/mp2t'" - }, - { - "id": 541, - "name": "TTF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 119, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L119" - } - ], - "type": { - "type": "literal", - "value": "font/ttf" - }, - "defaultValue": "'font/ttf'" - }, - { - "id": 487, - "name": "TXT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 65, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L65" - } - ], - "type": { - "type": "literal", - "value": "text/plain" - }, - "defaultValue": "'text/plain'" - }, - { - "id": 546, - "name": "WASM", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 124, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L124" - } - ], - "type": { - "type": "literal", - "value": "application/wasm" - }, - "defaultValue": "'application/wasm'" - }, - { - "id": 504, - "name": "WAV", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 82, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L82" - } - ], - "type": { - "type": "literal", - "value": "audio/wav" - }, - "defaultValue": "'audio/wav'" - }, - { - "id": 513, - "name": "WEBM", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 91, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L91" - } - ], - "type": { - "type": "literal", - "value": "video/webm" - }, - "defaultValue": "'video/webm'" - }, - { - "id": 500, - "name": "WEBP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 78, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L78" - } - ], - "type": { - "type": "literal", - "value": "image/webp" - }, - "defaultValue": "'image/webp'" - }, - { - "id": 511, - "name": "WMV", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 89, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L89" - } - ], - "type": { - "type": "literal", - "value": "video/x-ms-wmv" - }, - "defaultValue": "'video/x-ms-wmv'" - }, - { - "id": 539, - "name": "WOFF", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 117, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L117" - } - ], - "type": { - "type": "literal", - "value": "font/woff" - }, - "defaultValue": "'font/woff'" - }, - { - "id": 540, - "name": "WOFF2", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 118, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L118" - } - ], - "type": { - "type": "literal", - "value": "font/woff2" - }, - "defaultValue": "'font/woff2'" - }, - { - "id": 526, - "name": "XLS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 104, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L104" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-excel" - }, - "defaultValue": "'application/vnd.ms-excel'" - }, - { - "id": 529, - "name": "XLSM", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 107, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L107" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-excel.sheet.macroEnabled.12" - }, - "defaultValue": "'application/vnd.ms-excel.sheet.macroEnabled.12'" - }, - { - "id": 528, - "name": "XLSX", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 106, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L106" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" - }, - "defaultValue": "'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'" - }, - { - "id": 527, - "name": "XLT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 105, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L105" - } - ], - "type": { - "type": "literal", - "value": "application/vnd.ms-excel" - }, - "defaultValue": "'application/vnd.ms-excel'" - }, - { - "id": 492, - "name": "XML", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 70, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L70" - } - ], - "type": { - "type": "literal", - "value": "application/xml" - }, - "defaultValue": "'application/xml'" - }, - { - "id": 515, - "name": "ZIP", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 93, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L93" - } - ], - "type": { - "type": "literal", - "value": "application/zip" - }, - "defaultValue": "'application/zip'" - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 517, - 573, - 572, - 553, - 509, - 538, - 499, - 520, - 563, - 564, - 565, - 490, - 491, - 536, - 554, - 522, - 524, - 523, - 525, - 557, - 558, - 555, - 543, - 552, - 535, - 507, - 512, - 498, - 567, - 519, - 489, - 488, - 502, - 562, - 494, - 497, - 496, - 493, - 544, - 570, - 549, - 506, - 545, - 514, - 510, - 503, - 508, - 548, - 556, - 537, - 559, - 505, - 542, - 521, - 568, - 495, - 531, - 533, - 534, - 530, - 532, - 561, - 516, - 566, - 571, - 560, - 501, - 551, - 569, - 518, - 550, - 547, - 541, - 487, - 546, - 504, - 513, - 500, - 511, - 539, - 540, - 526, - 529, - 528, - 527, - 492, - 515 - ] - } - ], - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 64, - "character": 26, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L64" - } - ] - } - }, - "defaultValue": "..." - }, - { - "id": 474, - "name": "REQUEST_METHOD", - "variant": "declaration", - "kind": 32, - "flags": { - "isConst": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 52, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L52" - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 475, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 481, - "name": "ALL", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 58, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L58" - } - ], - "type": { - "type": "literal", - "value": "ALL" - }, - "defaultValue": "'ALL'" - }, - { - "id": 479, - "name": "DELETE", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 56, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L56" - } - ], - "type": { - "type": "literal", - "value": "DELETE" - }, - "defaultValue": "'DELETE'" - }, - { - "id": 476, - "name": "GET", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 53, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L53" - } - ], - "type": { - "type": "literal", - "value": "GET" - }, - "defaultValue": "'GET'" - }, - { - "id": 483, - "name": "HEAD", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 60, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L60" - } - ], - "type": { - "type": "literal", - "value": "HEAD" - }, - "defaultValue": "'HEAD'" - }, - { - "id": 482, - "name": "OPTIONS", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 59, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L59" - } - ], - "type": { - "type": "literal", - "value": "OPTIONS" - }, - "defaultValue": "'OPTIONS'" - }, - { - "id": 480, - "name": "PATCH", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 57, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L57" - } - ], - "type": { - "type": "literal", - "value": "PATCH" - }, - "defaultValue": "'PATCH'" - }, - { - "id": 477, - "name": "POST", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 54, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L54" - } - ], - "type": { - "type": "literal", - "value": "POST" - }, - "defaultValue": "'POST'" - }, - { - "id": 478, - "name": "PUT", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 55, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L55" - } - ], - "type": { - "type": "literal", - "value": "PUT" - }, - "defaultValue": "'PUT'" - }, - { - "id": 484, - "name": "SEARCH", - "variant": "declaration", - "kind": 1024, - "flags": { - "isReadonly": true - }, - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 61, - "character": 2, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L61" - } - ], - "type": { - "type": "literal", - "value": "SEARCH" - }, - "defaultValue": "'SEARCH'" - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 481, - 479, - 476, - 483, - 482, - 480, - 477, - 478, - 484 - ] - } - ], - "sources": [ - { - "fileName": "lib/const/http.ts", - "line": 52, - "character": 30, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/const/http.ts#L52" - } - ] - } - }, - "defaultValue": "..." - }, - { - "id": 381, - "name": "_toString", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 1, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L1" - } - ], - "signatures": [ - { - "id": 382, - "name": "_toString", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Returns a string representation of an object." - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 1, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L1" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 420, - "name": "awaitTo", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 138, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L138" - } - ], - "signatures": [ - { - "id": 421, - "name": "awaitTo", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A helper function that wraps a Promise and returns a tuple of [error, data].\nIf the Promise resolves successfully, the first element of the tuple will be null, and the second element will be the resolved value.\nIf the Promise is rejected, the first element of the tuple will be the error, and the second element will be undefined." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A Promise that resolves to a tuple of [error, data]." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 138, - "character": 23, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L138" - } - ], - "typeParameter": [ - { - "id": 422, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ], - "parameters": [ - { - "id": 423, - "name": "promise", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The Promise to wrap." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "reference", - "target": 422, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "Promise", - "package": "typescript" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "tuple", - "elements": [ - { - "type": "intrinsic", - "name": "unknown" - }, - { - "type": "union", - "types": [ - { - "type": "intrinsic", - "name": "undefined" - }, - { - "type": "reference", - "target": 422, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ] - } - ] - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 325, - "name": "basename", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 139, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L139" - } - ], - "signatures": [ - { - "id": 326, - "name": "basename", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Returns the last portion of a path, similar to the Unix basename command.\nTrims the query string if it exists.\nOptionally, removes a suffix from the result." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The basename of the path." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 139, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L139" - } - ], - "parameters": [ - { - "id": 327, - "name": "path", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The path to get the basename from." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 328, - "name": "suffix", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An optional suffix to remove from the basename." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 300, - "name": "capitalize", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 7, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L7" - } - ], - "signatures": [ - { - "id": 301, - "name": "capitalize", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Capitalizes the first letter of a string." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "- The capitalized string." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 7, - "character": 26, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L7" - } - ], - "typeParameter": [ - { - "id": 302, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "parameters": [ - { - "id": 303, - "name": "target", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The string to be capitalized." - } - ] - }, - "type": { - "type": "reference", - "target": 302, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Capitalize" - }, - "typeArguments": [ - { - "type": "reference", - "target": 302, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "Capitalize", - "package": "typescript" - } - } - ] - }, - { - "id": 402, - "name": "compose", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 91, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L91" - } - ], - "signatures": [ - { - "id": 403, - "name": "compose", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Takes a series of functions and returns a new function that runs these functions in reverse sequence.\nIf a function returns a Promise, the next function is called with the resolved value." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A new function that takes any number of arguments and composes them through " - }, - { - "kind": "code", - "text": "`fns`" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 91, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L91" - } - ], - "parameters": [ - { - "id": 404, - "name": "fns", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The functions to compose." - } - ] - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 405, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 71, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L71" - } - ], - "signatures": [ - { - "id": 406, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 71, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L71" - } - ], - "parameters": [ - { - "id": 407, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - ] - }, - { - "id": 322, - "name": "convertParamsRouterToRegExp", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 123, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L123" - } - ], - "signatures": [ - { - "id": 323, - "name": "convertParamsRouterToRegExp", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "convert params routes to regular expressions" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "null or An array contains the RegExp that matches the params and the path for each params parameter" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 123, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L123" - } - ], - "parameters": [ - { - "id": 324, - "name": "path", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "a params paths" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "array", - "elementType": { - "type": "union", - "types": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "RegExp" - }, - "name": "RegExp", - "package": "typescript" - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - } - ] - } - } - ] - }, - { - "id": 40, - "name": "defineDebounceFn", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 23, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L23" - } - ], - "signatures": [ - { - "id": 41, - "name": "defineDebounceFn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "DefineDebounceFn is a function that creates a debounced function." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "- The debounce function." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 23, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L23" - } - ], - "parameters": [ - { - "id": 42, - "name": "fn", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The function to be debounced." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "CacheResultFunc" - }, - "name": "CacheResultFunc", - "package": "@cc-heart/utils" - } - }, - { - "id": 43, - "name": "delay", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The delay in milliseconds to wait before the debounced function is called. Default is 500ms." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 44, - "name": "immediate", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether the debounced function should be called immediately before the delay. Default is false." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - }, - { - "id": 20, - "name": "defineOnceFn", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 51, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L51" - } - ], - "signatures": [ - { - "id": 21, - "name": "defineOnceFn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Creates a function that can only be called once." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "- A new function that can only be called once." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 51, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L51" - } - ], - "typeParameter": [ - { - "id": 22, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {} - } - ], - "parameters": [ - { - "id": 23, - "name": "fn", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The function to be called once." - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 24, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 51, - "character": 36, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L51" - } - ], - "signatures": [ - { - "id": 25, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 51, - "character": 36, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L51" - } - ], - "parameters": [ - { - "id": 26, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "target": 22, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ] - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 27, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 57, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L57" - } - ], - "signatures": [ - { - "id": 28, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 57, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L57" - } - ], - "parameters": [ - { - "id": 29, - "name": "this", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - }, - { - "id": 30, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "reference", - "target": 22, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ] - } - } - } - ] - }, - { - "id": 35, - "name": "defineSinglePromiseFn", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 101, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L101" - } - ], - "signatures": [ - { - "id": 36, - "name": "defineSinglePromiseFn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "defineSinglePromiseFn ensures that the provided function can only be called once at a time.\nIf the function is invoked while it's still executing, it returns the same promise, avoiding multiple calls." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function that ensures the provided function is only executed once and returns a promise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 101, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L101" - } - ], - "parameters": [ - { - "id": 37, - "name": "fn", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The function to be wrapped, which returns a promise." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 38, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 104, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L104" - } - ], - "signatures": [ - { - "id": 39, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 104, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L104" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - } - } - } - ] - }, - { - "id": 31, - "name": "defineThrottleFn", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 72, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L72" - } - ], - "signatures": [ - { - "id": 32, - "name": "defineThrottleFn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "defineThrottleFn is a function that creates a throttled function." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "- The throttled function." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/define.ts", - "line": 72, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/define.ts#L72" - } - ], - "parameters": [ - { - "id": 33, - "name": "fn", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - }, - { - "id": 34, - "name": "delay", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "500" - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "CacheResultFunc" - }, - "name": "CacheResultFunc", - "package": "@cc-heart/utils" - } - } - ] - }, - { - "id": 386, - "name": "executeConcurrency", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 4, - "character": 22, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L4" - } - ], - "signatures": [ - { - "id": 387, - "name": "executeConcurrency", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 4, - "character": 22, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L4" - } - ], - "parameters": [ - { - "id": 388, - "name": "tasks", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - } - }, - { - "id": 389, - "name": "maxConcurrency", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "union", - "types": [ - { - "type": "literal", - "value": null - }, - { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 390, - "name": "executeQueue", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 35, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L35" - } - ], - "signatures": [ - { - "id": 391, - "name": "executeQueue", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Invokes a queue." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "- A promise that resolves when all tasks are completed." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 35, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L35" - } - ], - "parameters": [ - { - "id": 392, - "name": "taskArray", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array of tasks to be executed." - } - ] - }, - "type": { - "type": "array", - "elementType": { - "type": "reflection", - "declaration": { - "id": 393, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 36, - "character": 19, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L36" - } - ], - "signatures": [ - { - "id": 394, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 36, - "character": 19, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L36" - } - ], - "parameters": [ - { - "id": 395, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "void" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 3, - "name": "formatDate", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 57, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L57" - } - ], - "signatures": [ - { - "id": 4, - "name": "formatDate", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Formats a Date object according to the specified formatter string." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The formatted date string" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst date = new Date(2024, 0, 1, 12, 30, 45);\nformatDate(date, 'YYYY-MM-DD hh:mm:ss'); // Returns \"2024-01-01 12:30:45\"\nformatDate(date, 'DD/MM/YYYY', true); // Returns \"01/01/2024\" in UTC\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 57, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L57" - } - ], - "parameters": [ - { - "id": 5, - "name": "date", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The Date object to format" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Date" - }, - "name": "Date", - "package": "typescript" - } - }, - { - "id": 6, - "name": "formatter", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The format string. Supports YYYY (year), MM (month), DD (day), hh (hours), mm (minutes), ss (seconds)" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "'YYYY-MM-DD hh:mm:ss'" - }, - { - "id": 7, - "name": "utc", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Whether to use UTC time instead of local time" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "boolean" - }, - "defaultValue": "false" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 16, - "name": "formatDateByArray", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 160, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L160" - } - ], - "signatures": [ - { - "id": 17, - "name": "formatDateByArray", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Formats a date based on an array of numbers, with optional formatting string\n\nThis function expects an array containing year, month, day, hour, minute, and second values. If the array is invalid or does not contain the necessary values, it logs a warning and returns 'Invalid Date'.\nThe function uses the slice method to create a new array containing only the first six elements, and decrements the month value by 1 to convert it from a 1-based index to a 0-based index used by the Date object.\nIt then creates a new Date object using the elements of the new array. If the date is invalid, it logs a warning and returns the date as a string.\nFinally, the function formats the date according to an optional formatting string and returns the formatted date string." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The formatted date string." - } - ] - }, - { - "tag": "@throws", - "content": [ - { - "kind": "text", - "text": "Throws an error if the array is invalid or does not contain the necessary values." - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst dateArray = [2024, 2, 19, 10, 30, 0];\nconst formattedDate = formatDateByArray(dateArray, 'MMMM D, YYYY, h:mm A');\nconsole.log(formattedDate);\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 160, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L160" - } - ], - "parameters": [ - { - "id": 18, - "name": "array", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The array representing the date. This array should contain year, month, day, hour, minute, and second values." - } - ] - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "number" - } - } - }, - { - "id": 19, - "name": "formatter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional. A specific format string to format the date. Defaults to 'YYYY-MM-DD HH:mm:ss'." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 8, - "name": "formatDateByTimeStamp", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 105, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L105" - } - ], - "signatures": [ - { - "id": 9, - "name": "formatDateByTimeStamp", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Formats a date based on a given timestamp." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The formatted date string." - } - ] - }, - { - "tag": "@throws", - "content": [ - { - "kind": "text", - "text": "Throws an error if the timestamp is invalid or out of range." - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst timestamp = new Date().getTime();\nconst formattedDate = formatDateByTimeStamp(timestamp);\nconsole.log(formattedDate);\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 105, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L105" - } - ], - "parameters": [ - { - "id": 10, - "name": "timeStamp", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The timestamp to be formatted, in milliseconds." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 11, - "name": "formatter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional. A specific format string to format the date. Defaults to 'YYYY-MM-DD HH:mm:ss'." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 12, - "name": "formatDateTimeByString", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 131, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L131" - } - ], - "signatures": [ - { - "id": 13, - "name": "formatDateTimeByString", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Formats a date string into a specified date time format" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The formatted date string." - } - ] - }, - { - "tag": "@throws", - "content": [ - { - "kind": "text", - "text": "Throws an error if the date string is invalid or cannot be parsed into a Date object." - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst dateString = '2024-02-19T10:30:00Z';\nconst formattedDateTime = formatDateTimeByString(dateString, 'MMMM D, YYYY, h:mm A');\nconsole.log(formattedDateTime);\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 131, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L131" - } - ], - "parameters": [ - { - "id": 14, - "name": "dateString", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "A string representing the date." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 15, - "name": "formatter", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Optional. A specific format string to format the date. Defaults to 'YYYY-MM-DD HH:mm:ss'." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 607, - "name": "formatErrorToString", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 12, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L12" - } - ], - "signatures": [ - { - "id": 608, - "name": "formatErrorToString", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Formats an error object into a string representation." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The formatted error message." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 12, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L12" - } - ], - "parameters": [ - { - "id": 609, - "name": "error", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The error to format. It can be an " - }, - { - "kind": "code", - "text": "`Error`" - }, - { - "kind": "text", - "text": " instance, a string, or another object." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 610, - "name": "defaultErrorString", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The default error message if the error cannot be formatted." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - }, - "defaultValue": "''" - }, - { - "id": 611, - "name": "opts", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Additional options." - } - ] - }, - "type": { - "type": "reflection", - "declaration": { - "id": 612, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "children": [ - { - "id": 613, - "name": "errorLimit", - "variant": "declaration", - "kind": 1024, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The maximum number of stack trace lines to include." - } - ] - }, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 16, - "character": 4, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L16" - } - ], - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "8" - } - ], - "groups": [ - { - "title": "Properties", - "children": [ - 613 - ] - } - ], - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 15, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L15" - } - ] - } - }, - "defaultValue": "..." - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 1, - "name": "getCurrentTimeISOString", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 25, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L25" - } - ], - "signatures": [ - { - "id": 2, - "name": "getCurrentTimeISOString", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Returns the current time in ISO string format." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The current time in ISO string format." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/date.ts", - "line": 25, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/date.ts#L25" - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 365, - "name": "hasOwn", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 137, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L137" - } - ], - "signatures": [ - { - "id": 366, - "name": "hasOwn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given object has its own property." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the object has its own property, otherwise false." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 137, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L137" - } - ], - "parameters": [ - { - "id": 367, - "name": "obj", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The object to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "object" - } - }, - { - "id": 368, - "name": "prop", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The property to check." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 614, - "name": "invokeWithErrorHandlingFactory", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 51, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L51" - } - ], - "signatures": [ - { - "id": 615, - "name": "invokeWithErrorHandlingFactory", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Creates a function factory with error handling capabilities" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns a new function that can execute target functions with automatic error handling" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\nconst errorHandler = (error) => console.error(error);\nconst safeExecute = invokeWithErrorHandlingFactory(errorHandler);\n\n// Execute regular function\nsafeExecute(() => { throw new Error('test') });\n\n// Execute async function\nsafeExecute(async () => { throw new Error('async test') });\n```" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 51, - "character": 46, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L51" - } - ], - "parameters": [ - { - "id": 616, - "name": "handleError", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Error handling function to process exceptions during execution" - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 617, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 52, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L52" - } - ], - "signatures": [ - { - "id": 618, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/error-handler.ts", - "line": 52, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/error-handler.ts#L52" - } - ], - "parameters": [ - { - "id": 619, - "name": "handler", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - }, - { - "id": 620, - "name": "context", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - }, - { - "id": 621, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - ] - }, - { - "id": 341, - "name": "isBool", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 49, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L49" - } - ], - "signatures": [ - { - "id": 342, - "name": "isBool", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the provided value is a boolean." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is a boolean, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 49, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L49" - } - ], - "parameters": [ - { - "id": 343, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "boolean" - } - } - } - ] - }, - { - "id": 359, - "name": "isEffectiveNumber", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 110, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L110" - } - ], - "signatures": [ - { - "id": 360, - "name": "isEffectiveNumber", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "determines if it is a valid value other than NaN" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 110, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L110" - } - ], - "parameters": [ - { - "id": 361, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "number" - } - } - } - ] - }, - { - "id": 353, - "name": "isFalsy", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 91, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L91" - } - ], - "signatures": [ - { - "id": 354, - "name": "isFalsy", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if a value is falsy." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is falsy, otherwise false." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 91, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L91" - } - ], - "parameters": [ - { - "id": 355, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "literal", - "value": false - } - } - } - ] - }, - { - "id": 335, - "name": "isFn", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 29, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L29" - } - ], - "signatures": [ - { - "id": 336, - "name": "isFn", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is a function." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is a function, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 29, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L29" - } - ], - "parameters": [ - { - "id": 337, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to be checked." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Function" - }, - "name": "Function", - "package": "typescript" - } - } - } - ] - }, - { - "id": 378, - "name": "isMobile", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 180, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L180" - } - ], - "signatures": [ - { - "id": 379, - "name": "isMobile", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Determines whether the provided user agent string belongs to a mobile device." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the UA indicates a mobile device, otherwise false." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 180, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L180" - } - ], - "parameters": [ - { - "id": 380, - "name": "ua", - "variant": "param", - "kind": 32768, - "flags": { - "isOptional": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The user agent string to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 383, - "name": "isNil", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 73, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L73" - } - ], - "signatures": [ - { - "id": 384, - "name": "isNil", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is null." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is null, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 73, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L73" - } - ], - "parameters": [ - { - "id": 385, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "literal", - "value": null - } - } - } - ] - }, - { - "id": 347, - "name": "isNull", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 69, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L69" - } - ], - "signatures": [ - { - "id": 348, - "name": "isNull", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is null." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is null, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 69, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L69" - } - ], - "parameters": [ - { - "id": 349, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "literal", - "value": null - } - } - } - ] - }, - { - "id": 356, - "name": "isNumber", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 101, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L101" - } - ], - "signatures": [ - { - "id": 357, - "name": "isNumber", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is a number." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is a number, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 101, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L101" - } - ], - "parameters": [ - { - "id": 358, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to be checked." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "number" - } - } - } - ] - }, - { - "id": 329, - "name": "isObject", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 9, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L9" - } - ], - "signatures": [ - { - "id": 330, - "name": "isObject", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is an object." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is an object, otherwise false." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 9, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L9" - } - ], - "parameters": [ - { - "id": 331, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to be checked." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "object" - } - } - } - ] - }, - { - "id": 350, - "name": "isPrimitive", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 81, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L81" - } - ], - "signatures": [ - { - "id": 351, - "name": "isPrimitive", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Determines whether a value is a primitive." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " if the value is a primitive, " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": " otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 81, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L81" - } - ], - "parameters": [ - { - "id": 352, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 362, - "name": "isPromise", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 121, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L121" - } - ], - "signatures": [ - { - "id": 363, - "name": "isPromise", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if a value is a Promise." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns " - }, - { - "kind": "code", - "text": "`true`" - }, - { - "kind": "text", - "text": " if the value is a Promise, else " - }, - { - "kind": "code", - "text": "`false`" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 121, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L121" - } - ], - "parameters": [ - { - "id": 364, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - } - ] - }, - { - "id": 372, - "name": "isPropertyKey", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 159, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L159" - } - ], - "signatures": [ - { - "id": 373, - "name": "isPropertyKey", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if a given value is a valid PropertyKey.\nA PropertyKey is a string, number, or symbol that can be used as a property name." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "True if the value is a PropertyKey, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 159, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L159" - } - ], - "parameters": [ - { - "id": 374, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - } - } - } - ] - }, - { - "id": 338, - "name": "isStr", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 39, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L39" - } - ], - "signatures": [ - { - "id": 339, - "name": "isStr", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is a string." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is a string, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 39, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L39" - } - ], - "parameters": [ - { - "id": 340, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to be checked." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "string" - } - } - } - ] - }, - { - "id": 332, - "name": "isSymbol", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 20, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L20" - } - ], - "signatures": [ - { - "id": 333, - "name": "isSymbol", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if the given value is an symbol." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is an object, otherwise false." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 20, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L20" - } - ], - "parameters": [ - { - "id": 334, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to be checked." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "symbol" - } - } - } - ] - }, - { - "id": 344, - "name": "isUndef", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 59, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L59" - } - ], - "signatures": [ - { - "id": 345, - "name": "isUndef", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if a value is undefined." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the value is undefined, otherwise false." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 59, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L59" - } - ], - "parameters": [ - { - "id": 346, - "name": "val", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The value to check." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "unknown" - } - } - ], - "type": { - "type": "predicate", - "name": "val", - "asserts": false, - "targetType": { - "type": "intrinsic", - "name": "undefined" - } - } - } - ] - }, - { - "id": 369, - "name": "isValidArray", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 147, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L147" - } - ], - "signatures": [ - { - "id": 370, - "name": "isValidArray", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "An array is considered valid if it is an array and its length is greater than or equal to 0." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "Returns true if the array is valid, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 147, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L147" - } - ], - "parameters": [ - { - "id": 371, - "name": "arr", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The array to be checked." - } - ] - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "unknown" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 375, - "name": "isValidDate", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 170, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L170" - } - ], - "signatures": [ - { - "id": 376, - "name": "isValidDate", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Checks if a given date is valid." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "True if the date is valid, false otherwise." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/validate.ts", - "line": 170, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/validate.ts#L170" - } - ], - "parameters": [ - { - "id": 377, - "name": "date", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The date to check." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Date" - }, - "name": "Date", - "package": "typescript" - } - } - ], - "type": { - "type": "intrinsic", - "name": "boolean" - } - } - ] - }, - { - "id": 292, - "name": "mulSplit", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 26, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L26" - } - ], - "signatures": [ - { - "id": 293, - "name": "mulSplit", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [], - "blockTags": [ - { - "tag": "@description", - "content": [ - { - "kind": "text", - "text": "Add the number of cuts based on the original split and return all subsets after the cut" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "a new split array, length is num + 1" - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 26, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L26" - } - ], - "parameters": [ - { - "id": 294, - "name": "str", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "need to split of primitive string" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 295, - "name": "splitStr", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "split params" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 296, - "name": "num", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "split limit" - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - }, - "defaultValue": "-1" - } - ], - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "string" - } - } - } - ] - }, - { - "id": 287, - "name": "noop", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/shard.ts", - "line": 6, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/shard.ts#L6" - } - ], - "signatures": [ - { - "id": 288, - "name": "noop", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "This function does nothing." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "No return value." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/shard.ts", - "line": 6, - "character": 20, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/shard.ts#L6" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 318, - "name": "objectToQueryString", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 102, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L102" - } - ], - "signatures": [ - { - "id": 319, - "name": "objectToQueryString", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Converts an object to a query string." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The query string representation of " - }, - { - "kind": "code", - "text": "`data`" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 102, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L102" - } - ], - "typeParameter": [ - { - "id": 320, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - } - ], - "parameters": [ - { - "id": 321, - "name": "input", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": 320, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - }, - { - "id": 308, - "name": "parseKey", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 4, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L4" - } - ], - "signatures": [ - { - "id": 309, - "name": "parseKey", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 4, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L4" - } - ], - "parameters": [ - { - "id": 310, - "name": "obj", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - } - }, - { - "id": 311, - "name": "key", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 312, - "name": "value", - "variant": "param", - "kind": 32768, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "any" - } - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - }, - { - "id": 396, - "name": "pipe", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 70, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L70" - } - ], - "signatures": [ - { - "id": 397, - "name": "pipe", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Takes a series of functions and returns a new function that runs these functions in sequence.\nIf a function returns a Promise, the next function is called with the resolved value." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A new function that takes any number of arguments and pipes them through " - }, - { - "kind": "code", - "text": "`fns`" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 70, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L70" - } - ], - "parameters": [ - { - "id": 398, - "name": "fns", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The functions to pipe." - } - ] - }, - "type": { - "type": "array", - "elementType": { - "type": "reference", - "target": { - "sourceFileName": "typings/helper.ts", - "qualifiedName": "Fn" - }, - "name": "Fn", - "package": "@cc-heart/utils" - } - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 399, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 71, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L71" - } - ], - "signatures": [ - { - "id": 400, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 71, - "character": 9, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L71" - } - ], - "parameters": [ - { - "id": 401, - "name": "args", - "variant": "param", - "kind": 32768, - "flags": { - "isRest": true - }, - "type": { - "type": "array", - "elementType": { - "type": "intrinsic", - "name": "any" - } - } - } - ], - "type": { - "type": "intrinsic", - "name": "any" - } - } - ] - } - } - } - ] - }, - { - "id": 313, - "name": "queryStringToObject", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 56, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L56" - } - ], - "signatures": [ - { - "id": 314, - "name": "queryStringToObject", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Converts a query string to an object." - } - ], - "blockTags": [ - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\n`queryStringToObject('foo=1&bar=2&baz=3')`\n```" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\n`queryStringToObject('foo=&bar=2&baz=3')`\n```" - } - ] - }, - { - "tag": "@example", - "content": [ - { - "kind": "code", - "text": "```ts\n`queryStringToObject('foo[0]=1&foo[1]=2&baz=3')`\n```" - } - ] - }, - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The object representation of the query string in " - }, - { - "kind": "code", - "text": "`url`" - }, - { - "kind": "text", - "text": "." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/url.ts", - "line": 56, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/url.ts#L56" - } - ], - "typeParameter": [ - { - "id": 315, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The type of the URL string." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - }, - { - "id": 316, - "name": "U", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The type of the object to return." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Record" - }, - "typeArguments": [ - { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "PropertyKey" - }, - "name": "PropertyKey", - "package": "typescript" - }, - { - "type": "intrinsic", - "name": "any" - } - ], - "name": "Record", - "package": "typescript" - }, - "default": { - "type": "reference", - "target": { - "sourceFileName": "typings/url.ts", - "qualifiedName": "QueryStringToObject" - }, - "typeArguments": [ - { - "type": "reference", - "target": 315, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "QueryStringToObject", - "package": "@cc-heart/utils" - } - } - ], - "parameters": [ - { - "id": 317, - "name": "url", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The URL string to convert." - } - ] - }, - "type": { - "type": "reference", - "target": 315, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "reference", - "target": 316, - "name": "U", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ] - }, - { - "id": 45, - "name": "random", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/random.ts", - "line": 8, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/random.ts#L8" - } - ], - "signatures": [ - { - "id": 46, - "name": "random", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Generates a random integer between min (inclusive) and max (inclusive)." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A random integer between min and max." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/random.ts", - "line": 8, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/random.ts#L8" - } - ], - "parameters": [ - { - "id": 47, - "name": "min", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The minimum value (inclusive)." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - }, - { - "id": 48, - "name": "max", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The maximum value (inclusive)." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "intrinsic", - "name": "number" - } - } - ] - }, - { - "id": 414, - "name": "setIntervalByTimeout", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 128, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L128" - } - ], - "signatures": [ - { - "id": 415, - "name": "setIntervalByTimeout", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Executes a given function repeatedly at a specified interval using setTimeout and clearTimeout." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function that, when called, clears the interval and stops the execution of the given function." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 128, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L128" - } - ], - "parameters": [ - { - "id": 416, - "name": "func", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The function to be executed." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Function" - }, - "name": "Function", - "package": "typescript" - } - }, - { - "id": 417, - "name": "delay", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The interval (in milliseconds) at which the function should be executed." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 418, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 118, - "character": 24, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L118" - } - ], - "signatures": [ - { - "id": 419, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 118, - "character": 24, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L118" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ] - }, - { - "id": 408, - "name": "setintervalByTimeout", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 102, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L102" - } - ], - "signatures": [ - { - "id": 409, - "name": "setintervalByTimeout", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Executes a given function repeatedly at a specified interval using setTimeout and clearTimeout." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A function that, when called, clears the interval and stops the execution of the given function." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 102, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L102" - } - ], - "parameters": [ - { - "id": 410, - "name": "func", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The function to be executed." - } - ] - }, - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Function" - }, - "name": "Function", - "package": "typescript" - } - }, - { - "id": 411, - "name": "delay", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The interval (in milliseconds) at which the function should be executed." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reflection", - "declaration": { - "id": 412, - "name": "__type", - "variant": "declaration", - "kind": 65536, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 118, - "character": 24, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L118" - } - ], - "signatures": [ - { - "id": 413, - "name": "__type", - "variant": "signature", - "kind": 4096, - "flags": {}, - "sources": [ - { - "fileName": "lib/workers.ts", - "line": 118, - "character": 24, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/workers.ts#L118" - } - ], - "type": { - "type": "intrinsic", - "name": "void" - } - } - ] - } - } - } - ] - }, - { - "id": 289, - "name": "sleep", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/shard.ts", - "line": 16, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/shard.ts#L16" - } - ], - "signatures": [ - { - "id": 290, - "name": "sleep", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Sleeps for a given delay." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "A promise that resolves after the delay." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/shard.ts", - "line": 16, - "character": 21, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/shard.ts#L16" - } - ], - "parameters": [ - { - "id": 291, - "name": "delay", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The delay, in milliseconds." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "number" - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Promise" - }, - "typeArguments": [ - { - "type": "intrinsic", - "name": "unknown" - } - ], - "name": "Promise", - "package": "typescript" - } - } - ] - }, - { - "id": 304, - "name": "unCapitalize", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 16, - "character": 13, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L16" - } - ], - "signatures": [ - { - "id": 305, - "name": "unCapitalize", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Returns a new string with the first character converted to lowercase." - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "- The unCapitalized string." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 16, - "character": 28, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L16" - } - ], - "typeParameter": [ - { - "id": 306, - "name": "T", - "variant": "typeParam", - "kind": 131072, - "flags": {}, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "parameters": [ - { - "id": 307, - "name": "target", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The string to be unCapitalized." - } - ] - }, - "type": { - "type": "reference", - "target": 306, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - } - ], - "type": { - "type": "reference", - "target": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "Uncapitalize" - }, - "typeArguments": [ - { - "type": "reference", - "target": 306, - "name": "T", - "package": "@cc-heart/utils", - "refersToTypeParameter": true - } - ], - "name": "Uncapitalize", - "package": "typescript" - } - } - ] - }, - { - "id": 297, - "name": "underlineToHump", - "variant": "declaration", - "kind": 64, - "flags": {}, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 43, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L43" - } - ], - "signatures": [ - { - "id": 298, - "name": "underlineToHump", - "variant": "signature", - "kind": 4096, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "Converts an underline-separated string to camel case.\ne.g. underlineToHump('hello_word') => 'helloWord'" - } - ], - "blockTags": [ - { - "tag": "@returns", - "content": [ - { - "kind": "text", - "text": "The camel case version of the input string." - } - ] - } - ] - }, - "sources": [ - { - "fileName": "lib/string.ts", - "line": 43, - "character": 16, - "url": "https://github.com/cenova-labs/utils/blob/6d2c7b3c04154c9a61818486d649ad6080d96cd7/lib/string.ts#L43" - } - ], - "parameters": [ - { - "id": 299, - "name": "target", - "variant": "param", - "kind": 32768, - "flags": {}, - "comment": { - "summary": [ - { - "kind": "text", - "text": "The underline-separated string to convert." - } - ] - }, - "type": { - "type": "intrinsic", - "name": "string" - } - } - ], - "type": { - "type": "intrinsic", - "name": "string" - } - } - ] - } - ], - "groups": [ - { - "title": "Classes", - "children": [ - 574, - 140 - ] - }, - { - "title": "Interfaces", - "children": [ - 95, - 97, - 49 - ] - }, - { - "title": "Type Aliases", - "children": [ - 91, - 81, - 85 - ] - }, - { - "title": "Variables", - "children": [ - 424, - 485, - 474 - ] - }, - { - "title": "Functions", - "children": [ - 381, - 420, - 325, - 300, - 402, - 322, - 40, - 20, - 35, - 31, - 386, - 390, - 3, - 16, - 8, - 12, - 607, - 1, - 365, - 614, - 341, - 359, - 353, - 335, - 378, - 383, - 347, - 356, - 329, - 350, - 362, - 372, - 338, - 332, - 344, - 369, - 375, - 292, - 287, - 318, - 308, - 396, - 313, - 45, - 414, - 408, - 289, - 304, - 297 - ] - } - ], - "packageName": "@cc-heart/utils", - "readme": [ - { - "kind": "text", - "text": "# @cc-heart/utils\n\n[Docs](https://cenova-labs.github.io/utils/)\n\nA library of JavaScript tools\n\n## Install\n\n" - }, - { - "kind": "code", - "text": "```shell\nnpm install @cc-heart/utils\n```" - }, - { - "kind": "text", - "text": "\n\n## Usage\n\n" - }, - { - "kind": "code", - "text": "```js\nimport { capitalize } from '@cc-heart/utils'\n\ncapitalize('string') // String\n```" - }, - { - "kind": "text", - "text": "\n\n## Request — composable best practices\n\n" - }, - { - "kind": "code", - "text": "```ts\nimport { Request } from '@cc-heart/utils'\nimport type { RequestInterceptor } from '@cc-heart/utils'\n```" - }, - { - "kind": "text", - "text": "\n\n### Principle: small instances + composition\n\nPrefer small focused instances over one instance with all interceptors. Combine them with factory functions:\n\n" - }, - { - "kind": "code", - "text": "```ts\n// ── Building blocks: interceptors are pure functions ──\nconst addAuth: RequestInterceptor = (config) => ({\n ...config,\n headers: { ...config.headers, Authorization: `Bearer ${getToken()}` }\n})\n\nconst addLang: RequestInterceptor = (config) => ({\n ...config,\n headers: { ...config.headers, 'Accept-Language': 'zh-CN' }\n})\n\nconst handleError = (err: unknown) => {\n toast.error(err)\n return err\n}\n\n// ── Compose: each instance handles one concern ──\nconst authApi = new Request('https://api.example.com')\nauthApi.useRequestInterceptor(addAuth)\nauthApi.useRequestInterceptor(addLang)\nauthApi.useErrorInterceptor(handleError)\n\nconst publicApi = new Request('https://open.api.com')\n\n// ── Or use helper functions ──\nfunction withInterceptors(\n req: Request,\n interceptors: RequestInterceptor[]\n): Request {\n interceptors.forEach((i) => req.useRequestInterceptor(i))\n return req\n}\nfunction withBaseUrl(url: string): Request {\n return new Request(url)\n}\n\nconst api = withInterceptors(withBaseUrl('https://api.example.com'), [\n addAuth,\n addLang,\n])\n```" - }, - { - "kind": "text", - "text": "\n\n### Four calling styles\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst api = new Request('https://api.example.com')\n\n// Style 1: async/await (recommended)\ntry {\n const user = await api.get('/users/1')\n setUser(user)\n} catch (e) {\n if ((e as Error).name === 'AbortError') return // user cancelled\n toast.error(e)\n}\n\n// Style 2: lifecycle callbacks (React setState friendly)\napi.get('/users', {\n onSuccess: setUsers,\n onError: toast.error,\n onFinally: () => setLoading(false),\n})\n\n// Style 3: promise chaining\napi.get('/count')\n .then(n => n * 2)\n .then(setCount)\n .catch(toast.error)\n\n// Style 4: mixed (await + callbacks, non-conflicting)\nconst data = await api.get('/users', { onFinally: () => setLoading(false) })\n```" - }, - { - "kind": "text", - "text": "\n\n### Entity — group by domain\n\n" - }, - { - "kind": "code", - "text": "```ts\n// entities/user.ts\nconst api = new Request('/api')\n\nexport const UserApi = {\n list: (page: number) =>\n api.get('/users', { page }),\n get: (id: number) =>\n api.get(`/users/${id}`),\n create: (data: CreateUserDto) =>\n api.post('/users', data, { onSuccess: () => toast.success('created') }),\n}\n\n// Usage\nconst users = await UserApi.list(1)\n```" - }, - { - "kind": "text", - "text": "\n\n### Cache & dedup — isolated per instance\n\n" - }, - { - "kind": "code", - "text": "```ts\nconst cachedApi = new Request('/api')\n// cache and dedup are instance-level, different Request instances are isolated\nconst data1 = await cachedApi.get('/users', {}, { cache: { ttl: 5000 } })\nconst data2 = await cachedApi.get('/users', {}, { cache: { ttl: 5000 } }) // cache hit\n\nconst otherApi = new Request('/api') // isolated cache\n```" - }, - { - "kind": "text", - "text": "\n\n## LICENSE\n\n" - }, - { - "kind": "code", - "text": "`@cc-heart/utils`" - }, - { - "kind": "text", - "text": " is licensed under the [MIT License](./LICENSE)." - } - ], - "symbolIdMap": { - "0": { - "sourceFileName": "index.ts", - "qualifiedName": "" - }, - "1": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "getCurrentTimeISOString" - }, - "2": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "getCurrentTimeISOString" - }, - "3": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDate" - }, - "4": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDate" - }, - "5": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "date" - }, - "6": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatter" - }, - "7": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "utc" - }, - "8": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDateByTimeStamp" - }, - "9": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDateByTimeStamp" - }, - "10": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "timeStamp" - }, - "11": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatter" - }, - "12": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDateTimeByString" - }, - "13": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDateTimeByString" - }, - "14": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "dateString" - }, - "15": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatter" - }, - "16": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDateByArray" - }, - "17": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatDateByArray" - }, - "18": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "array" - }, - "19": { - "sourceFileName": "lib/date.ts", - "qualifiedName": "formatter" - }, - "20": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineOnceFn" - }, - "21": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineOnceFn" - }, - "22": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "T" - }, - "23": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "fn" - }, - "24": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "__type" - }, - "25": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "__type" - }, - "26": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "args" - }, - "27": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "__function" - }, - "28": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "__function" - }, - "29": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "this" - }, - "30": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "args" - }, - "31": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineThrottleFn" - }, - "32": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineThrottleFn" - }, - "33": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "fn" - }, - "34": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "delay" - }, - "35": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineSinglePromiseFn" - }, - "36": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineSinglePromiseFn" - }, - "37": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "fn" - }, - "38": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "__function" - }, - "39": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "__function" - }, - "40": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineDebounceFn" - }, - "41": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "defineDebounceFn" - }, - "42": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "fn" - }, - "43": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "delay" - }, - "44": { - "sourceFileName": "lib/define.ts", - "qualifiedName": "immediate" - }, - "45": { - "sourceFileName": "lib/random.ts", - "qualifiedName": "random" - }, - "46": { - "sourceFileName": "lib/random.ts", - "qualifiedName": "random" - }, - "47": { - "sourceFileName": "lib/random.ts", - "qualifiedName": "min" - }, - "48": { - "sourceFileName": "lib/random.ts", - "qualifiedName": "max" - }, - "49": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestHandle" - }, - "50": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestHandle.then" - }, - "51": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "52": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "53": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "R1" - }, - "54": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "R2" - }, - "55": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "onfulfilled" - }, - "56": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "57": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "58": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "value" - }, - "59": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "onrejected" - }, - "60": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "61": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "62": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "reason" - }, - "63": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestHandle.catch" - }, - "64": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "65": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "66": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "R" - }, - "67": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "onrejected" - }, - "68": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "69": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "70": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "reason" - }, - "71": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestHandle.finally" - }, - "72": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "73": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "74": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "onfinally" - }, - "75": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "76": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "77": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestHandle.abort" - }, - "78": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "79": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "80": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestHandle.T" - }, - "81": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestInterceptor" - }, - "82": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "83": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "84": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "85": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "ResponseInterceptor" - }, - "86": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "87": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "88": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "89": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "90": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "U" - }, - "91": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "ErrorInterceptor" - }, - "92": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "93": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "94": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "error" - }, - "95": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "CacheConfig" - }, - "96": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "CacheConfig.ttl" - }, - "97": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig" - }, - "98": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.params" - }, - "99": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.data" - }, - "100": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.requestInterceptors" - }, - "101": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.responseInterceptors" - }, - "102": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.errorInterceptors" - }, - "103": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.timeout" - }, - "104": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.retry" - }, - "105": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.retryDelay" - }, - "106": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.cache" - }, - "107": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.onDownloadProgress" - }, - "108": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "109": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "110": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "loaded" - }, - "111": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "total" - }, - "112": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.onSuccess" - }, - "113": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "114": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "115": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "116": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.onError" - }, - "117": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "118": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "119": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "error" - }, - "120": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.onAbort" - }, - "121": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "122": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "123": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "RequestConfig.onFinally" - }, - "124": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "125": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "126": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.method" - }, - "127": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.keepalive" - }, - "128": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.headers" - }, - "129": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.body" - }, - "130": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.redirect" - }, - "131": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.integrity" - }, - "132": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.signal" - }, - "133": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.credentials" - }, - "134": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.mode" - }, - "135": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.referrer" - }, - "136": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.referrerPolicy" - }, - "137": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.window" - }, - "138": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.dispatcher" - }, - "139": { - "sourceFileName": "node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts", - "qualifiedName": "RequestInit.duplex" - }, - "140": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request" - }, - "141": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.__constructor" - }, - "142": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request" - }, - "143": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "baseUrl" - }, - "144": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.requestInterceptors" - }, - "145": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.responseInterceptors" - }, - "146": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.errorInterceptors" - }, - "147": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.cacheMap" - }, - "148": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.inflightMap" - }, - "149": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.baseUrl" - }, - "150": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.useRequestInterceptor" - }, - "151": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.useRequestInterceptor" - }, - "152": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptor" - }, - "153": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__function" - }, - "154": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__function" - }, - "155": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.useResponseInterceptor" - }, - "156": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.useResponseInterceptor" - }, - "157": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "158": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "U" - }, - "159": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptor" - }, - "160": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__function" - }, - "161": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__function" - }, - "162": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.useErrorInterceptor" - }, - "163": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.useErrorInterceptor" - }, - "164": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptor" - }, - "165": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__function" - }, - "166": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__function" - }, - "167": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.get" - }, - "168": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.get" - }, - "169": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "170": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "171": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "params" - }, - "172": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "173": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.delete" - }, - "174": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.delete" - }, - "175": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "176": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "177": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "params" - }, - "178": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "179": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.post" - }, - "180": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.post" - }, - "181": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "182": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "183": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "184": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "185": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.put" - }, - "186": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.put" - }, - "187": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "188": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "189": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "190": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "191": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.patch" - }, - "192": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.patch" - }, - "193": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "194": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "195": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "196": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "197": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.clearCache" - }, - "198": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.clearCache" - }, - "199": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.request" - }, - "200": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.request" - }, - "201": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "202": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "203": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "204": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildCacheKey" - }, - "205": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildCacheKey" - }, - "206": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "method" - }, - "207": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "208": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.execute" - }, - "209": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.execute" - }, - "210": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "211": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "212": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "213": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "controller" - }, - "214": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.executeWithRetry" - }, - "215": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.executeWithRetry" - }, - "216": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "217": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "requestUrl" - }, - "218": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "method" - }, - "219": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "220": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "requestConfig" - }, - "221": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "controller" - }, - "222": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "requestInterceptors" - }, - "223": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "responseInterceptors" - }, - "224": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "errorInterceptors" - }, - "225": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "onDownloadProgress" - }, - "226": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "227": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "228": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "loaded" - }, - "229": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "total" - }, - "230": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "timeout" - }, - "231": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "maxRetries" - }, - "232": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "retryDelayMs" - }, - "233": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "cache" - }, - "234": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "cacheKey" - }, - "235": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.readResponseWithProgress" - }, - "236": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.readResponseWithProgress" - }, - "237": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "response" - }, - "238": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "onProgress" - }, - "239": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "240": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "__type" - }, - "241": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "loaded" - }, - "242": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "total" - }, - "243": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildRequestInit" - }, - "244": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildRequestInit" - }, - "245": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "method" - }, - "246": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "247": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "248": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "controller" - }, - "249": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildBody" - }, - "250": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildBody" - }, - "251": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "252": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildUrl" - }, - "253": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.buildUrl" - }, - "254": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "255": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "method" - }, - "256": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "params" - }, - "257": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.joinUrl" - }, - "258": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.joinUrl" - }, - "259": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "baseUrl" - }, - "260": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "261": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.isCompleteUrl" - }, - "262": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.isCompleteUrl" - }, - "263": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "url" - }, - "264": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.normalizeHeaders" - }, - "265": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.normalizeHeaders" - }, - "266": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "headers" - }, - "267": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.runRequestInterceptors" - }, - "268": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.runRequestInterceptors" - }, - "269": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "config" - }, - "270": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptors" - }, - "271": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.runResponseInterceptors" - }, - "272": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.runResponseInterceptors" - }, - "273": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "data" - }, - "274": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptors" - }, - "275": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.runErrorInterceptors" - }, - "276": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.runErrorInterceptors" - }, - "277": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "error" - }, - "278": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptors" - }, - "279": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.parseResponse" - }, - "280": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.parseResponse" - }, - "281": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "response" - }, - "282": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.removeInterceptor" - }, - "283": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "Request.removeInterceptor" - }, - "284": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "T" - }, - "285": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptors" - }, - "286": { - "sourceFileName": "lib/request.ts", - "qualifiedName": "interceptor" - }, - "287": { - "sourceFileName": "lib/shard.ts", - "qualifiedName": "noop" - }, - "288": { - "sourceFileName": "lib/shard.ts", - "qualifiedName": "noop" - }, - "289": { - "sourceFileName": "lib/shard.ts", - "qualifiedName": "sleep" - }, - "290": { - "sourceFileName": "lib/shard.ts", - "qualifiedName": "sleep" - }, - "291": { - "sourceFileName": "lib/shard.ts", - "qualifiedName": "delay" - }, - "292": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "mulSplit" - }, - "293": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "mulSplit" - }, - "294": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "str" - }, - "295": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "splitStr" - }, - "296": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "num" - }, - "297": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "underlineToHump" - }, - "298": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "underlineToHump" - }, - "299": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "target" - }, - "300": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "capitalize" - }, - "301": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "capitalize" - }, - "302": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "T" - }, - "303": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "target" - }, - "304": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "unCapitalize" - }, - "305": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "unCapitalize" - }, - "306": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "T" - }, - "307": { - "sourceFileName": "lib/string.ts", - "qualifiedName": "target" - }, - "308": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "parseKey" - }, - "309": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "parseKey" - }, - "310": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "obj" - }, - "311": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "key" - }, - "312": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "value" - }, - "313": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "queryStringToObject" - }, - "314": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "queryStringToObject" - }, - "315": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "T" - }, - "316": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "U" - }, - "317": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "url" - }, - "318": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "objectToQueryString" - }, - "319": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "objectToQueryString" - }, - "320": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "T" - }, - "321": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "input" - }, - "322": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "convertParamsRouterToRegExp" - }, - "323": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "convertParamsRouterToRegExp" - }, - "324": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "path" - }, - "325": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "basename" - }, - "326": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "basename" - }, - "327": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "path" - }, - "328": { - "sourceFileName": "lib/url.ts", - "qualifiedName": "suffix" - }, - "329": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isObject" - }, - "330": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isObject" - }, - "331": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "332": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isSymbol" - }, - "333": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isSymbol" - }, - "334": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "335": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isFn" - }, - "336": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isFn" - }, - "337": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "338": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isStr" - }, - "339": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isStr" - }, - "340": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "341": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isBool" - }, - "342": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isBool" - }, - "343": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "344": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isUndef" - }, - "345": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isUndef" - }, - "346": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "347": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isNull" - }, - "348": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isNull" - }, - "349": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "350": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isPrimitive" - }, - "351": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isPrimitive" - }, - "352": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "353": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isFalsy" - }, - "354": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isFalsy" - }, - "355": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "356": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isNumber" - }, - "357": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isNumber" - }, - "358": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "359": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isEffectiveNumber" - }, - "360": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isEffectiveNumber" - }, - "361": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "362": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isPromise" - }, - "363": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isPromise" - }, - "364": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "365": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "hasOwn" - }, - "366": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "hasOwn" - }, - "367": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "obj" - }, - "368": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "prop" - }, - "369": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isValidArray" - }, - "370": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isValidArray" - }, - "371": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "arr" - }, - "372": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isPropertyKey" - }, - "373": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isPropertyKey" - }, - "374": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "375": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isValidDate" - }, - "376": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isValidDate" - }, - "377": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "date" - }, - "378": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isMobile" - }, - "379": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isMobile" - }, - "380": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "ua" - }, - "381": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "_toString" - }, - "382": { - "sourceFileName": "node_modules/.pnpm/typescript@5.5.4/node_modules/typescript/lib/lib.es5.d.ts", - "qualifiedName": "_toString" - }, - "383": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isNil" - }, - "384": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "isNil" - }, - "385": { - "sourceFileName": "lib/validate.ts", - "qualifiedName": "val" - }, - "386": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "executeConcurrency" - }, - "387": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "executeConcurrency" - }, - "388": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "tasks" - }, - "389": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "maxConcurrency" - }, - "390": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "executeQueue" - }, - "391": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "executeQueue" - }, - "392": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "taskArray" - }, - "393": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__type" - }, - "394": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__type" - }, - "395": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "args" - }, - "396": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "pipe" - }, - "397": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "pipe" - }, - "398": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "fns" - }, - "399": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "400": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "401": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "args" - }, - "402": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "compose" - }, - "403": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "compose" - }, - "404": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "fns" - }, - "405": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "406": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "407": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "args" - }, - "408": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "setintervalByTimeout" - }, - "409": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "setintervalByTimeout" - }, - "410": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "func" - }, - "411": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "delay" - }, - "412": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "413": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "414": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "setIntervalByTimeout" - }, - "415": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "setIntervalByTimeout" - }, - "416": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "func" - }, - "417": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "delay" - }, - "418": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "419": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "__function" - }, - "420": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "awaitTo" - }, - "421": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "awaitTo" - }, - "422": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "T" - }, - "423": { - "sourceFileName": "lib/workers.ts", - "qualifiedName": "promise" - }, - "424": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "HTTP_STATUS" - }, - "425": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object" - }, - "426": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CONTINUE" - }, - "427": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SWITCHING_PROTOCOLS" - }, - "428": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PROCESSING" - }, - "429": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.EARLYHINTS" - }, - "430": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.OK" - }, - "431": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CREATED" - }, - "432": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.ACCEPTED" - }, - "433": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.NON_AUTHORITATIVE_INFORMATION" - }, - "434": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.NO_CONTENT" - }, - "435": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.RESET_CONTENT" - }, - "436": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PARTIAL_CONTENT" - }, - "437": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.AMBIGUOUS" - }, - "438": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MOVED_PERMANENTLY" - }, - "439": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.FOUND" - }, - "440": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SEE_OTHER" - }, - "441": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.NOT_MODIFIED" - }, - "442": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TEMPORARY_REDIRECT" - }, - "443": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PERMANENT_REDIRECT" - }, - "444": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.BAD_REQUEST" - }, - "445": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.UNAUTHORIZED" - }, - "446": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PAYMENT_REQUIRED" - }, - "447": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.FORBIDDEN" - }, - "448": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.NOT_FOUND" - }, - "449": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.METHOD_NOT_ALLOWED" - }, - "450": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.NOT_ACCEPTABLE" - }, - "451": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PROXY_AUTHENTICATION_REQUIRED" - }, - "452": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.REQUEST_TIMEOUT" - }, - "453": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CONFLICT" - }, - "454": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.GONE" - }, - "455": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.LENGTH_REQUIRED" - }, - "456": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PRECONDITION_FAILED" - }, - "457": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PAYLOAD_TOO_LARGE" - }, - "458": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.URI_TOO_LONG" - }, - "459": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.UNSUPPORTED_MEDIA_TYPE" - }, - "460": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.REQUESTED_RANGE_NOT_SATISFIABLE" - }, - "461": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.EXPECTATION_FAILED" - }, - "462": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.I_AM_A_TEAPOT" - }, - "463": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MISDIRECTED" - }, - "464": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.UNPROCESSABLE_ENTITY" - }, - "465": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.FAILED_DEPENDENCY" - }, - "466": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PRECONDITION_REQUIRED" - }, - "467": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TOO_MANY_REQUESTS" - }, - "468": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.INTERNAL_SERVER_ERROR" - }, - "469": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.NOT_IMPLEMENTED" - }, - "470": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.BAD_GATEWAY" - }, - "471": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SERVICE_UNAVAILABLE" - }, - "472": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.GATEWAY_TIMEOUT" - }, - "473": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.HTTP_VERSION_NOT_SUPPORTED" - }, - "474": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "REQUEST_METHOD" - }, - "475": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object" - }, - "476": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.GET" - }, - "477": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.POST" - }, - "478": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PUT" - }, - "479": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DELETE" - }, - "480": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PATCH" - }, - "481": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.ALL" - }, - "482": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.OPTIONS" - }, - "483": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.HEAD" - }, - "484": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SEARCH" - }, - "485": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "MIME_TYPES" - }, - "486": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object" - }, - "487": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TXT" - }, - "488": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.HTML" - }, - "489": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.HTM" - }, - "490": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CSS" - }, - "491": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CSV" - }, - "492": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.XML" - }, - "493": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.JSON" - }, - "494": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.JAVASCRIPT" - }, - "495": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PNG" - }, - "496": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.JPG" - }, - "497": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.JPEG" - }, - "498": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.GIF" - }, - "499": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.BMP" - }, - "500": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WEBP" - }, - "501": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SVG" - }, - "502": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.ICO" - }, - "503": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MP3" - }, - "504": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WAV" - }, - "505": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.OGG" - }, - "506": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.M4A" - }, - "507": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.FLAC" - }, - "508": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MP4" - }, - "509": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.AVI" - }, - "510": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MOV" - }, - "511": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WMV" - }, - "512": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.FLV" - }, - "513": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WEBM" - }, - "514": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MKV" - }, - "515": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.ZIP" - }, - "516": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.RAR" - }, - "517": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.7Z" - }, - "518": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TAR" - }, - "519": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.GZ" - }, - "520": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.BZ2" - }, - "521": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PDF" - }, - "522": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DOC" - }, - "523": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DOT" - }, - "524": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DOCX" - }, - "525": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DOTX" - }, - "526": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.XLS" - }, - "527": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.XLT" - }, - "528": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.XLSX" - }, - "529": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.XLSM" - }, - "530": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PPT" - }, - "531": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.POT" - }, - "532": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PPTX" - }, - "533": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.POTX" - }, - "534": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PPSX" - }, - "535": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.EXE" - }, - "536": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DLL" - }, - "537": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MSI" - }, - "538": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.BAT" - }, - "539": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WOFF" - }, - "540": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WOFF2" - }, - "541": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TTF" - }, - "542": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.OTF" - }, - "543": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.EOT" - }, - "544": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.JSONLD" - }, - "545": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MAP" - }, - "546": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.WASM" - }, - "547": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TS" - }, - "548": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MPD" - }, - "549": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.M3U8" - }, - "550": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.TORRENT" - }, - "551": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SWF" - }, - "552": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.EPUB" - }, - "553": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.APK" - }, - "554": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DMG" - }, - "555": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.EML" - }, - "556": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.MSG" - }, - "557": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DWG" - }, - "558": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.DXF" - }, - "559": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.OBJ" - }, - "560": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.STL" - }, - "561": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PY" - }, - "562": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.JAVA" - }, - "563": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.C" - }, - "564": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CPP" - }, - "565": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.CS" - }, - "566": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.RB" - }, - "567": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.GO" - }, - "568": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.PHP" - }, - "569": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.SWIFT" - }, - "570": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.KT" - }, - "571": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.RTF" - }, - "572": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.ALZ" - }, - "573": { - "sourceFileName": "lib/const/http.ts", - "qualifiedName": "__object.7ZIP" - }, - "574": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger" - }, - "575": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.__constructor" - }, - "576": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger" - }, - "577": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "level" - }, - "578": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.level" - }, - "579": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.setLevel" - }, - "580": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.setLevel" - }, - "581": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "level" - }, - "582": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.log" - }, - "583": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.log" - }, - "584": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "level" - }, - "585": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "586": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.error" - }, - "587": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.error" - }, - "588": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "589": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.warn" - }, - "590": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.warn" - }, - "591": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "592": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.info" - }, - "593": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.info" - }, - "594": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "595": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.debug" - }, - "596": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.debug" - }, - "597": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "598": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.trace" - }, - "599": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.trace" - }, - "600": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "601": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.start" - }, - "602": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.start" - }, - "603": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "604": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.success" - }, - "605": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "Logger.success" - }, - "606": { - "sourceFileName": "lib/log/index.ts", - "qualifiedName": "message" - }, - "607": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "formatErrorToString" - }, - "608": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "formatErrorToString" - }, - "609": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "error" - }, - "610": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "defaultErrorString" - }, - "611": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "opts" - }, - "612": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "__object" - }, - "613": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "__object.errorLimit" - }, - "614": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "invokeWithErrorHandlingFactory" - }, - "615": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "invokeWithErrorHandlingFactory" - }, - "616": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "handleError" - }, - "617": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "__function" - }, - "618": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "__function" - }, - "619": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "handler" - }, - "620": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "context" - }, - "621": { - "sourceFileName": "lib/error-handler.ts", - "qualifiedName": "args" - } - } -} \ No newline at end of file diff --git a/docs/functions/_toString.html b/docs/functions/_toString.html deleted file mode 100644 index e3dba1a3..00000000 --- a/docs/functions/_toString.html +++ /dev/null @@ -1,2 +0,0 @@ -_toString | @cc-heart/utils

Function _toString

  • Returns a string representation of an object.

    -

    Returns string

\ No newline at end of file diff --git a/docs/functions/awaitTo.html b/docs/functions/awaitTo.html deleted file mode 100644 index ef58d4c0..00000000 --- a/docs/functions/awaitTo.html +++ /dev/null @@ -1,6 +0,0 @@ -awaitTo | @cc-heart/utils

Function awaitTo

  • A helper function that wraps a Promise and returns a tuple of [error, data]. -If the Promise resolves successfully, the first element of the tuple will be null, and the second element will be the resolved value. -If the Promise is rejected, the first element of the tuple will be the error, and the second element will be undefined.

    -

    Type Parameters

    • T

    Parameters

    • promise: Promise<T>

      The Promise to wrap.

      -

    Returns Promise<[unknown, undefined | T]>

    A Promise that resolves to a tuple of [error, data].

    -
\ No newline at end of file diff --git a/docs/functions/basename.html b/docs/functions/basename.html deleted file mode 100644 index 3cd5c05c..00000000 --- a/docs/functions/basename.html +++ /dev/null @@ -1,7 +0,0 @@ -basename | @cc-heart/utils

Function basename

  • Returns the last portion of a path, similar to the Unix basename command. -Trims the query string if it exists. -Optionally, removes a suffix from the result.

    -

    Parameters

    • path: string

      The path to get the basename from.

      -
    • Optional suffix: string

      An optional suffix to remove from the basename.

      -

    Returns string

    The basename of the path.

    -
\ No newline at end of file diff --git a/docs/functions/capitalize.html b/docs/functions/capitalize.html deleted file mode 100644 index 423f92b5..00000000 --- a/docs/functions/capitalize.html +++ /dev/null @@ -1,6 +0,0 @@ -capitalize | @cc-heart/utils

Function capitalize

  • Capitalizes the first letter of a string.

    -

    Type Parameters

    • T extends string

    Parameters

    • target: T

      The string to be capitalized.

      -

    Returns Capitalize<T>

      -
    • The capitalized string.
    • -
    -
\ No newline at end of file diff --git a/docs/functions/compose.html b/docs/functions/compose.html deleted file mode 100644 index 58d67aea..00000000 --- a/docs/functions/compose.html +++ /dev/null @@ -1,5 +0,0 @@ -compose | @cc-heart/utils

Function compose

  • Takes a series of functions and returns a new function that runs these functions in reverse sequence. -If a function returns a Promise, the next function is called with the resolved value.

    -

    Parameters

    • Rest ...fns: Fn[]

      The functions to compose.

      -

    Returns ((...args) => any)

    A new function that takes any number of arguments and composes them through fns.

    -
      • (...args): any
      • Parameters

        • Rest ...args: any[]

        Returns any

\ No newline at end of file diff --git a/docs/functions/convertParamsRouterToRegExp.html b/docs/functions/convertParamsRouterToRegExp.html deleted file mode 100644 index e265b1d4..00000000 --- a/docs/functions/convertParamsRouterToRegExp.html +++ /dev/null @@ -1,4 +0,0 @@ -convertParamsRouterToRegExp | @cc-heart/utils

Function convertParamsRouterToRegExp

  • convert params routes to regular expressions

    -

    Parameters

    • path: string

      a params paths

      -

    Returns null | (RegExp | string[])[]

    null or An array contains the RegExp that matches the params and the path for each params parameter

    -
\ No newline at end of file diff --git a/docs/functions/defineDebounceFn.html b/docs/functions/defineDebounceFn.html deleted file mode 100644 index 988f75d3..00000000 --- a/docs/functions/defineDebounceFn.html +++ /dev/null @@ -1,8 +0,0 @@ -defineDebounceFn | @cc-heart/utils

Function defineDebounceFn

  • DefineDebounceFn is a function that creates a debounced function.

    -

    Parameters

    • fn: CacheResultFunc

      The function to be debounced.

      -
    • Optional delay: number

      The delay in milliseconds to wait before the debounced function is called. Default is 500ms.

      -
    • Optional immediate: boolean

      Whether the debounced function should be called immediately before the delay. Default is false.

      -

    Returns any

      -
    • The debounce function.
    • -
    -
\ No newline at end of file diff --git a/docs/functions/defineOnceFn.html b/docs/functions/defineOnceFn.html deleted file mode 100644 index 0c623209..00000000 --- a/docs/functions/defineOnceFn.html +++ /dev/null @@ -1,6 +0,0 @@ -defineOnceFn | @cc-heart/utils

Function defineOnceFn

  • Creates a function that can only be called once.

    -

    Type Parameters

    • T

    Parameters

    • fn: ((...args) => T)

      The function to be called once.

      -
        • (...args): T
        • Parameters

          • Rest ...args: any

          Returns T

    Returns ((this, ...args) => T)

      -
    • A new function that can only be called once.
    • -
    -
      • (this, ...args): T
      • Parameters

        • this: any
        • Rest ...args: any

        Returns T

\ No newline at end of file diff --git a/docs/functions/defineSinglePromiseFn.html b/docs/functions/defineSinglePromiseFn.html deleted file mode 100644 index aad9b1e5..00000000 --- a/docs/functions/defineSinglePromiseFn.html +++ /dev/null @@ -1,5 +0,0 @@ -defineSinglePromiseFn | @cc-heart/utils

Function defineSinglePromiseFn

  • defineSinglePromiseFn ensures that the provided function can only be called once at a time. -If the function is invoked while it's still executing, it returns the same promise, avoiding multiple calls.

    -

    Parameters

    • fn: Fn

      The function to be wrapped, which returns a promise.

      -

    Returns (() => Promise<any>)

    A function that ensures the provided function is only executed once and returns a promise.

    -
      • (): Promise<any>
      • Returns Promise<any>

\ No newline at end of file diff --git a/docs/functions/defineThrottleFn.html b/docs/functions/defineThrottleFn.html deleted file mode 100644 index ebaa6339..00000000 --- a/docs/functions/defineThrottleFn.html +++ /dev/null @@ -1,5 +0,0 @@ -defineThrottleFn | @cc-heart/utils

Function defineThrottleFn

  • defineThrottleFn is a function that creates a throttled function.

    -

    Parameters

    • fn: Fn
    • delay: number = 500

    Returns CacheResultFunc

      -
    • The throttled function.
    • -
    -
\ No newline at end of file diff --git a/docs/functions/executeConcurrency.html b/docs/functions/executeConcurrency.html deleted file mode 100644 index 0c23fcf4..00000000 --- a/docs/functions/executeConcurrency.html +++ /dev/null @@ -1 +0,0 @@ -executeConcurrency | @cc-heart/utils

Function executeConcurrency

  • Parameters

    • tasks: Fn[]
    • maxConcurrency: number

    Returns Promise<null | any[]>

\ No newline at end of file diff --git a/docs/functions/executeQueue.html b/docs/functions/executeQueue.html deleted file mode 100644 index 41d411e1..00000000 --- a/docs/functions/executeQueue.html +++ /dev/null @@ -1,6 +0,0 @@ -executeQueue | @cc-heart/utils

Function executeQueue

  • Invokes a queue.

    -

    Parameters

    • taskArray: ((...args) => any)[]

      An array of tasks to be executed.

      -

    Returns Promise<void>

      -
    • A promise that resolves when all tasks are completed.
    • -
    -
\ No newline at end of file diff --git a/docs/functions/formatDate.html b/docs/functions/formatDate.html deleted file mode 100644 index 6f38cb48..00000000 --- a/docs/functions/formatDate.html +++ /dev/null @@ -1,8 +0,0 @@ -formatDate | @cc-heart/utils

Function formatDate

  • Formats a Date object according to the specified formatter string.

    -

    Parameters

    • date: Date

      The Date object to format

      -
    • formatter: string = 'YYYY-MM-DD hh:mm:ss'

      The format string. Supports YYYY (year), MM (month), DD (day), hh (hours), mm (minutes), ss (seconds)

      -
    • utc: boolean = false

      Whether to use UTC time instead of local time

      -

    Returns string

    The formatted date string

    -

    Example

    const date = new Date(2024, 0, 1, 12, 30, 45);
    formatDate(date, 'YYYY-MM-DD hh:mm:ss'); // Returns "2024-01-01 12:30:45"
    formatDate(date, 'DD/MM/YYYY', true); // Returns "01/01/2024" in UTC -
    -
\ No newline at end of file diff --git a/docs/functions/formatDateByArray.html b/docs/functions/formatDateByArray.html deleted file mode 100644 index e2dd712e..00000000 --- a/docs/functions/formatDateByArray.html +++ /dev/null @@ -1,12 +0,0 @@ -formatDateByArray | @cc-heart/utils

Function formatDateByArray

  • Formats a date based on an array of numbers, with optional formatting string

    -

    This function expects an array containing year, month, day, hour, minute, and second values. If the array is invalid or does not contain the necessary values, it logs a warning and returns 'Invalid Date'. -The function uses the slice method to create a new array containing only the first six elements, and decrements the month value by 1 to convert it from a 1-based index to a 0-based index used by the Date object. -It then creates a new Date object using the elements of the new array. If the date is invalid, it logs a warning and returns the date as a string. -Finally, the function formats the date according to an optional formatting string and returns the formatted date string.

    -

    Parameters

    • array: number[]

      The array representing the date. This array should contain year, month, day, hour, minute, and second values.

      -
    • Optional formatter: string

      Optional. A specific format string to format the date. Defaults to 'YYYY-MM-DD HH:mm:ss'.

      -

    Returns string

    The formatted date string.

    -

    Throws

    Throws an error if the array is invalid or does not contain the necessary values.

    -

    Example

    const dateArray = [2024, 2, 19, 10, 30, 0];
    const formattedDate = formatDateByArray(dateArray, 'MMMM D, YYYY, h:mm A');
    console.log(formattedDate); -
    -
\ No newline at end of file diff --git a/docs/functions/formatDateByTimeStamp.html b/docs/functions/formatDateByTimeStamp.html deleted file mode 100644 index 3dac6b81..00000000 --- a/docs/functions/formatDateByTimeStamp.html +++ /dev/null @@ -1,8 +0,0 @@ -formatDateByTimeStamp | @cc-heart/utils

Function formatDateByTimeStamp

  • Formats a date based on a given timestamp.

    -

    Parameters

    • timeStamp: number

      The timestamp to be formatted, in milliseconds.

      -
    • Optional formatter: string

      Optional. A specific format string to format the date. Defaults to 'YYYY-MM-DD HH:mm:ss'.

      -

    Returns string

    The formatted date string.

    -

    Throws

    Throws an error if the timestamp is invalid or out of range.

    -

    Example

    const timestamp = new Date().getTime();
    const formattedDate = formatDateByTimeStamp(timestamp);
    console.log(formattedDate); -
    -
\ No newline at end of file diff --git a/docs/functions/formatDateTimeByString.html b/docs/functions/formatDateTimeByString.html deleted file mode 100644 index 24a171f8..00000000 --- a/docs/functions/formatDateTimeByString.html +++ /dev/null @@ -1,8 +0,0 @@ -formatDateTimeByString | @cc-heart/utils

Function formatDateTimeByString

  • Formats a date string into a specified date time format

    -

    Parameters

    • dateString: string

      A string representing the date.

      -
    • Optional formatter: string

      Optional. A specific format string to format the date. Defaults to 'YYYY-MM-DD HH:mm:ss'.

      -

    Returns string

    The formatted date string.

    -

    Throws

    Throws an error if the date string is invalid or cannot be parsed into a Date object.

    -

    Example

    const dateString = '2024-02-19T10:30:00Z';
    const formattedDateTime = formatDateTimeByString(dateString, 'MMMM D, YYYY, h:mm A');
    console.log(formattedDateTime); -
    -
\ No newline at end of file diff --git a/docs/functions/formatErrorToString.html b/docs/functions/formatErrorToString.html deleted file mode 100644 index 5ce92ecd..00000000 --- a/docs/functions/formatErrorToString.html +++ /dev/null @@ -1,7 +0,0 @@ -formatErrorToString | @cc-heart/utils

Function formatErrorToString

  • Formats an error object into a string representation.

    -

    Parameters

    • error: unknown

      The error to format. It can be an Error instance, a string, or another object.

      -
    • Optional defaultErrorString: string = ''

      The default error message if the error cannot be formatted.

      -
    • Optional opts: {
          errorLimit: number;
      } = ...

      Additional options.

      -
      • errorLimit: number

        The maximum number of stack trace lines to include.

        -

    Returns string

    The formatted error message.

    -
\ No newline at end of file diff --git a/docs/functions/getCurrentTimeISOString.html b/docs/functions/getCurrentTimeISOString.html deleted file mode 100644 index 10eed0bc..00000000 --- a/docs/functions/getCurrentTimeISOString.html +++ /dev/null @@ -1,3 +0,0 @@ -getCurrentTimeISOString | @cc-heart/utils

Function getCurrentTimeISOString

  • Returns the current time in ISO string format.

    -

    Returns string

    The current time in ISO string format.

    -
\ No newline at end of file diff --git a/docs/functions/hasOwn.html b/docs/functions/hasOwn.html deleted file mode 100644 index 60c81558..00000000 --- a/docs/functions/hasOwn.html +++ /dev/null @@ -1,5 +0,0 @@ -hasOwn | @cc-heart/utils

Function hasOwn

  • Checks if the given object has its own property.

    -

    Parameters

    • obj: object

      The object to check.

      -
    • prop: PropertyKey

      The property to check.

      -

    Returns boolean

    Returns true if the object has its own property, otherwise false.

    -
\ No newline at end of file diff --git a/docs/functions/invokeWithErrorHandlingFactory.html b/docs/functions/invokeWithErrorHandlingFactory.html deleted file mode 100644 index 4075dad5..00000000 --- a/docs/functions/invokeWithErrorHandlingFactory.html +++ /dev/null @@ -1,6 +0,0 @@ -invokeWithErrorHandlingFactory | @cc-heart/utils

Function invokeWithErrorHandlingFactory

  • Creates a function factory with error handling capabilities

    -

    Parameters

    • handleError: Fn

      Error handling function to process exceptions during execution

      -

    Returns ((handler, context?, args?) => any)

    Returns a new function that can execute target functions with automatic error handling

    -
      • (handler, context?, args?): any
      • Parameters

        • handler: Fn
        • Optional context: unknown
        • Optional args: unknown[]

        Returns any

    Example

    const errorHandler = (error) => console.error(error);
    const safeExecute = invokeWithErrorHandlingFactory(errorHandler);

    // Execute regular function
    safeExecute(() => { throw new Error('test') });

    // Execute async function
    safeExecute(async () => { throw new Error('async test') }); -
    -
\ No newline at end of file diff --git a/docs/functions/isBool.html b/docs/functions/isBool.html deleted file mode 100644 index 83ac1ac8..00000000 --- a/docs/functions/isBool.html +++ /dev/null @@ -1,4 +0,0 @@ -isBool | @cc-heart/utils

Function isBool

  • Checks if the provided value is a boolean.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is boolean

    Returns true if the value is a boolean, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isEffectiveNumber.html b/docs/functions/isEffectiveNumber.html deleted file mode 100644 index b7eb8dcf..00000000 --- a/docs/functions/isEffectiveNumber.html +++ /dev/null @@ -1,2 +0,0 @@ -isEffectiveNumber | @cc-heart/utils

Function isEffectiveNumber

  • determines if it is a valid value other than NaN

    -

    Parameters

    • val: unknown

    Returns val is number

\ No newline at end of file diff --git a/docs/functions/isFalsy.html b/docs/functions/isFalsy.html deleted file mode 100644 index 0c52970f..00000000 --- a/docs/functions/isFalsy.html +++ /dev/null @@ -1,4 +0,0 @@ -isFalsy | @cc-heart/utils

Function isFalsy

  • Checks if a value is falsy.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is false

    Returns true if the value is falsy, otherwise false.

    -
\ No newline at end of file diff --git a/docs/functions/isFn.html b/docs/functions/isFn.html deleted file mode 100644 index c08137da..00000000 --- a/docs/functions/isFn.html +++ /dev/null @@ -1,4 +0,0 @@ -isFn | @cc-heart/utils

Function isFn

  • Checks if the given value is a function.

    -

    Parameters

    • val: unknown

      The value to be checked.

      -

    Returns val is Function

    Returns true if the value is a function, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isMobile.html b/docs/functions/isMobile.html deleted file mode 100644 index 9a71ddac..00000000 --- a/docs/functions/isMobile.html +++ /dev/null @@ -1,4 +0,0 @@ -isMobile | @cc-heart/utils

Function isMobile

  • Determines whether the provided user agent string belongs to a mobile device.

    -

    Parameters

    • Optional ua: string

      The user agent string to check.

      -

    Returns boolean

    Returns true if the UA indicates a mobile device, otherwise false.

    -
\ No newline at end of file diff --git a/docs/functions/isNil.html b/docs/functions/isNil.html deleted file mode 100644 index 525385fa..00000000 --- a/docs/functions/isNil.html +++ /dev/null @@ -1,4 +0,0 @@ -isNil | @cc-heart/utils

Function isNil

  • Checks if the given value is null.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is null

    Returns true if the value is null, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isNull.html b/docs/functions/isNull.html deleted file mode 100644 index 96a60db3..00000000 --- a/docs/functions/isNull.html +++ /dev/null @@ -1,4 +0,0 @@ -isNull | @cc-heart/utils

Function isNull

  • Checks if the given value is null.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is null

    Returns true if the value is null, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isNumber.html b/docs/functions/isNumber.html deleted file mode 100644 index 8376cff8..00000000 --- a/docs/functions/isNumber.html +++ /dev/null @@ -1,4 +0,0 @@ -isNumber | @cc-heart/utils

Function isNumber

  • Checks if the given value is a number.

    -

    Parameters

    • val: unknown

      The value to be checked.

      -

    Returns val is number

    Returns true if the value is a number, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isObject.html b/docs/functions/isObject.html deleted file mode 100644 index 98c92b59..00000000 --- a/docs/functions/isObject.html +++ /dev/null @@ -1,4 +0,0 @@ -isObject | @cc-heart/utils

Function isObject

  • Checks if the given value is an object.

    -

    Parameters

    • val: unknown

      The value to be checked.

      -

    Returns val is object

    Returns true if the value is an object, otherwise false.

    -
\ No newline at end of file diff --git a/docs/functions/isPrimitive.html b/docs/functions/isPrimitive.html deleted file mode 100644 index f9ae913f..00000000 --- a/docs/functions/isPrimitive.html +++ /dev/null @@ -1,4 +0,0 @@ -isPrimitive | @cc-heart/utils

Function isPrimitive

  • Determines whether a value is a primitive.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns boolean

    Returns true if the value is a primitive, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isPromise.html b/docs/functions/isPromise.html deleted file mode 100644 index 5a013b75..00000000 --- a/docs/functions/isPromise.html +++ /dev/null @@ -1,4 +0,0 @@ -isPromise | @cc-heart/utils

Function isPromise

  • Checks if a value is a Promise.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is Promise<unknown>

    Returns true if the value is a Promise, else false.

    -
\ No newline at end of file diff --git a/docs/functions/isPropertyKey.html b/docs/functions/isPropertyKey.html deleted file mode 100644 index df29d671..00000000 --- a/docs/functions/isPropertyKey.html +++ /dev/null @@ -1,5 +0,0 @@ -isPropertyKey | @cc-heart/utils

Function isPropertyKey

  • Checks if a given value is a valid PropertyKey. -A PropertyKey is a string, number, or symbol that can be used as a property name.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is PropertyKey

    True if the value is a PropertyKey, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isStr.html b/docs/functions/isStr.html deleted file mode 100644 index b2cf5447..00000000 --- a/docs/functions/isStr.html +++ /dev/null @@ -1,4 +0,0 @@ -isStr | @cc-heart/utils

Function isStr

  • Checks if the given value is a string.

    -

    Parameters

    • val: unknown

      The value to be checked.

      -

    Returns val is string

    Returns true if the value is a string, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isSymbol.html b/docs/functions/isSymbol.html deleted file mode 100644 index a3713999..00000000 --- a/docs/functions/isSymbol.html +++ /dev/null @@ -1,4 +0,0 @@ -isSymbol | @cc-heart/utils

Function isSymbol

  • Checks if the given value is an symbol.

    -

    Parameters

    • val: unknown

      The value to be checked.

      -

    Returns val is symbol

    Returns true if the value is an object, otherwise false.

    -
\ No newline at end of file diff --git a/docs/functions/isUndef.html b/docs/functions/isUndef.html deleted file mode 100644 index 096a2d1c..00000000 --- a/docs/functions/isUndef.html +++ /dev/null @@ -1,4 +0,0 @@ -isUndef | @cc-heart/utils

Function isUndef

  • Checks if a value is undefined.

    -

    Parameters

    • val: unknown

      The value to check.

      -

    Returns val is undefined

    Returns true if the value is undefined, otherwise false.

    -
\ No newline at end of file diff --git a/docs/functions/isValidArray.html b/docs/functions/isValidArray.html deleted file mode 100644 index 498223e5..00000000 --- a/docs/functions/isValidArray.html +++ /dev/null @@ -1,4 +0,0 @@ -isValidArray | @cc-heart/utils

Function isValidArray

  • An array is considered valid if it is an array and its length is greater than or equal to 0.

    -

    Parameters

    • arr: unknown[]

      The array to be checked.

      -

    Returns boolean

    Returns true if the array is valid, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/isValidDate.html b/docs/functions/isValidDate.html deleted file mode 100644 index b0cbd476..00000000 --- a/docs/functions/isValidDate.html +++ /dev/null @@ -1,4 +0,0 @@ -isValidDate | @cc-heart/utils

Function isValidDate

  • Checks if a given date is valid.

    -

    Parameters

    • date: Date

      The date to check.

      -

    Returns boolean

    True if the date is valid, false otherwise.

    -
\ No newline at end of file diff --git a/docs/functions/mulSplit.html b/docs/functions/mulSplit.html deleted file mode 100644 index bde37471..00000000 --- a/docs/functions/mulSplit.html +++ /dev/null @@ -1,6 +0,0 @@ -mulSplit | @cc-heart/utils

Function mulSplit

  • Parameters

    • str: string

      need to split of primitive string

      -
    • splitStr: string

      split params

      -
    • num: number = -1

      split limit

      -

    Returns string[]

    a new split array, length is num + 1

    -

    Description

    Add the number of cuts based on the original split and return all subsets after the cut

    -
\ No newline at end of file diff --git a/docs/functions/noop.html b/docs/functions/noop.html deleted file mode 100644 index 3024bd30..00000000 --- a/docs/functions/noop.html +++ /dev/null @@ -1,3 +0,0 @@ -noop | @cc-heart/utils

Function noop

  • This function does nothing.

    -

    Returns void

    No return value.

    -
\ No newline at end of file diff --git a/docs/functions/objectToQueryString.html b/docs/functions/objectToQueryString.html deleted file mode 100644 index dd57ee88..00000000 --- a/docs/functions/objectToQueryString.html +++ /dev/null @@ -1,3 +0,0 @@ -objectToQueryString | @cc-heart/utils

Function objectToQueryString

  • Converts an object to a query string.

    -

    Type Parameters

    • T extends Record<PropertyKey, any>

    Parameters

    • input: T

    Returns string

    The query string representation of data.

    -
\ No newline at end of file diff --git a/docs/functions/parseKey.html b/docs/functions/parseKey.html deleted file mode 100644 index 2c4d60b4..00000000 --- a/docs/functions/parseKey.html +++ /dev/null @@ -1 +0,0 @@ -parseKey | @cc-heart/utils

Function parseKey

  • Parameters

    • obj: Record<PropertyKey, any>
    • key: string
    • value: any

    Returns void

\ No newline at end of file diff --git a/docs/functions/pipe.html b/docs/functions/pipe.html deleted file mode 100644 index d0cd1809..00000000 --- a/docs/functions/pipe.html +++ /dev/null @@ -1,5 +0,0 @@ -pipe | @cc-heart/utils

Function pipe

  • Takes a series of functions and returns a new function that runs these functions in sequence. -If a function returns a Promise, the next function is called with the resolved value.

    -

    Parameters

    • Rest ...fns: Fn[]

      The functions to pipe.

      -

    Returns ((...args) => any)

    A new function that takes any number of arguments and pipes them through fns.

    -
      • (...args): any
      • Parameters

        • Rest ...args: any[]

        Returns any

\ No newline at end of file diff --git a/docs/functions/queryStringToObject.html b/docs/functions/queryStringToObject.html deleted file mode 100644 index 41ea7d64..00000000 --- a/docs/functions/queryStringToObject.html +++ /dev/null @@ -1,12 +0,0 @@ -queryStringToObject | @cc-heart/utils

Function queryStringToObject

  • Converts a query string to an object.

    -

    Type Parameters

    • T extends string

      The type of the URL string.

      -
    • U extends Record<PropertyKey, any> = QueryStringToObject<T>

      The type of the object to return.

      -

    Parameters

    • url: T

      The URL string to convert.

      -

    Returns U

    The object representation of the query string in url.

    -

    Example

    `queryStringToObject('foo=1&bar=2&baz=3')`
    -
    -

    Example

    `queryStringToObject('foo=&bar=2&baz=3')`
    -
    -

    Example

    `queryStringToObject('foo[0]=1&foo[1]=2&baz=3')`
    -
    -
\ No newline at end of file diff --git a/docs/functions/random.html b/docs/functions/random.html deleted file mode 100644 index 025e5162..00000000 --- a/docs/functions/random.html +++ /dev/null @@ -1,5 +0,0 @@ -random | @cc-heart/utils

Function random

  • Generates a random integer between min (inclusive) and max (inclusive).

    -

    Parameters

    • min: number

      The minimum value (inclusive).

      -
    • max: number

      The maximum value (inclusive).

      -

    Returns number

    A random integer between min and max.

    -
\ No newline at end of file diff --git a/docs/functions/setIntervalByTimeout.html b/docs/functions/setIntervalByTimeout.html deleted file mode 100644 index 09b44a57..00000000 --- a/docs/functions/setIntervalByTimeout.html +++ /dev/null @@ -1,5 +0,0 @@ -setIntervalByTimeout | @cc-heart/utils

Function setIntervalByTimeout

  • Executes a given function repeatedly at a specified interval using setTimeout and clearTimeout.

    -

    Parameters

    • func: Function

      The function to be executed.

      -
    • delay: number

      The interval (in milliseconds) at which the function should be executed.

      -

    Returns (() => void)

    A function that, when called, clears the interval and stops the execution of the given function.

    -
      • (): void
      • Returns void

\ No newline at end of file diff --git a/docs/functions/setintervalByTimeout-1.html b/docs/functions/setintervalByTimeout-1.html deleted file mode 100644 index 875d4aab..00000000 --- a/docs/functions/setintervalByTimeout-1.html +++ /dev/null @@ -1,5 +0,0 @@ -setintervalByTimeout | @cc-heart/utils

Function setintervalByTimeout

  • Executes a given function repeatedly at a specified interval using setTimeout and clearTimeout.

    -

    Parameters

    • func: Function

      The function to be executed.

      -
    • delay: number

      The interval (in milliseconds) at which the function should be executed.

      -

    Returns (() => void)

    A function that, when called, clears the interval and stops the execution of the given function.

    -
      • (): void
      • Returns void

\ No newline at end of file diff --git a/docs/functions/sleep.html b/docs/functions/sleep.html deleted file mode 100644 index 79c499af..00000000 --- a/docs/functions/sleep.html +++ /dev/null @@ -1,4 +0,0 @@ -sleep | @cc-heart/utils

Function sleep

  • Sleeps for a given delay.

    -

    Parameters

    • delay: number

      The delay, in milliseconds.

      -

    Returns Promise<unknown>

    A promise that resolves after the delay.

    -
\ No newline at end of file diff --git a/docs/functions/unCapitalize.html b/docs/functions/unCapitalize.html deleted file mode 100644 index 2ae24579..00000000 --- a/docs/functions/unCapitalize.html +++ /dev/null @@ -1,6 +0,0 @@ -unCapitalize | @cc-heart/utils

Function unCapitalize

  • Returns a new string with the first character converted to lowercase.

    -

    Type Parameters

    • T extends string

    Parameters

    • target: T

      The string to be unCapitalized.

      -

    Returns Uncapitalize<T>

      -
    • The unCapitalized string.
    • -
    -
\ No newline at end of file diff --git a/docs/functions/underlineToHump.html b/docs/functions/underlineToHump.html deleted file mode 100644 index 27cedb43..00000000 --- a/docs/functions/underlineToHump.html +++ /dev/null @@ -1,5 +0,0 @@ -underlineToHump | @cc-heart/utils

Function underlineToHump

  • Converts an underline-separated string to camel case. -e.g. underlineToHump('hello_word') => 'helloWord'

    -

    Parameters

    • target: string

      The underline-separated string to convert.

      -

    Returns string

    The camel case version of the input string.

    -
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 56c1504d..00000000 --- a/docs/index.html +++ /dev/null @@ -1,19 +0,0 @@ -@cc-heart/utils

@cc-heart/utils

@cc-heart/utils

Docs

-

A library of JavaScript tools

-

Install

npm install @cc-heart/utils
-
-

Usage

import { capitalize } from '@cc-heart/utils'

capitalize('string') // String -
-

Request — composable best practices

import { Request } from '@cc-heart/utils'
import type { RequestInterceptor } from '@cc-heart/utils' -
-

Principle: small instances + composition

Prefer small focused instances over one instance with all interceptors. Combine them with factory functions:

-
// ── Building blocks: interceptors are pure functions ──
const addAuth: RequestInterceptor = (config) => ({
...config,
headers: { ...config.headers, Authorization: `Bearer ${getToken()}` }
})

const addLang: RequestInterceptor = (config) => ({
...config,
headers: { ...config.headers, 'Accept-Language': 'zh-CN' }
})

const handleError = (err: unknown) => {
toast.error(err)
return err
}

// ── Compose: each instance handles one concern ──
const authApi = new Request('https://api.example.com')
authApi.useRequestInterceptor(addAuth)
authApi.useRequestInterceptor(addLang)
authApi.useErrorInterceptor(handleError)

const publicApi = new Request('https://open.api.com')

// ── Or use helper functions ──
function withInterceptors(
req: Request,
interceptors: RequestInterceptor[]
): Request {
interceptors.forEach((i) => req.useRequestInterceptor(i))
return req
}
function withBaseUrl(url: string): Request {
return new Request(url)
}

const api = withInterceptors(withBaseUrl('https://api.example.com'), [
addAuth,
addLang,
]) -
-

Four calling styles

const api = new Request('https://api.example.com')

// Style 1: async/await (recommended)
try {
const user = await api.get<User>('/users/1')
setUser(user)
} catch (e) {
if ((e as Error).name === 'AbortError') return // user cancelled
toast.error(e)
}

// Style 2: lifecycle callbacks (React setState friendly)
api.get('/users', {
onSuccess: setUsers,
onError: toast.error,
onFinally: () => setLoading(false),
})

// Style 3: promise chaining
api.get<number>('/count')
.then(n => n * 2)
.then(setCount)
.catch(toast.error)

// Style 4: mixed (await + callbacks, non-conflicting)
const data = await api.get('/users', { onFinally: () => setLoading(false) }) -
-

Entity — group by domain

// entities/user.ts
const api = new Request('/api')

export const UserApi = {
list: (page: number) =>
api.get<User[]>('/users', { page }),
get: (id: number) =>
api.get<User>(`/users/${id}`),
create: (data: CreateUserDto) =>
api.post<User>('/users', data, { onSuccess: () => toast.success('created') }),
}

// Usage
const users = await UserApi.list(1) -
-

Cache & dedup — isolated per instance

const cachedApi = new Request('/api')
// cache and dedup are instance-level, different Request instances are isolated
const data1 = await cachedApi.get('/users', {}, { cache: { ttl: 5000 } })
const data2 = await cachedApi.get('/users', {}, { cache: { ttl: 5000 } }) // cache hit

const otherApi = new Request('/api') // isolated cache -
-

LICENSE

@cc-heart/utils is licensed under the MIT License.

-
\ No newline at end of file diff --git a/docs/interfaces/CacheConfig.html b/docs/interfaces/CacheConfig.html deleted file mode 100644 index 3e215411..00000000 --- a/docs/interfaces/CacheConfig.html +++ /dev/null @@ -1,3 +0,0 @@ -CacheConfig | @cc-heart/utils

Interface CacheConfig

interface CacheConfig {
    ttl: number;
}

Properties

ttl -

Properties

ttl: number

Time-to-live in milliseconds.

-
\ No newline at end of file diff --git a/docs/interfaces/RequestConfig.html b/docs/interfaces/RequestConfig.html deleted file mode 100644 index 9ceb1a4f..00000000 --- a/docs/interfaces/RequestConfig.html +++ /dev/null @@ -1,34 +0,0 @@ -RequestConfig | @cc-heart/utils

Interface RequestConfig

interface RequestConfig {
    body?: BodyInit;
    cache?: boolean | CacheConfig;
    credentials?: RequestCredentials;
    data?: unknown;
    dispatcher?: Dispatcher;
    duplex?: "half";
    errorInterceptors?: ErrorInterceptor[];
    headers?: HeadersInit;
    integrity?: string;
    keepalive?: boolean;
    method?: string;
    mode?: RequestMode;
    onAbort?: (() => void);
    onDownloadProgress?: ((loaded, total) => void);
    onError?: ((error) => void);
    onFinally?: (() => void);
    onSuccess?: ((data) => void);
    params?: Record<PropertyKey, any>;
    redirect?: RequestRedirect;
    referrer?: string;
    referrerPolicy?: ReferrerPolicy;
    requestInterceptors?: RequestInterceptor[];
    responseInterceptors?: ResponseInterceptor<any, any>[];
    retry?: number;
    retryDelay?: number;
    signal?: AbortSignal;
    timeout?: number;
    window?: null;
}

Hierarchy

  • RequestInit
    • RequestConfig

Properties

body?: BodyInit
cache?: boolean | CacheConfig

Response cache configuration. true = default TTL (5000ms).

-
credentials?: RequestCredentials
data?: unknown
dispatcher?: Dispatcher
duplex?: "half"
errorInterceptors?: ErrorInterceptor[]
headers?: HeadersInit
integrity?: string
keepalive?: boolean
method?: string
mode?: RequestMode
onAbort?: (() => void)

Type declaration

    • (): void
    • Returns void

onDownloadProgress?: ((loaded, total) => void)

Download progress callback. Receives (loadedBytes, totalBytes).

-

Type declaration

    • (loaded, total): void
    • Parameters

      • loaded: number
      • total: number

      Returns void

onError?: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: unknown

      Returns void

onFinally?: (() => void)

Type declaration

    • (): void
    • Returns void

onSuccess?: ((data) => void)

Type declaration

    • (data): void
    • Parameters

      • data: unknown

      Returns void

params?: Record<PropertyKey, any>
redirect?: RequestRedirect
referrer?: string
referrerPolicy?: ReferrerPolicy
requestInterceptors?: RequestInterceptor[]
responseInterceptors?: ResponseInterceptor<any, any>[]
retry?: number

Max retry count on failure. 0 = no retry.

-
retryDelay?: number

Delay between retries in milliseconds.

-
signal?: AbortSignal
timeout?: number

Request timeout in milliseconds. 0 or undefined = no timeout.

-
window?: null
\ No newline at end of file diff --git a/docs/interfaces/RequestHandle.html b/docs/interfaces/RequestHandle.html deleted file mode 100644 index d42baa56..00000000 --- a/docs/interfaces/RequestHandle.html +++ /dev/null @@ -1,5 +0,0 @@ -RequestHandle | @cc-heart/utils

Interface RequestHandle<T>

interface RequestHandle<T> {
    abort: (() => void);
    catch: (<R>(onrejected?) => Promise<T | R>);
    finally: ((onfinally?) => Promise<T>);
    then: (<R1, R2>(onfulfilled?, onrejected?) => Promise<R1 | R2>);
}

Type Parameters

  • T

Properties

Properties

abort: (() => void)

Type declaration

    • (): void
    • Returns void

catch: (<R>(onrejected?) => Promise<T | R>)

Type declaration

    • <R>(onrejected?): Promise<T | R>
    • Type Parameters

      • R = never

      Parameters

      • Optional onrejected: null | ((reason) => R | PromiseLike<R>)

      Returns Promise<T | R>

finally: ((onfinally?) => Promise<T>)

Type declaration

    • (onfinally?): Promise<T>
    • Parameters

      • Optional onfinally: null | (() => void)

      Returns Promise<T>

then: (<R1, R2>(onfulfilled?, onrejected?) => Promise<R1 | R2>)

Type declaration

    • <R1, R2>(onfulfilled?, onrejected?): Promise<R1 | R2>
    • Type Parameters

      • R1 = T
      • R2 = never

      Parameters

      • Optional onfulfilled: null | ((value) => R1 | PromiseLike<R1>)
      • Optional onrejected: null | ((reason) => R2 | PromiseLike<R2>)

      Returns Promise<R1 | R2>

\ No newline at end of file diff --git a/docs/modules.html b/docs/modules.html deleted file mode 100644 index b8dce4b4..00000000 --- a/docs/modules.html +++ /dev/null @@ -1,61 +0,0 @@ -@cc-heart/utils
\ No newline at end of file diff --git a/docs/types/ErrorInterceptor.html b/docs/types/ErrorInterceptor.html deleted file mode 100644 index 9fd9b4cf..00000000 --- a/docs/types/ErrorInterceptor.html +++ /dev/null @@ -1 +0,0 @@ -ErrorInterceptor | @cc-heart/utils

Type alias ErrorInterceptor

ErrorInterceptor: ((error) => unknown | Promise<unknown>)

Type declaration

    • (error): unknown | Promise<unknown>
    • Parameters

      • error: unknown

      Returns unknown | Promise<unknown>

\ No newline at end of file diff --git a/docs/types/RequestInterceptor.html b/docs/types/RequestInterceptor.html deleted file mode 100644 index 77af8d22..00000000 --- a/docs/types/RequestInterceptor.html +++ /dev/null @@ -1 +0,0 @@ -RequestInterceptor | @cc-heart/utils

Type alias RequestInterceptor

RequestInterceptor: ((config) => RequestInit | Promise<RequestInit>)

Type declaration

    • (config): RequestInit | Promise<RequestInit>
    • Parameters

      • config: RequestInit

      Returns RequestInit | Promise<RequestInit>

\ No newline at end of file diff --git a/docs/types/ResponseInterceptor.html b/docs/types/ResponseInterceptor.html deleted file mode 100644 index c540e353..00000000 --- a/docs/types/ResponseInterceptor.html +++ /dev/null @@ -1 +0,0 @@ -ResponseInterceptor | @cc-heart/utils

Type alias ResponseInterceptor<T, U>

ResponseInterceptor<T, U>: ((data) => U | Promise<U>)

Type Parameters

  • T = unknown
  • U = unknown

Type declaration

    • (data): U | Promise<U>
    • Parameters

      • data: T

      Returns U | Promise<U>

\ No newline at end of file diff --git a/docs/variables/HTTP_STATUS.html b/docs/variables/HTTP_STATUS.html deleted file mode 100644 index 3dd9c9fb..00000000 --- a/docs/variables/HTTP_STATUS.html +++ /dev/null @@ -1 +0,0 @@ -HTTP_STATUS | @cc-heart/utils

Variable HTTP_STATUSConst

HTTP_STATUS: {
    ACCEPTED: 202;
    AMBIGUOUS: 300;
    BAD_GATEWAY: 502;
    BAD_REQUEST: 400;
    CONFLICT: 409;
    CONTINUE: 100;
    CREATED: 201;
    EARLYHINTS: 103;
    EXPECTATION_FAILED: 417;
    FAILED_DEPENDENCY: 424;
    FORBIDDEN: 403;
    FOUND: 302;
    GATEWAY_TIMEOUT: 504;
    GONE: 410;
    HTTP_VERSION_NOT_SUPPORTED: 505;
    INTERNAL_SERVER_ERROR: 500;
    I_AM_A_TEAPOT: 418;
    LENGTH_REQUIRED: 411;
    METHOD_NOT_ALLOWED: 405;
    MISDIRECTED: 421;
    MOVED_PERMANENTLY: 301;
    NON_AUTHORITATIVE_INFORMATION: 203;
    NOT_ACCEPTABLE: 406;
    NOT_FOUND: 404;
    NOT_IMPLEMENTED: 501;
    NOT_MODIFIED: 304;
    NO_CONTENT: 204;
    OK: 200;
    PARTIAL_CONTENT: 206;
    PAYLOAD_TOO_LARGE: 413;
    PAYMENT_REQUIRED: 402;
    PERMANENT_REDIRECT: 308;
    PRECONDITION_FAILED: 412;
    PRECONDITION_REQUIRED: 428;
    PROCESSING: 102;
    PROXY_AUTHENTICATION_REQUIRED: 407;
    REQUESTED_RANGE_NOT_SATISFIABLE: 416;
    REQUEST_TIMEOUT: 408;
    RESET_CONTENT: 205;
    SEE_OTHER: 303;
    SERVICE_UNAVAILABLE: 503;
    SWITCHING_PROTOCOLS: 101;
    TEMPORARY_REDIRECT: 307;
    TOO_MANY_REQUESTS: 429;
    UNAUTHORIZED: 401;
    UNPROCESSABLE_ENTITY: 422;
    UNSUPPORTED_MEDIA_TYPE: 415;
    URI_TOO_LONG: 414;
} = ...

Type declaration

  • Readonly ACCEPTED: 202
  • Readonly AMBIGUOUS: 300
  • Readonly BAD_GATEWAY: 502
  • Readonly BAD_REQUEST: 400
  • Readonly CONFLICT: 409
  • Readonly CONTINUE: 100
  • Readonly CREATED: 201
  • Readonly EARLYHINTS: 103
  • Readonly EXPECTATION_FAILED: 417
  • Readonly FAILED_DEPENDENCY: 424
  • Readonly FORBIDDEN: 403
  • Readonly FOUND: 302
  • Readonly GATEWAY_TIMEOUT: 504
  • Readonly GONE: 410
  • Readonly HTTP_VERSION_NOT_SUPPORTED: 505
  • Readonly INTERNAL_SERVER_ERROR: 500
  • Readonly I_AM_A_TEAPOT: 418
  • Readonly LENGTH_REQUIRED: 411
  • Readonly METHOD_NOT_ALLOWED: 405
  • Readonly MISDIRECTED: 421
  • Readonly MOVED_PERMANENTLY: 301
  • Readonly NON_AUTHORITATIVE_INFORMATION: 203
  • Readonly NOT_ACCEPTABLE: 406
  • Readonly NOT_FOUND: 404
  • Readonly NOT_IMPLEMENTED: 501
  • Readonly NOT_MODIFIED: 304
  • Readonly NO_CONTENT: 204
  • Readonly OK: 200
  • Readonly PARTIAL_CONTENT: 206
  • Readonly PAYLOAD_TOO_LARGE: 413
  • Readonly PAYMENT_REQUIRED: 402
  • Readonly PERMANENT_REDIRECT: 308
  • Readonly PRECONDITION_FAILED: 412
  • Readonly PRECONDITION_REQUIRED: 428
  • Readonly PROCESSING: 102
  • Readonly PROXY_AUTHENTICATION_REQUIRED: 407
  • Readonly REQUESTED_RANGE_NOT_SATISFIABLE: 416
  • Readonly REQUEST_TIMEOUT: 408
  • Readonly RESET_CONTENT: 205
  • Readonly SEE_OTHER: 303
  • Readonly SERVICE_UNAVAILABLE: 503
  • Readonly SWITCHING_PROTOCOLS: 101
  • Readonly TEMPORARY_REDIRECT: 307
  • Readonly TOO_MANY_REQUESTS: 429
  • Readonly UNAUTHORIZED: 401
  • Readonly UNPROCESSABLE_ENTITY: 422
  • Readonly UNSUPPORTED_MEDIA_TYPE: 415
  • Readonly URI_TOO_LONG: 414
\ No newline at end of file diff --git a/docs/variables/MIME_TYPES.html b/docs/variables/MIME_TYPES.html deleted file mode 100644 index df028cac..00000000 --- a/docs/variables/MIME_TYPES.html +++ /dev/null @@ -1 +0,0 @@ -MIME_TYPES | @cc-heart/utils

Variable MIME_TYPESConst

MIME_TYPES: {
    7Z: "application/x-7z-compressed";
    7ZIP: "application/x-7z-compressed";
    ALZ: "application/x-alz";
    APK: "application/vnd.android.package-archive";
    AVI: "video/x-msvideo";
    BAT: "application/x-msdownload";
    BMP: "image/bmp";
    BZ2: "application/x-bzip2";
    C: "text/x-csrc";
    CPP: "text/x-c++src";
    CS: "text/plain";
    CSS: "text/css";
    CSV: "text/csv";
    DLL: "application/vnd.microsoft.portable-executable";
    DMG: "application/x-apple-diskimage";
    DOC: "application/msword";
    DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
    DOT: "application/msword";
    DOTX: "application/vnd.openxmlformats-officedocument.wordprocessingml.template";
    DWG: "application/acad";
    DXF: "application/vnd.dxf";
    EML: "message/rfc822";
    EOT: "application/vnd.ms-fontobject";
    EPUB: "application/epub+zip";
    EXE: "application/vnd.microsoft.portable-executable";
    FLAC: "audio/flac";
    FLV: "video/x-flv";
    GIF: "image/gif";
    GO: "text/plain";
    GZ: "application/gzip";
    HTM: "text/html";
    HTML: "text/html";
    ICO: "image/vnd.microsoft.icon";
    JAVA: "text/x-java-source";
    JAVASCRIPT: "application/javascript";
    JPEG: "image/jpeg";
    JPG: "image/jpeg";
    JSON: "application/json";
    JSONLD: "application/ld+json";
    KT: "text/plain";
    M3U8: "application/vnd.apple.mpegurl";
    M4A: "audio/mp4";
    MAP: "application/json";
    MKV: "video/x-matroska";
    MOV: "video/quicktime";
    MP3: "audio/mpeg";
    MP4: "video/mp4";
    MPD: "application/dash+xml";
    MSG: "application/vnd.ms-outlook";
    MSI: "application/x-msdownload";
    OBJ: "application/octet-stream";
    OGG: "audio/ogg";
    OTF: "font/otf";
    PDF: "application/pdf";
    PHP: "application/x-httpd-php";
    PNG: "image/png";
    POT: "application/vnd.ms-powerpoint";
    POTX: "application/vnd.openxmlformats-officedocument.presentationml.template";
    PPSX: "application/vnd.openxmlformats-officedocument.presentationml.slideshow";
    PPT: "application/vnd.ms-powerpoint";
    PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
    PY: "text/x-python";
    RAR: "application/vnd.rar";
    RB: "application/x-ruby";
    RTF: "application/rtf";
    STL: "application/sla";
    SVG: "image/svg+xml";
    SWF: "application/x-shockwave-flash";
    SWIFT: "text/x-swift";
    TAR: "application/x-tar";
    TORRENT: "application/x-bittorrent";
    TS: "video/mp2t";
    TTF: "font/ttf";
    TXT: "text/plain";
    WASM: "application/wasm";
    WAV: "audio/wav";
    WEBM: "video/webm";
    WEBP: "image/webp";
    WMV: "video/x-ms-wmv";
    WOFF: "font/woff";
    WOFF2: "font/woff2";
    XLS: "application/vnd.ms-excel";
    XLSM: "application/vnd.ms-excel.sheet.macroEnabled.12";
    XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
    XLT: "application/vnd.ms-excel";
    XML: "application/xml";
    ZIP: "application/zip";
} = ...

Type declaration

  • Readonly 7Z: "application/x-7z-compressed"
  • Readonly 7ZIP: "application/x-7z-compressed"
  • Readonly ALZ: "application/x-alz"
  • Readonly APK: "application/vnd.android.package-archive"
  • Readonly AVI: "video/x-msvideo"
  • Readonly BAT: "application/x-msdownload"
  • Readonly BMP: "image/bmp"
  • Readonly BZ2: "application/x-bzip2"
  • Readonly C: "text/x-csrc"
  • Readonly CPP: "text/x-c++src"
  • Readonly CS: "text/plain"
  • Readonly CSS: "text/css"
  • Readonly CSV: "text/csv"
  • Readonly DLL: "application/vnd.microsoft.portable-executable"
  • Readonly DMG: "application/x-apple-diskimage"
  • Readonly DOC: "application/msword"
  • Readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
  • Readonly DOT: "application/msword"
  • Readonly DOTX: "application/vnd.openxmlformats-officedocument.wordprocessingml.template"
  • Readonly DWG: "application/acad"
  • Readonly DXF: "application/vnd.dxf"
  • Readonly EML: "message/rfc822"
  • Readonly EOT: "application/vnd.ms-fontobject"
  • Readonly EPUB: "application/epub+zip"
  • Readonly EXE: "application/vnd.microsoft.portable-executable"
  • Readonly FLAC: "audio/flac"
  • Readonly FLV: "video/x-flv"
  • Readonly GIF: "image/gif"
  • Readonly GO: "text/plain"
  • Readonly GZ: "application/gzip"
  • Readonly HTM: "text/html"
  • Readonly HTML: "text/html"
  • Readonly ICO: "image/vnd.microsoft.icon"
  • Readonly JAVA: "text/x-java-source"
  • Readonly JAVASCRIPT: "application/javascript"
  • Readonly JPEG: "image/jpeg"
  • Readonly JPG: "image/jpeg"
  • Readonly JSON: "application/json"
  • Readonly JSONLD: "application/ld+json"
  • Readonly KT: "text/plain"
  • Readonly M3U8: "application/vnd.apple.mpegurl"
  • Readonly M4A: "audio/mp4"
  • Readonly MAP: "application/json"
  • Readonly MKV: "video/x-matroska"
  • Readonly MOV: "video/quicktime"
  • Readonly MP3: "audio/mpeg"
  • Readonly MP4: "video/mp4"
  • Readonly MPD: "application/dash+xml"
  • Readonly MSG: "application/vnd.ms-outlook"
  • Readonly MSI: "application/x-msdownload"
  • Readonly OBJ: "application/octet-stream"
  • Readonly OGG: "audio/ogg"
  • Readonly OTF: "font/otf"
  • Readonly PDF: "application/pdf"
  • Readonly PHP: "application/x-httpd-php"
  • Readonly PNG: "image/png"
  • Readonly POT: "application/vnd.ms-powerpoint"
  • Readonly POTX: "application/vnd.openxmlformats-officedocument.presentationml.template"
  • Readonly PPSX: "application/vnd.openxmlformats-officedocument.presentationml.slideshow"
  • Readonly PPT: "application/vnd.ms-powerpoint"
  • Readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
  • Readonly PY: "text/x-python"
  • Readonly RAR: "application/vnd.rar"
  • Readonly RB: "application/x-ruby"
  • Readonly RTF: "application/rtf"
  • Readonly STL: "application/sla"
  • Readonly SVG: "image/svg+xml"
  • Readonly SWF: "application/x-shockwave-flash"
  • Readonly SWIFT: "text/x-swift"
  • Readonly TAR: "application/x-tar"
  • Readonly TORRENT: "application/x-bittorrent"
  • Readonly TS: "video/mp2t"
  • Readonly TTF: "font/ttf"
  • Readonly TXT: "text/plain"
  • Readonly WASM: "application/wasm"
  • Readonly WAV: "audio/wav"
  • Readonly WEBM: "video/webm"
  • Readonly WEBP: "image/webp"
  • Readonly WMV: "video/x-ms-wmv"
  • Readonly WOFF: "font/woff"
  • Readonly WOFF2: "font/woff2"
  • Readonly XLS: "application/vnd.ms-excel"
  • Readonly XLSM: "application/vnd.ms-excel.sheet.macroEnabled.12"
  • Readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
  • Readonly XLT: "application/vnd.ms-excel"
  • Readonly XML: "application/xml"
  • Readonly ZIP: "application/zip"
\ No newline at end of file diff --git a/docs/variables/REQUEST_METHOD.html b/docs/variables/REQUEST_METHOD.html deleted file mode 100644 index 7577cfef..00000000 --- a/docs/variables/REQUEST_METHOD.html +++ /dev/null @@ -1 +0,0 @@ -REQUEST_METHOD | @cc-heart/utils

Variable REQUEST_METHODConst

REQUEST_METHOD: {
    ALL: "ALL";
    DELETE: "DELETE";
    GET: "GET";
    HEAD: "HEAD";
    OPTIONS: "OPTIONS";
    PATCH: "PATCH";
    POST: "POST";
    PUT: "PUT";
    SEARCH: "SEARCH";
} = ...

Type declaration

  • Readonly ALL: "ALL"
  • Readonly DELETE: "DELETE"
  • Readonly GET: "GET"
  • Readonly HEAD: "HEAD"
  • Readonly OPTIONS: "OPTIONS"
  • Readonly PATCH: "PATCH"
  • Readonly POST: "POST"
  • Readonly PUT: "PUT"
  • Readonly SEARCH: "SEARCH"
\ No newline at end of file