{"bugs":{"url":"https://github.com/pirix-gh/ts-toolbelt/issues"},"dist":{"shasum":"41ca9e84bffc5d8e05eb77e20b5bac3d4f348926","tarball":"https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-3.0.0-0.tgz","fileCount":205,"integrity":"sha512-hVyNBU3Um/oDzzr1q1tlL8gUJzXTE8VfYbLXw3BLUluqHRDskK/qcEMx39ktqj5LUJpIhXAeJtHylzfXz5ntsA==","signatures":[{"sig":"MEUCIQDieUip2XtBoK218lwaqVZDc09gXYjGDae9u5WULqf+MQIgdqu15d86j1RGCJZUPHG3XLxTi6eT+jpC8LhQl+wgwo4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":127919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGVehCRA9TVsSAnZWagAAb5oP+QCBaIrjJCdZGH9mHPe3\nPlU+qn9Fs2/kWap0Ay2imdEpy8/NxF47cNc7EnmALLjqDU/ulKIj59saEjt2\nR4+N5MKsTck5oRXMr195zZRH9uin3rMSq8xaq7Dg9Q1KbyZX99Y1DJZYQ/KW\nVUZ3Kge1JkSI2Nou+AO1w69ywMplLphSyblDei2UGd7aUE2SX3+QNEyBkydi\nNQUgVdWtOPJN3cilHESPQSpNGi7KRMroghVqvfrjsCXzZgwZQvavajWHC4QG\nP7OWAqk1S9+GSZr3KipYAcgPBi30lcI10c8+kdUaIpXXG4l+5O9eYh1W+bZa\nZBmCLRCNOamXRBCzibrJIcr816H7H9hf5qYGf1C5s7xkagnpC8VMoFLPuUEz\nS6p0R2BVr44ZmkVABCO6FYvphlHDwlQgtpNXHGLkoqUJK9bJ0hPHuecyb+sW\nwEkGc7wIlkmDzDhgr/kVY7863P15+TnJa6wmM/auAj2adtHzXEAp4Xa/Ggzr\nbsiSojcIJUx8C4lyMB5/ez+F2/rLTiX1wEXa63v43fast8OCZfMrefkwLafg\nTy3Sqjkk8hmi1EBcppfM+QOSwLEuiB7SDW6o7tG3HHfTLvDjAezjuBSbcNpD\nu5UHK+4SxgSVadduP2UV9601MJCuIfY+Zl+7hmMnEDA5UGtvGkpFo6FMMv30\n/+D2\r\n=ZEOl\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":"a0a5217833ef6e8381e86131c53cf1c6e5f9d05c","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"},"_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-0_1561941921114_0.28687284433237337","host":"s3://npm-registry-packages"},"_id":"ts-toolbelt@3.0.0-0","version":"3.0.0-0"}