@ghostry/finity-solidjs
Version:
Finite state management with exhaustiveness and transition enforcement for TypeScript.
2 lines • 1.45 kB
JavaScript
import*as t from"@ghostry/finity-core";import*as e from"./Render.js";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}var u=function(t){"use strict";if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function u(){var t,n,c,i,s;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return n=u,c=arguments,n=r(n),i=t=function(t,e){var r;if(e&&("object"==((r=e)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,o()?Reflect.construct(n,c||[],r(this).constructor):n.apply(this,c)),s=function(){return(0,e.Render)({state:t.state,cases:t.cases})},"use"in i?Object.defineProperty(i,"use",{value:s,enumerable:!0,configurable:!0,writable:!0}):i.use=s,t}return u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),t&&n(u,t),u}(t.ExhaustiveSwitchInstance);function c(t){return function(t){return new u(t,[])}}export{c as default};
//# sourceMappingURL=useRender.js.map