{"bugs":{"url":"https://github.com/pirix-gh/ts-toolbelt/issues"},"dist":{"shasum":"3a101b2c3e61bc33f080cfbd0896bde0debd1cba","tarball":"https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-3.0.0-5.tgz","fileCount":190,"integrity":"sha512-ZOkdF0S6W5WuM1fa+PMrJIpPXQWmitLdCNPRhjWVQssYKUddRi60bcEIROh3y3UQn6UbcKJWFLa4/1NLYRy0Bg==","signatures":[{"sig":"MEUCIQDrpedqK0i963lzGdsRV0+CZ5QmWPyOneFT5iUfdN7I7AIgWHEW/jop4bjoF3AvYTwxuNKh6KrSvOn+0X5irND21V4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":132740,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdIneJCRA9TVsSAnZWagAApLEP/REYUaNdBQXFNreFk1xf\nMPzHsKj+CdfKscvMxHguNjihdx29o8eC/X9WU75llQC5WGytzys3qaA7nwf4\nUroHV+EMrNQVFZ6T+0svTm62qHgZEIYp3bAycRy5V1so4QtShKIstEZofMO3\nfNcYAoLlsEdK2mM0c4P7k9Rz1RMnFTE48UgvorgNulNIn00d0wEkPU44rfYF\nyck3Esko9vsDyFsJnN5jjdzAvLfHeAjqHMbj+umg0MEtcl9n5taG6Np89jQW\nYRHMUGUvkT1J8TR2eWnQd2fJF26L865EC1QO8sYmYyJRsptMtZTpLuctFW+I\nDDZ5ZUa41z0kz6JrBv+W4ULQ+f9LTTS65ahAQZVQ1fDZilKaqO8J9BThez4r\nscOcjHchcBNt/zYSSn7mCI/8euoBDvIMPRJVaIV4KxhtoCJuTSVzAedOSjtH\nDa0Pbgot4znzqKt4fMIt1P8JhhHrpRnop3GBEVLnVr8HOzx/j/q36RrP8ReB\nBcPex7Igea0oq7ebDGHksoe91Jp9xgxv/gw5sXzLJ4Z3T4zK8GW/Y8cjh3s/\n8iHpI3JLW/Lw8XaI0Q7U5pI6YmzHYpuCvK/8YCt18Xmr3QqJco6g7H/2dp6L\nVdAB+CSZnKarR0n7iocFTRH2Z86LWAb5G73hm8LtCIRKtXlBqCaW0gHv3pfL\nzbpa\r\n=UM39\r\n-----END PGP SIGNATURE-----\r\n"},"main":"out/src/index.js","name":"ts-toolbelt","types":"out/types/src/index.d.ts","author":{"name":"Pierre-Antoine Mills"},"readme":"<p align=\"center\">\n  <a href=\"https://github.com/pirix-gh/ts-toolbelt\">\n    <img alt=\"logo\" title=\"ts-toolbelt\" src=\"https://raw.githubusercontent.com/pirix-gh/ts-toolbelt/master/.github/logo.png\" width=\"300\">\n  </a>\n\n  <h3 align=\"center\">ts-toolbelt</h3>\n\n  <p align=\"center\">\n    👷 Higher type safety for TypeScript\n    <br>\n    <a href=\"https://pirix-gh.github.io/ts-toolbelt/\" target=\"_blank\"><strong>Explore the docs »</strong></a>\n    <br>\n    <br>\n    <a href=\"#demo\">🎮 View Demo</a>\n    ·\n    <a href=\"https://github.com/pirix-gh/ts-toolbelt/issues/new?template=---bug-report.md\">🐞 Report Bug</a>\n    ·\n    <a href=\"https://github.com/pirix-gh/ts-toolbelt/issues/new?template=---feature-request.md\">🍩 Request Feature</a>\n    ·\n    <a href=\"https://github.com/pirix-gh/ts-toolbelt/issues/new?template=---question.md\">🤔  Ask Questions</a>\n  </p>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://gitter.im/ts-toolbelt/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link\" target=\"_blank\">\n    <img src=\"https://img.shields.io/gitter/room/ts-toolbelt/community.svg\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/ts-toolbelt\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/v/ts-toolbelt.svg\">\n  </a>\n  <a href=\"https://travis-ci.org/pirix-gh/ts-toolbelt\" target=\"_blank\">\n    <img src=\"https://img.shields.io/travis/pirix-gh/ts-toolbelt.svg\">\n  </a>\n  <a href=\"#\">\n    <img src=\"https://img.shields.io/npm/dm/ts-toolbelt.svg\">\n  </a>\n  <a href=\"http://makeapullrequest.com\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\">\n  </a>\n  <a href=\"#\">\n    <img src=\"https://img.shields.io/npm/l/ts-toolbelt.svg\">\n  </a>\n</p>\n\n## Table of Contents\n\n* [📜 About](#-about)\n* [🍩 Features](#-features)\n* [🏁 Getting started](#-getting-started)\n* [📖 Documentation](#-documentation-)\n* [🧠 Good to know](#-good-to-know-)\n* [🎁 Contributing](#-contributing)\n* [👏 Sponsoring issues](#-sponsoring-issues)\n* [💉 Running tests](#-running-tests)\n* [🔧 Compatibility](#-compatibility)\n* [🔮 What's next](#-whats-next)\n* [🙏 Acknowledgements](#-acknowledgements)\n\n## 📜 About\n\n**ts-toolbelt** is a collection of types that makes TypeScript even **safer**.\nIt's goal is to improve type correctness while adding a whole new set of\n**features** to TypeScript. \n\nIt uses the type system itself for TypeScript to compute more complex types. In\nother words, its API exposes types that trade **CPU & RAM** for higher type\nsafety.\n\n**ts-toolbelt** completes TypeScript with a collection of more than **150**\ntested types.\n\n#### Goals\n* This package aims to be the home of all **utility types**\n* Keep reasonable **performance**, so it will not bloat TS\n* Computed types are always **readable**, like if you typed it\n* Software that's more type-safe, **flexible** & more **robust**\n* Bring a whole new set of extra **features** to TypeScript\n* Types can be **combined** together to create new ones!\n\n## 🍩 Features\n\nHere's some of the most useful features:\n\n* [Merge two types together](https://pirix-gh.github.io/ts-toolbelt/modules/_object_merge_.html#merge)\n* [Update the field of a type](https://pirix-gh.github.io/ts-toolbelt/modules/_object_update_.html#update)\n* [Make some fields optional](https://pirix-gh.github.io/ts-toolbelt/modules/_object_optional_.html#optional)\n* [Change a type at any depth!](https://pirix-gh.github.io/ts-toolbelt/modules/_object_p_update_.html#update)\n* [Concat two tuples together](https://pirix-gh.github.io/ts-toolbelt/modules/_tuple_concat_.html#concat)\n* [Get the last item of a tuple](https://pirix-gh.github.io/ts-toolbelt/modules/_tuple_last_.html#last)\n* ... and so much more\n\n<p align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/pirix-gh/ts-toolbelt/master/.github/demo.gif\" id=\"demo\">\n<p align=\"center\">\n\n> If you don't find the type you are looking for, you are welcome to open a [feature request](https://github.com/pirix-gh/ts-toolbelt/issues/new?template=---feature-request.md)!\n\n## 🏁 Getting Started\n\n#### Prerequisites\n\nThis is important, the lowest TypeScript version that is [supported](#-compatibility) is 3.5\n\n```sh\nnpm install typescript@^3.5.0 --save\n```\n\n#### Installation\n\n```sh\nnpm install ts-toolbelt --save\n```\n\n#### Hello World\n\n```ts\nimport {A, B, C, F, I, N, O, S, T, U} from 'ts-toolbelt'\n// Wonder what these letters mean? Check the docs below\n\n// Merge two `object` together\ntype merge = O.Merge<{name: string}, {age?: number}>\n```\n\n## [📖 Documentation ⤢](https://pirix-gh.github.io/ts-toolbelt/)\n\nThe project is organized around TypeScript's main concepts:\n\n|              |                    |              |                |                 |              |\n|--------------|--------------------|--------------|----------------|-----------------|--------------|\n| **A**(ny)    | **B**(boolean)     | **C**(lass)  | **F**(unction) | **I**(teration) | **N**(umber) |\n| **O**(bject) | **O**(bject).**P** | **S**(tring) | **T**(uple)    | **U**(nion)     | Test         |\n\n#### Imports\n\nThere are many ways to import the types into your project:\n\n* Explicit\n  ```ts\n  import {Any, Boolean, Class, Function, Iteration, Number, Object, String, Tuple, Union} from 'ts-toolbelt'\n  ```\n\n* Compact\n  ```ts\n  import {A, B, C, F, I, N, O, S, T, U} from 'ts-toolbelt'\n  ```\n\n* Portable\n  ```ts\n  import tb from 'ts-toolbelt'\n  ```\n\n#### Internal Docs\n\nIf you're interested to **learn** how the internals work, [this tutorial](https://medium.com/free-code-camp/typescript-curry-ramda-types-f747e99744ab) will get\nyou on track to start writing your own types.\n\n## [🧠 Good to Know ⤢](https://github.com/pirix-gh/ts-toolbelt/wiki)\n\nIn this wiki, you'll find some extra resources for your learning & understanding.\n\nIt is incremental and it will be completed on demand, you can ask for this below.\n\n#### [Questions ⤢](https://github.com/pirix-gh/ts-toolbelt/issues?q=label%3Aquestion+sort%3Areactions-%2B1-desc)\n\nAre you missing something? Participate to the open-wiki by posting your\nquestions [right here](https://github.com/pirix-gh/ts-toolbelt/issues/new?template=---question.md).\n\n## 🎁 Contributing\n\nContributions are what make the open source community such an amazing place to\nlearn, inspire, and create. Any contributions you make are **greatly appreciated**.\nThere are many ways to contribute to the project:\n\n#### Community\n* [Help the community with answers on Gitter](https://gitter.im/ts-toolbelt/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link)\n* [Reporting bugs or requesting new features](https://github.com/pirix-gh/ts-toolbelt/issues/new/choose)\n\n#### Codebase\n* Improving existing documentation \n* Adding new types to the collection\n\n#### Pull Requests\n1. [Read the tutorial](https://medium.com/free-code-camp/typescript-curry-ramda-types-f747e99744ab)\n2. Fork the project\n3. Clone your fork\n4. Create a pr/**feature** branch\n   ```sh\n   git checkout -b pr/CoolFeature\n   ```\n5. Commit your changes\n   ```sh\n   git commit -m 'Added this CoolFeature'\n   ```\n6. [Run the tests](#-running-tests)\n7. Commit your changes\n   ```sh\n   git push origin pr/CoolFeature\n   ```\n8. Open a pull request\n\n## 👏 Sponsoring issues\n\n**Sponsored issues have higher priority over non-critical issues**.<br>\n\nYou can either request a new feature or a bug fix then fund it.\n\n<a href=\"https://issuehunt.io/r/pirix-gh/ts-toolbelt\">\n  <img\n  src=\"https://raw.githubusercontent.com/pirix-gh/ts-toolbelt/master/.github/issuehunt-logo.svg?sanitize=true\">\n</a>\n<br>\n<br>\n\n**The money will be transparently split with an issue's assignees.**\n\n## 💉 Running tests\n\n#### For this project\n\nTo run the `lint` & `type` tests, simply run:\n\n```sh\nnpm test\n```\n\n#### For your project\n\nWant to test your own types? Let's get started:\n\n```ts\nimport {A, B, C, F, I, N, O, S, T, U, Test} from 'ts-toolbelt'\n\nconst {checks, check} = Test\n\nchecks([\n    check<N.Plus<'1', '30'>,    '31',  Test.Pass>(),\n    check<N.Plus<'5', '-3'>,    '2',   Test.Pass>(),\n])\n```\n\n> Place it in a file that won't be executed, it's just for TypeScript to test types\n\n## 🔧 Compatibility\n\nThe project is maintained to adapt to the constant\n[changes of TypeScript](https://github.com/Microsoft/TypeScript/wiki/Roadmap):\n\n| ts-toolbelt | typescript |\n|-------------|------------|\n| 1.x.x       | ~3.5.x     |\n| 2.x.x       | ^3.5.x     |\n\nMajor version numbers will upgrade whenever TypeScript had breaking changes (it\nhappened that TS had breaking changes on minor versions). Otherwise, the release\nversions will naturally follow semantic versioning.\n\n## 🔮 What's next\n\n* Automated performance tests\n  ```sh\n  # performance is checked manually with \n  npx tsc --noEmit --extendedDiagnostics\n  ```\n* Improve with user feedback\n* Need to write the examples\n\n## 🙏 Acknowledgements\n\nMany, many thanks to all the\n[contributors](https://github.com/pirix-gh/ts-toolbelt/graphs/contributors) and:\n\n* [André Staltz](https://github.com/staltz)\n* [Joe Calzaretta](https://github.com/jcalz)\n* [Matt McCutchen](https://github.com/mattmccutchen)\n\n## 💟 Friendly Projects\n- [`utility-types`](https://github.com/piotrwitek/utility-types) - Collection of utility types, complementing TypeScript built-in mapped types and aliases\n","gitHead":"fe6feedce0ddee07e32a398d3ff21571b8eec34e","license":"Apache-2.0","scripts":{"test":"npx eslint 'src/**' && npm run build:types","build":"npm run build:types && npm run build:docs && touch out/index.js","release":"release-it","setup:dev":"npm install --only=dev","build:docs":"typedoc --out docs src --theme node_modules/eledoc/bin/default/ && touch docs/.nojekyll && git add docs","build:types":"rm -fr out && tsc --emitDeclarationOnly && rm -fr out/types/tst"},"_npmUser":{"name":"pirix-gh","email":"pierreantoine.urvoy@gmail.com"},"homepage":"https://github.com/pirix-gh/ts-toolbelt","keywords":["types","tools","safe","typesafe","typescript"],"release-it":{"hooks":{"before:init":["npm test"],"after:release":"echo Successfully released ${name} v${version} to ${repo.repository}","before:git:release":"npm run build"}},"repository":{"url":"git+https://github.com/pirix-gh/ts-toolbelt.git","type":"git"},"_npmVersion":"6.9.0","description":"👷 Higher type safety for TypeScript","directories":{},"maintainers":[{"name":"pirix-gh","email":"pierreantoine.urvoy@gmail.com"}],"_nodeVersion":"10.16.0","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"npx":"^10.2.0","tslib":"^1.10.0","eledoc":"^0.0.6","eslint":"^5.16.0","ts-node":"^8.2.0","typedoc":"^0.14.2","release-it":"^12.3.0","typescript":"^3.5.0","eslint-plugin-fp":"^2.3.0","eslint-plugin-react":"^7.13.0","@typescript-eslint/parser":"^1.10.2"},"peerDependencies":{"typescript":"^3.5.0"},"_npmOperationalInternal":{"tmp":"tmp/ts-toolbelt_3.0.0-5_1562539912438_0.6331226529235607","host":"s3://npm-registry-packages"},"_id":"ts-toolbelt@3.0.0-5","version":"3.0.0-5"}