{"_id":"@appnest/typed-actions","_rev":"9-6ea31875686a1ebc4aa12f1701c880ee","name":"@appnest/typed-actions","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@appnest/typed-actions","version":"1.0.0","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"rollup-plugin-commonjs":"^9.2.0","rollup-plugin-typescript2":"^0.17.2","rollup":"^0.67.0","typescript":"^3.1.6"},"gitHead":"08c0917e363d80682d8b5fd471dd454b502c4265","_id":"@appnest/typed-actions@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-4AUEFHGJdAbyJ9fRhOJDZIVqePV/1rY1SvsiM8pCF6U4a1YAaC/plWn/h7C4/6/LmOGMkCKNUQfRWrjgsqtVgg==","shasum":"183a32e923919ec1679fd6c2509fc7f5437265e1","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.0.tgz","fileCount":39,"unpackedSize":51467,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb5guVCRA9TVsSAnZWagAArIIP/0Mse4l0+vgiDw/oRf2i\nRDzysZ3JT32uCPbuJwN6wCUUwhS+vphQvTlIWakEQKdcz70YPXR+c3y0iRiW\n9TyYRDamsYsfdPtHocfsxjk+kPzADXeyPsEHAnQ7I0ML4W+yEnPpynELhzq8\nIelaFvGcUUIAEJKrxQ209Ouv0JEiVNP+PDqC6CmJSSlHv7NdGft4FLuDu+O8\nUy5H/iOE2JbzD9ObNXrvBYwOpUzGiJnHxl1SqMC4uwx00gdUv2/EL7IQipE7\n4I1O4Aeg2XgiLl0UWBgYDU5TjmSTFt8DwqHFk4/+dtF+TBfGh2iwOhkD5W9a\nWujyQWd6pY5cuQFzCrHPwr43SIhNq27ZafISdzPzPVAYDj7d486SsFY0bhI+\nRXl5kQJAh14udh/aVSp7XN5TT6X5p1HfTs/flXQxpd7XAw6zmI7zlFofBKLP\nkTXX0T+5IutuddHq26TE2yHmJy+HEHO+WlKrDmEG3c3Bj6dJOIBEZJj9Dz8w\nVVeWVXi7kmqFa02Yf3L3Qu9crH/J4xJsXYMpse+kvaV+LKkmHC9+1zO0xYb4\ng4LoM2c78qyozFDReM5+PLZMY1vdZS138ICAZPVM08ljkoh8P+NxofD/pxPg\nUsKbIv2UspvI9kduZQ3DW6w3pJEiSnSDlh9t+T2neoT9HWJrpHLmWOj0YddJ\noibO\r\n=He0t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANeyfC+5480GJ5JdGGNjkAcJfT2qT2D8tUKTbMgTNuQAiAITQ+lV/afqwfiv3ZuIyTYGUSp364/ZJMwyEKbRZd/8Q=="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.0_1541802898895_0.5492700057321576"},"_hasShrinkwrap":false},"1.0.1":{"name":"@appnest/typed-actions","version":"1.0.1","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"@wessberg/rollup-plugin-ts":"^1.1.3","rollup":"^0.67.0","typescript":"^3.1.6"},"gitHead":"514f0cac7372b8bafb7faa42e6fa119d6fa90e28","_id":"@appnest/typed-actions@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-l98/j83WhGF0jKBb75Fbk1VkXln8kg+ry4IWmVnBfGzCekZphBizPVWLP7W9dj6mKJi0YM5GIGdQdGoTIgZjcA==","shasum":"27b9877e3073713f81d99b80130dc8d1ce3fb3b8","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.1.tgz","fileCount":8,"unpackedSize":48901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7BA8CRA9TVsSAnZWagAAexoQAIOr4j4Ilyy/yFY7bRHw\nsXY0AXw7jeZT+Q/i+zGZkTuPqxSHiJM9EBoH0zCnQCZ9hhrKcVUAa5bR0YSS\nFzYVUfOjmel8t58nqJeOdE2EcopCdkJhv0alWXBgGGIxObJfNmVgw9E9omii\nkU/drOYZUkr7V+f6St6gITZiteHdfgD/wj0ucv2IQyBOV9I0rVjySF3iM6Bi\nJqBhb/gXebGuxpzHOqMNMkYLN7Vmlhgr7qSUSsL/vi/7myVvCrRk0dUsYY08\n5+Aw1yyQ99sE0d9OrQmCuP4ZfqQXpw4GOd3vGyWUrk1VBccE5zu7GIHt19wo\n1gO7Kw682asm0Ws5Hs22vSy6sQ3vYO8uoedupOlVdc+JuO0UAjaMm1pCXBJF\nmJw4P2S2govz7fsIiWipR59QyW5dKTqLboIn7W+FTMCNAs6xD69sTV400Ab3\nHqxjgQFbZqGJbTpunTX3nmM4mFzKY91VlXP2bCNrd7hkGpgdynbtbwySo5/w\nXqmG95tVasv+gwvPTJQxcV/KupfLlUHC84GdONSntVLDrffNZclFpYCm2eiA\nGAyiQJ0IEZ3uAWceTLFnZewyOCN1nKT5GtoBHpzQR0XuA8kontXzBJmVkqkI\nOtENeKYNSRcXLDH3DqL+K/JtjYoF35DeBsQg1lTCx+HE5eshBnY6+iwGqNb7\ny0oo\r\n=bb8L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5I9oU0vsOkkCnonZGxoPZIorvCYHq4K8ENGBSfNEKyAIgZc21b7oSfIiCUlb5kwJJZrsL6+6Bn0HtggsJ/5NpcLc="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.1_1542197307700_0.5594736575453438"},"_hasShrinkwrap":false},"1.0.2":{"name":"@appnest/typed-actions","version":"1.0.2","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.esm.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"@wessberg/rollup-plugin-ts":"^1.1.3","rollup":"^0.67.0","typescript":"^3.1.6"},"gitHead":"3808dd6b97622141bb47aa3fd2c3fa8f9595ed90","_id":"@appnest/typed-actions@1.0.2","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-ltC5fHsJq4AV9tdMUZ2YafolcPFUirDBv6BLmqdAmovjPibocheY5jcgxMGTrCZFcAZzisf7atFD64xscwdRuA==","shasum":"6b1ff270f72c84db0027461e686fa66fae565f03","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.2.tgz","fileCount":8,"unpackedSize":48905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb7UI+CRA9TVsSAnZWagAAndwP/1Rt0fDVXABNz3hBQV9h\nmvgU8rQovrZQT/jv0H2ptJ463yyPELxi/6DpWeED/lnZS6u7xEIUdumh3Nis\n5dWwBYI2HNiIJ2JkRMlIZ7zZJMBrJ0ldibmYajO0a1+vBtmBvskIag1SgKKo\nFUBn5zEJbkOUeZ2bSGUOrIF1Ah/SospiLqxPZyQ8YM1kZA90ZXUdM+gCrciD\nvNk15ilyDKbGe7Ylf656pfEvmC0A8k26Qc/HG906e15YB6k/xn4NTODlA1m8\nmCZivWrLbx5eje2ONwztTnRuDjkH7onK4wLcpsNhWR/HijCJGxwRw8x9aObz\ntCIHxzhv4fF1bHIlldZhYQaykj6aeW5IyiN+6ZvVqG1SGu+EdWAPj6C+Vv/G\nXb7pZKSikOI4kLxqdhgMPQagM0JtCynj3rjPJoUj2adNDiPg4hlPOTgLpmNk\n1kq91DXXwpG8vaiDnJsYE9IhT4DlwVT7yKI5Zz+Vu1/PZYDgQnLvaYfW3PYt\n+SKZ7OtK6Fam+BixHuE98+A+reawCursNteRAaM3VI9o4j1rVnKv7l8tj2Px\nwMLDsibwkWrmcSGIVs9poMgUJMJrDacExLkwQa0geH6Xb8qc97Quaw8tgWn7\n7bHXGWfZ2+/zoDN2+hH/Sv5He3xOXwnYM/blk7AhG9WF41X6uWortnUyaodk\nODD2\r\n=k1l9\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9gLtaJ8T6rw5A6ZCV1+iptXuEEo+rZEaJBWqZjEb0JAIhALxWPkbftXC0KhGuNERAfhPFXk1w8vdAZxyYzuGYixka"}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.2_1542275646122_0.9722941115615202"},"_hasShrinkwrap":false},"1.0.3":{"name":"@appnest/typed-actions","version":"1.0.3","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.esm.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"@wessberg/rollup-plugin-ts":"^1.1.3","rollup":"^0.67.0","typescript":"^3.1.6"},"gitHead":"aa1534ad8ab2559bfd5466ac9aa6a01e8b1804b9","_id":"@appnest/typed-actions@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-hOUjVp5O1CCiQek1+A5j9V4FLocx6+CnQIV42S1YYxbTpESMK7HHRvXcb2TkXHF4x2+VXxH3UsjXgBChBIzX8Q==","shasum":"b1adbeaaa24d5bed37718dff461c6bfaf4db6247","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.3.tgz","fileCount":8,"unpackedSize":49879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSdosCRA9TVsSAnZWagAAwEQP/RfyQUrIs+/VEXOEhIfA\nz78eNWaXn0TrOmrNwYWm4B6J+zOjDdl3xLQHDytquXagtvvW0L1m0XBD7oPq\nnNALNUwf1YBcxdxDKV13FLsv/n6KRel8lBdYT+0ecWjCJimOyvhmGa1MS/jY\nf9N4UNM8rcE5ME9YyQcNblbMMJ2a6VLHZtyU1BveppelSjLc3Vjz37bGF+8c\n2nKCzkIs6dW5WHP/W65ifY+I3eywHgIARAgQU5M3ctf/HbaZkxjBL71PdN3z\nIAo+uhIAEkQyx5cGH+a9WZuqYAqUlsFpSjoXn7vC85gs3h7Kl+YxxyX9rCTn\nKXzAJB6LOBcxgfEDc/5mT9ssWvJYRyd9ULoDx62ggh7P2W17XeoquPwaqQDw\n3yJDs4DauP0PJe+IkDiQnP9ZGm9ipNYav4b4M6s+HZnANWcYse25nxvo/BkX\ncF7928xi4PC1jvonXkSF1T/DCJs8Y0gxsU0XvukLIzz9IJ11gdjQRJ950oAs\nLqSRrnoaTO5kZpiQdSk1qcEl6aFeB5Mr9MdzKAppV2BycKD7iD8VADWJ9sQH\nhzsnHvQpqOauAMieMPb4+4wLNCisXAma0YxjIxiX0VrQzQ+mdMq9nq5Lq3d0\nsQJFg33Jbmsqf9VzdyAyghwzV0Ux9yTbIwe9joFKe6tIT4ZiT0nTrvtRmR+N\n6RgH\r\n=cWwM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu5BzeKIZSo64hIAxPcoqSd7fCj4Yl8/tdjM4OxLy9RgIhAPXlYKg5lNLpDhN8vbWOjwLHoarffgWwSRyzLXVr58bs"}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.3_1548343851231_0.9591329540248663"},"_hasShrinkwrap":false},"1.0.4":{"name":"@appnest/typed-actions","version":"1.0.4","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.esm.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"@wessberg/rollup-plugin-ts":"^1.1.3","rollup":"^0.67.0","typescript":"^3.1.6"},"gitHead":"7d07e0396442dc54d5775a49d14b40fea9e32d09","_id":"@appnest/typed-actions@1.0.4","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-Wq3V6eKXQpveF2wzj59R10upW8IFztnmpBb/InReLjP/q7sBTwWh/2W/HM8RhMlZ1FjuEk93KnKuZZXqShWc/Q==","shasum":"96e659f746a528dc1c1c277cea5b2bb42d0cce04","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.4.tgz","fileCount":8,"unpackedSize":49927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUFGjCRA9TVsSAnZWagAARFEP/0mFQsyBkdI76nP7+OHT\nk0Goo+JxcoIdCYYQ6IG1Ti1/UqkDbHvarH87+JvMNTCoUb/Wd0AgzmYcxl1V\ni7TWi0GsRyT3/4tj0o+SwT4hly3vjYN5NCWxoGiza2VpobHTBwP9dW3+JYol\n1z8cTtBoMJdbpAEt7ktZoJm+o725ny0MhjimxGTXn1c4LZmrDyrBHa7vTjzV\nZSFfA7EFY+JbcrT0FSP1aqTKCrkBLsda5MDa9aQ7cG8fGwsODM7A9rin0h2T\nCExqYTXbJmK/fmhCzgBoQ9TsiLOjAT0pGiGWwN7z0USIp5HlW6Mpq5ijy2oZ\nSNm4V7ewFLjwAZJW+ACCo4o21a+zdQLsG+D6qglrnXR2z+0jnP4047qKL3fP\ncyIEuYm2FGmeDSU2y5ZYPQI+P5/iF/CnFkxrtg8eBK6u6hfFTwrzaVsIFxYe\nOCPiVNBTI2iFB8T2oulvAZwrf1qwl5ShrrudRb8E6m2D8UUxDGzvhMHdzLhS\nNzJZwfi59O/l7u96RHZDdZU909PS71rvP5RkoqEX7EPhVPWjSlL780Mv68U0\nmx8csYr8/JirtN/P5hxCmlUwBFoiyvckq1LdNW1oZtztaHXSxwzH612MAh4G\nKOICMPiF852zuVt7URygQdO2u/0Jg0VAp58iA22/D6NwF6e6FfyzIzcJzO+M\nA7cg\r\n=HO7M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDphxjnwKEfQgkuFUclaPsyVK6AtBB5ENFMjC6JSbBE7gIhAIQ3HHHW9gQHSTlvv/wTz9vZVdniCIWhOulAGM+LuHXk"}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.4_1548767650827_0.30470327682820986"},"_hasShrinkwrap":false},"1.0.5":{"name":"@appnest/typed-actions","version":"1.0.5","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.esm.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"@wessberg/rollup-plugin-ts":"^1.1.22","rollup":"^1.1.2","typescript":"^3.3.1"},"gitHead":"dd4296d74349f77975291c07b59e0ca96ef055d7","_id":"@appnest/typed-actions@1.0.5","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-5caiM2d/Psqn6jyZycPoOZYchEgaIMcHp73iRupoo2QmRS4HEx0T0NPRlwwV2ixXpIGx47xlUbUE9G5iWw/fqg==","shasum":"be55286812b05f213a1e8136050932b63e7ce365","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.5.tgz","fileCount":8,"unpackedSize":49673,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWtVICRA9TVsSAnZWagAAqEcP/jPA9o5dbDdk2NyMM6Ep\n9nXNsrB2yvkXnrbCopdI0QH+XpF/O+0op4nVpptagw8sskXQJSykRkZ9uflj\nb0kpKDaX1WjnhuXGVu1X3db3Glx/hwijmFAAn0mwY+HOcgxWbdFG7ISj4I5y\njgemmVpQzuFgNMHHcAjSKjCR6bDVM/AUU8jbrMAfeRodS6XVRSCAv0Usdsai\nWo24fyE7DqDD35iOGpq0NgTIpwc1c76Dtg0su+5zym3+5dPRZQ7zcfzFzpaF\nni4W0HXnvBtWjipz5soiXz3QadAJcZu6swNKWBQUooo1UG7j7SkTg8G6Jf5w\nsHKyHUfxa27h0TA9/UujZKQr5AvuWsnvS/93RkIUpmwcbNCd8n5ib6pO6QKv\nFvTMmqUfEl6bXne0rQAINHnJ08+ho+8P6OgMo2gBMswOO0VqPXsKQ2ENxVko\ngIUIiSs1xJaNs8pgGDG4bwrG31KKc+Fed0qKh9BcAtXAhzdmm/01pw5qXbQW\nipXIqUZ11Iw3Ug0R/tAO8pEiJBqMmFg0IpeVuQVIX+zaxUleec40H72/MFdh\nJrj3iCmEKqhB2gVOOxgHKws0sUBvs+yIDxHh0tZD5CdBaD3Sx0BowqWN8Mks\n4YecDdVvTkXof87BGq4oQVbHnnuf/t9Zebt1Vf5nnw4bYsIyuAbMliYG1Zdp\n28n0\r\n=89tt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJml1nVKocVFQkYTr4ugVK6qJGr9UNE469IJJPzcqb0wIgT2cwBz5Pgq7ui0laGO6bI46dyJNf5MijCYAIcCh/Iks="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.5_1549456712078_0.4167357096141808"},"_hasShrinkwrap":false},"1.0.6":{"name":"@appnest/typed-actions","version":"1.0.6","description":"A lightweight library to create and type check flux/redux actions in typescript","author":{"name":"runem"},"license":"MIT","scripts":{"start":"node lib/index.cjs.js","watch":"rollup -c --watch","build":"rollup -c","checksize":"npx size-limit lib/index.esm.js"},"main":"lib/index.cjs.js","module":"lib/index.esm.js","typings":"lib/index.esm.d.ts","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"dependencies":{},"devDependencies":{"@wessberg/rollup-plugin-ts":"^1.1.31","rollup":"^1.1.2","typescript":"^3.3.1"},"gitHead":"cc194ee4b91c1aabf911a476855f71ce5b9b8fb4","_id":"@appnest/typed-actions@1.0.6","_npmVersion":"6.4.1","_nodeVersion":"10.5.0","_npmUser":{"name":"runebm","email":"runemehlsen@gmail.com"},"dist":{"integrity":"sha512-lSmc6h+bbnmlUH7GZyCybPyWaiSO56YEnsc9YWrBifSwZBSs5DAPVeafZwAr3TBf07802kK19CGbkNZRhts7Zw==","shasum":"52ec06a85830c34a8935d70ef64d86227c770721","tarball":"https://registry.npmjs.org/@appnest/typed-actions/-/typed-actions-1.0.6.tgz","fileCount":8,"unpackedSize":49575,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcdQcbCRA9TVsSAnZWagAA+tAP/1cR4ycPzLvBfSEJA1/7\nodY+jdv6mX7Hl6LXLN5USfhD1gSyctdGmUhJiUwhi2tDcWA5uPy+Mi7xzZPI\nG5xsvVKbS9Rsp09EGm18GydCk3AL2I0NFsKcqoo6rFNrLOzzpyt8EGtc3ghO\nGU0LGoF+Vynf++AsKWba4JqWaYtH01sgKIKKS4apLm4YGaDENJitEzG7Hj/9\nUeGaWy/rpGNeYFR1QtKMUVOID2qmClaXbfAvsTDa1XFYjGIizL2RCTiT2NXm\nmRH9WBuJ0KKjai/xUiB+rdh4bATeINkY0QoAWTuSC93mk0OXMkK75ssyumFz\nNI53LolZB6CSXhTdCuRmRYD1vsbXN4c2Xzoz9J2xMa5mYtypiPK0Km4MJxAH\niGKzy9Msw7i0C4jJxSEARWKqpTgPjI5byejA3E5kwAJx8fR3QsttwZmHkpo7\ncqUcRRpWy5am8Kl6fON+E+Adie+RBeWv5uCGtkGPhXvubD24LO4TLUFIUVrL\nHGBezg30NgpvcomobZ28TIDdZ2GUlgLlpzpFqj8hfAAUD2IyM1h/EnzU0W46\nm8g1tuSeM2qbuBupAt3E9DFLflbMo+nkLIKpAd/qm3boB/dsbaElWQhohmOZ\n8BL9cLCocXB+XqnmV1hDvuIAwEUUColb7Ek5GiA1alC+Y/TNqzx3dAyVXghv\nvr1H\r\n=rTdA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGgma4TKGvS/kL9OLscG5t6rPkxvUxBXb07FZmvbscsuAiEApRaVPJTncwDUCazws4Zb05Sm2dOjc0jW5UjnV0wqlgw="}]},"maintainers":[{"name":"explore","email":"andmehlsen@gmail.com"},{"name":"runebm","email":"runemehlsen@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typed-actions_1.0.6_1551173402922_0.4467730800971934"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-09T22:34:58.760Z","1.0.0":"2018-11-09T22:34:59.100Z","modified":"2022-04-04T15:02:49.820Z","1.0.1":"2018-11-14T12:08:27.838Z","1.0.2":"2018-11-15T09:54:06.248Z","1.0.3":"2019-01-24T15:30:52.091Z","1.0.4":"2019-01-29T13:14:11.213Z","1.0.5":"2019-02-06T12:38:32.204Z","1.0.6":"2019-02-26T09:30:03.077Z"},"maintainers":[{"email":"andmehlsen@gmail.com","name":"explore"},{"email":"runemehlsen@gmail.com","name":"runebm"}],"description":"A lightweight library to create and type check flux/redux actions in typescript","keywords":["typescript","typesafe","actions","redux","flux","action-creator"],"author":{"name":"runem"},"license":"MIT","readme":"# @appnest/typed-actions\n\n## What is this?\n\n`typed-actions` is a lightweight library to create and `type check` flux/redux `actions` in typescript. \n\n*The library doesn't come with a dispatcher, its only purpose is to type check actions.*\n\n### :fire: Features\n\n:sparkles: **Type magic** - Define actions with the least amount of work on your side.\n\n:mag: **Small** - No dependencies. Gzipped size: 483 B.\n\n:vertical_traffic_light: **Built in status** - All statuses come with either a `START`, `SUCCESS` or `FAILURE` status. This removes boilerplate for asynchronous action dispatching.\n\n### :sparkles: Type Magic\n\nUsing this library you avoid keeping track of uncomfortable many boilerplate interfaces in order to type check actions in typescript. Read the section [without this library](#without-this-library) to see what typing hell you avoid.\n\n This is based the following Typescript features, including features from 3.0: [type guards](https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards), [conditional types](https://www.typescriptlang.org/docs/handbook/advanced-types.html#conditional-types), [union types](https://www.typescriptlang.org/docs/handbook/advanced-types.html#union-types), [generic rest parameters](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#generic-rest-parameters) and [optional elements in tuple types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html#optional-elements-in-tuple-types).\n\n### :vertical_traffic_light: Built in status\n\nAll actions created using this library comes with a `status`. This status can be either `START`, `SUCCESS` or `FAILURE`. All actions must have a status because this become very handy when creating actions in an asynchronous flow. This way you avoid a lot of boilerplate (see [without this library](#without-this-library))\n\n##  Example\n\nLet's start with a general example of how you would use this library.\n\nHere we use an async action creator. You only need to define this action creator once for a given action, then it can be used to easily create and typecheck actions with different statuses: `START`, `SUCCESS` and `FAILURE`. This is done using the methods `start`, `success` and `failure` on the async action creator.\n\n```typescript\nimport { defaultAsyncActionCreator, isAction, Action } from \"@appnest/typed-actions\";\n\n// 1: Make an action creator\nconst listUsers = defaultAsyncActionCreator<string[]>(\"LIST_USERS\");\n\n// 2: Create an action\nconst action = listUsers.success([\"John\", \"Jane\"]);\n// { type: \"LIST_USERS/SUCCESS\", payload: [\"John\", \"Jane\"], id: \"LIST_USERS\", status: \"SUCCESS\" }\n\n// 3: Dispatch the action any way you like\n\n// 4: Handle the action in a store\nfunction handler (action: Action) {\n\n  if (isAction(action, listUsers.success)) {\n    // Payload is type of \"string[]\" in this scope.\n    console.log(action.payload.join(\", \"));\n\n  } else if (isAction(action, listUsers.failure)) {\n    // Payload is type of \"Error\" in this scope.\n    console.log(`Something went wrong: ${action.payload.message}`)\n  }\n\n}\n```\n\n## Walkhrough\n\n### Step 1: Make an action creator\nIn order to generate type safe actions you will first need to make an action creator. `actionCreator` takes a generic parameter that becomes the type of the action payload.\n\n```typescript\nimport { actionCreator } from \"@appnest/typed-actions\";\n\nconst sendMsg = actionCreator<string>(\"SENG_MSG_ACTION\");\n```\n\n### Step 2: Create the action\nThe action creator can now be used to create actions with a payload of the specified type.\n\n```typescript\nconst action = sendMsg(\"Hello World\");\n```\n\nHere's the content of this action. \n\n```\n{ \n  type: \"MY_ACTION/SUCCESS\",\n  id: \"MY_ACTION\",\n  status: \"SUCCESS\",\n  payload: \"Hello World\",\n  meta: undefined\n}\n```\n\nYou will notice that the status is \"SUCCESS\". All actions must have a status becauses this become very handy when spawning actions in an asynchronous flow. \"SUCCESS\" is the default status.\n\n### Step 3: Dispatch the action\n\nThe action can be dispatched any way you like (for example redux `store.dispatch(action)`). This library is only build for creating and typechecking actions, not for dispatching them.\n\n### Step 4: Handle the action\n\nNow you are ready to check the action type. This is done using the `isAction` function.\n\n```typescript\nimport { isAction, Action } from \"@appnest/typed-actions\";\n\nfunction handler (action: Action) {\n\n  // Check if \"action\" is of type \"sendMsg\"\n  if (isAction(action, sendMsg)) {\n\n    // Type of \"payload\" is \"string\" in this scope\n    console.log(action.payload); \n\n  }\n\n}\n```\n\n## Without this library\n\nHere is an example of what you would have to do if you did not use this library. Typed actions are achieved using [discriminated unions](https://www.typescriptlang.org/docs/handbook/advanced-types.html#discriminated-unions). In addition it's difficult to automate dispatching eg. `failure` actions because the `status` is baked into the type.\n\n```typescript\n// 1: Make a bunch of interfaces\ninterface ListUserStartAction {\n  type: \"LIST_USER/START\";\n}\n\ninterface ListUserSuccessAction {\n  type: \"LIST_USER/SUCCESS\";\n  payload: string[];\n}\n\ninterface ListUserFailureAction {\n  type: \"LIST_USER/FAILURE\";\n  payload: Error;\n}\n\ntype Action = ListUserStartAction | ListUserSuccessAction | ListUserFailureAction;\n\n// 2: Create an action\nconst action: Action = {\n  type: \"LIST_USER/SUCCESS\",\n  payload: [\"John\", \"Jane\"]\n};\n\n// 3: Dispatch the action\n\n// 4: Handle the action\nfunction handler (action: Action) {\n  switch (action.type) {\n\n    case \"LIST_USER/SUCCESS\":\n      // Payload is type of \"string[]\" in this scope.\n      console.log(action.payload.join(\", \"));\n      break;\n\n    case \"LIST_USER/FAILURE\":\n      // Payload is type of \"Error\" in this scope.\n      console.log(`Something went wrong: ${action.payload.message}`);\n      break;\n  }\n}\n```","readmeFilename":"README.md"}