UNPKG

@codeparticle/rdx

Version:

RDX is a module based redux framework that generates boilerplate for you.

2 lines 807 B
import{a as d}from"./chunk-VNXITUCS.js";import{a as b}from"./chunk-RCWRLVNU.js";import{a as t}from"./chunk-HR27527W.js";import{a as y}from"./chunk-V7AZGV4Q.js";import{a as l}from"./chunk-YK4EDBX6.js";import{a as f}from"./chunk-5GH5NPZK.js";var m=e=>Array.isArray(e)?t.array:f(e)?Object.is(l,e)?t.api:t.object:e===Number(e)&&!isNaN(Number(e))?t.number:e===Boolean(e)?t.boolean:e===String(e)?t.string:t.default,j=(e,r,i,o="")=>{let a=r,n=m(e),s=b(n,e),c=n===t.api,p=o?`${o}.${r}`:`${r}`,u=y(s)?O(s,p,i):{};return Object.assign({reducerKey:a,path:p,handlerType:n,initialState:s,isApiReducer:c,children:u},d(p||`${i}.${r}`,r&&i?i:""))},O=(e,r,i="")=>{let o={},a=Object.keys(e),n=a.length;for(;n--;){let s=a[n],c=e[s];o[a[n]]=j(c,s,i,r)}return o};export{j as a,O as b}; //# sourceMappingURL=chunk-BK3M2VDX.js.map