UNPKG

@qundus/qstate

Version:
2 lines 651 B
'use strict';var l={preact:"PREACT",react:"REACT",solid:"SOLID",solid_unwrapped:"SOLID-UNWRAPPED",solid_from:"SOLID-FROM",solid_from_unwrapped:"SOLID-FROM-UNWRAPPED",svelte:"SVELTE",vanilla:"VANILLA",vue:"VUE"},a="hookName";function i(s){let r=s==null?void 0:s.hooks,o=null;if(r!=null){o={};for(let e in r){let t=r[e][a];o[t]={key:e};}}return {hookNames:l,hooksUsed:o,hasHooks:o!=null,getHook:e=>o==null?false:e in o?o[e].key:false,getHooks:(...e)=>{if(o==null)return false;let n=[];for(let t of e)t in o&&n.push(o[t].key);return n.length>0?n:(n=null,false)}}}exports.hooksInUse=i;//# sourceMappingURL=index.cjs.map //# sourceMappingURL=index.cjs.map