{"bugs":{"url":"https://github.com/pirix-gh/ts-toolbelt/issues"},"dist":{"shasum":"65c369dde28b70097503bb1198ef2c9b1aadbb8f","tarball":"https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-3.8.60-test.tgz","fileCount":202,"integrity":"sha512-bkQ9y5mWbFtH3PMA4E7UNzXq2qD1/2VRpNgIoS1byofB0q7siN/9DOM97CU9QakabGS4hzSh+FKcqaTzfLtx+Q==","signatures":[{"sig":"MEUCIQDSrvvKaxUwFIXaXCEcIEnDl+0wCUs2DNT8BXKlz1SEKQIgRxXinotMN/fg4V1mCmE0JFOCNslH2BVWeR5yfTKpowA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":176041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZkvUCRA9TVsSAnZWagAAzOQP/2QC6zPVn7u6LuWUo7Nc\nskbqzXr36SjJbNKLa83BStZWC3jysSfeE++ttnt5Sr7Bdc3fEw2N4h0SbxBs\n1gU3gDn72g/4vfj68stS3rtO04vrjM3h3sLrmYZGWcgNKcV2XYQaJO3eBsmI\nnvwn2nkQsD90Pz3I0dAIHzXRp/be0p69a+QwlXuIXm8GYxvXAqZVCfCYleJ0\nxI1iTjgu6ynshDxx05s3F+8ECX/3hGuC5zEUjk4eg4a/WokyKNqUk0PPvpr8\nPaecXJJCPgrbRcB2BWC1heI+lH+2Sd1o0+F1PK9sVGj+TT0UXyaUmjt5VXtg\nu4D5uzQ9QftAQHw9WmUp5zMJxk3dhr0/QV6dqgZt/dJu388nhisVVrML7BH2\ntn4zlaVT/Yym28lXLNEx9xA5txsEaOdxgFv3jM/CXClObKFZl5AbAdQSqCV7\ndHHEhl6sKcP/w/QxOaYpTPviJDyarEZY2rD7yjxN5JNTxifhbPS3ZTD+m5gr\n3W6gIQVK+ac3C5Yyg38cKjB5xamF07PtWiIYeLhlnT9ZrQhJtEzJ3S8LzcGB\nOS7/6595+w2E0e+DYLlqfCvj656KqWDYNWtiyOjoZjpqk9+LLZEbh03up6ao\nmrCzz1EBzFTMQLRTPTRKWHyN4ygdD0yCwkczcHaMDZutuiRCSMkYNZdfUsKt\n1RvN\r\n=tOaG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"out/index.js","name":"ts-toolbelt","types":"out/types/src/index.d.ts","author":{"url":"https://github.com/pirix-gh","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<p align=\"center\">\n  <a href=\"https://conventionalcommits.org\" target=\"_blank\">\n    <img src=\"https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.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** completes TypeScript with a collection of more than **175**\ntested types. This makes it the biggest type collection out there.\n\nIt's goal is to improve type correctness while adding a whole new set of\n**features** to TypeScript. It uses the type system itself for TypeScript to\ncompute more complex types. In other words, its API exposes types that trade\n**CPU & RAM** for higher type safety.\n\n#### Goals\n\n* This package aims to be the home of all **utility types**\n* High [**performance**](https://gist.github.com/pirix-gh/02097996d2a1e4e7aa2d54b330451ea0), so it will not bloat TS (~ +2sec, +50MB)\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* Answer the question to \"How do I do this in TypeScript?\"\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\nLowest TypeScript [support](#-compatibility) starts at version 3.5\n\n```sh\nnpm install typescript@^3.5.0 --save\n```\n\nFor best results, add this to your `tsconfig.json`\n\n```ts\n// Optional, recommended\n{\n  \"compilerOptions\": {\n    // ...\n    \"strict\": true\n  }\n}\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**The documentation is complete but needs more examples**. So feel free to [ask for\nexamples](https://github.com/pirix-gh/ts-toolbelt/issues/new?template=---question.md),\nand I will update the docs.\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/issues?q=label%3Aquestion+sort%3Areactions-%2B1-desc)\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\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\n* Improving existing documentation \n* Adding new types to the collection\n\n#### Pull Requests\n\n1. [Read the tutorial](https://medium.com/free-code-camp/typescript-curry-ramda-types-f747e99744ab)\n\n2. Fork the project\n\n3. Clone your fork\n\n4. Create a pr/**feature** branch\n\n   ```sh\n   git checkout -b pr/CoolFeature\n   ```\n   \n5. Commit your changes\n\n   You **must** follow the [conventional commit](https://conventionalcommits.org) to be able to commit\n   ```sh\n   git commit -m 'feat(name): Added this CoolFeature'\n   ```\n\n6. [Run the tests](#-running-tests)\n\n7. Push your changes\n\n   ```sh\n   git push origin pr/CoolFeature\n   ```\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#### Continuous Integration\n\nThe releases are done with Travis CI in stages & whenever a branch or PR is pushed:\n\n- Tests are run with `npm test`\n- Tests against [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/)\n- Releases to npm@[branch-name]\n\nIf you wrote tests & would like your project to be tested too, please open an issue.\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| 3.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 the 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* [Regev Brody](https://github.com/regevbr)\n* [Titian C.-Dragomir](https://github.com/dragomirtitian)\n\n## 💟 Friendly Projects\n\n* [`eledoc`](https://github.com/pirix-gh/eledoc) - 🌒 A material dark theme for TypeDoc \n* [`utility-types`](https://github.com/piotrwitek/utility-types) - Collection of utility types, complementing TypeScript built-in mapped types and aliases\n","gitHead":"b39f182992944e93887638d58974157ba6872402","license":"Apache-2.0","scripts":{"test":"bash scr/test.sh","build":"bash scr/build.sh","ci:test":"bash scr/ci:test.sh","release":"bash scr/release.sh","setup:dev":"bash scr/setup:dev.sh","build:docs":"bash scr/build:docs.sh","ci:test:ad":"bash scr/ci:test:ad.sh","ci:test:bd":"bash scr/ci:test:bd.sh","build:types":"bash scr/build:types.sh","ci:branch:bd":"bash scr/ci:branch:bd.sh"},"_npmUser":{"name":"pirix-gh","email":"pierreantoine.urvoy@gmail.com"},"homepage":"https://github.com/pirix-gh/ts-toolbelt","keywords":["safe","tools","types","typesafe","typescript"],"repository":{"url":"git+https://github.com/pirix-gh/ts-toolbelt.git","type":"git"},"_npmVersion":"5.6.0","description":"👷 Higher type safety for TypeScript","directories":{},"maintainers":[{"name":"pirix-gh","email":"pierreantoine.urvoy@gmail.com"}],"_nodeVersion":"10.0.0","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"npx":"^10.2.0","husky":"^3.0.2","tslib":"^1.10.0","eledoc":"^0.0.9","eslint":"^5.16.0","ts-node":"^8.3.0","typedoc":"^0.15.0","typescript":"^3.5.3","@commitlint/cli":"^8.1.0","eslint-plugin-fp":"^2.3.0","standard-version":"^7.0.0","sort-package-json":"^1.22.1","eslint-plugin-react":"^7.14.3","@typescript-eslint/parser":"^1.13.0","@commitlint/config-conventional":"^8.1.0"},"peerDependencies":{"typescript":"^3.5.0"},"_npmOperationalInternal":{"tmp":"tmp/ts-toolbelt_3.8.60-test_1566985171960_0.9275416416166833","host":"s3://npm-registry-packages"},"_id":"ts-toolbelt@3.8.60-test","version":"3.8.60-test"}