{"schemaVersion":1,"id":"ts-toolbelt","name":"ts-toolbelt","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/ts-toolbelt/","officialUrl":"https://github.com/millsp/ts-toolbelt","isCatalog":false,"description":"TypeScript utility types for complex model transformations: they help express constraints and compose library public types.","tasks":["Express a complex TypeScript type transformation","Choose utility types and test valid and invalid public API variants"],"categoryIds":["backend"],"subcategoryIds":["backend.api"],"tags":["ts-toolbelt","API","Development"],"aliases":["millsp/ts-toolbelt","typescript-toolbelt","ts-toolbelt"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under Apache-2.0.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"Apache-2.0 for the code; third-party components retain their own terms.","selectionGuide":{"purpose":"Express a complex TypeScript type transformation","chooseWhen":["Express a complex TypeScript type transformation","Choose utility types and test valid and invalid public API variants"],"considerInstead":[],"requirements":["The README prerequisites show TypeScript ^4.1.0; the minimum standard library is es2015. strictNullChecks is strongly recommended and required by some utilities."],"limitations":["Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.","Terms of use: Apache-2.0 for the code; third-party components retain their own terms.","The README table links ts-toolbelt 9.x to TypeScript ^4.1.x; this is a published range rather than confirmation of compatibility with every later compiler. Place type tests in a file that does not execute."],"faq":[{"question":"What can you use for free in ts-toolbelt?","answer":"Code and local use under Apache-2.0."},{"question":"What additional costs might arise with ts-toolbelt?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for ts-toolbelt?","answer":"Apache-2.0 for the code; third-party components retain their own terms."},{"question":"How do you get started with ts-toolbelt?","answer":"Define source models and the required resulting type. Choose utility types and test valid and invalid public API variants. Add error handling and an integration check of the result."},{"question":"Which transformations does ts-toolbelt express?","answer":"The library works with object, union, function, and literal types. For example, Object.Merge combines object types, while Object.Optional makes a selected field optional; these are type-system operations rather than application data processing."}],"related":[],"sources":["https://github.com/millsp/ts-toolbelt","https://raw.githubusercontent.com/millsp/ts-toolbelt/HEAD/README.md","https://raw.githubusercontent.com/millsp/ts-toolbelt/HEAD/LICENSE","https://www.open-source-tools.com/"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Express a complex TypeScript type transformation.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["Define source models and the required resulting type.","Choose utility types and test valid and invalid public API variants.","Add error handling and an integration check of the result."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/millsp/ts-toolbelt","https://raw.githubusercontent.com/millsp/ts-toolbelt/HEAD/README.md","https://raw.githubusercontent.com/millsp/ts-toolbelt/HEAD/LICENSE","https://www.open-source-tools.com/"],"checkedAt":"2026-10-06","reviewScope":"The purpose, current repository license, and separate terms for code, services, and models have been reviewed. The product was not run, and no security audit was performed.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/millsp/ts-toolbelt","label":"Official source"},{"url":"https://raw.githubusercontent.com/millsp/ts-toolbelt/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/millsp/ts-toolbelt/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"}],"licenseGuides":[{"id":"apache-2","title":"Apache 2.0 — permissive license with patent terms","scope":null,"summary":"You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.","url":"https://www.apache.org/licenses/LICENSE-2.0"}],"entryIds":[],"composition":null}