{"id":17929178,"url":"https://github.com/skarab42/unleashed-typescript","last_synced_at":"2025-03-24T04:30:53.671Z","repository":{"id":44489817,"uuid":"512762266","full_name":"skarab42/unleashed-typescript","owner":"skarab42","description":"TypeScript with exposed internal definitions and some private methods for type checking.","archived":false,"fork":false,"pushed_at":"2023-08-03T04:54:15.000Z","size":311,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-19T01:45:26.821Z","etag":null,"topics":["internal","tssert","type-check","type-checker","types","typescript","unleashed"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/unleashed-typescript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skarab42.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"skarab42","custom":"http://paypal.me/skarab"}},"created_at":"2022-07-11T13:12:29.000Z","updated_at":"2024-03-21T02:51:01.000Z","dependencies_parsed_at":"2022-07-19T12:58:56.222Z","dependency_job_id":null,"html_url":"https://github.com/skarab42/unleashed-typescript","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skarab42%2Funleashed-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skarab42%2Funleashed-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skarab42%2Funleashed-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skarab42%2Funleashed-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skarab42","download_url":"https://codeload.github.com/skarab42/unleashed-typescript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245210832,"owners_count":20578296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["internal","tssert","type-check","type-checker","types","typescript","unleashed"],"created_at":"2024-10-28T21:07:56.292Z","updated_at":"2025-03-24T04:30:53.330Z","avatar_url":"https://github.com/skarab42.png","language":"TypeScript","funding_links":["https://github.com/sponsors/skarab42","http://paypal.me/skarab"],"categories":[],"sub_categories":[],"readme":"# unleashed-typescript\n\nTypeScript with exposed internal definitions and some private methods for type checking.\n\n## How does it work?\n\nWhen you install the package, it will look for your local version of TypeScript. It will then make a copy of your version in its own location, apply the patches and re-export the patched version. Then you can import the patched version and enjoy your unleashed version of TypeScript while keeping your original version intact.\n\n## What does it add/remove?\n\n1. Removes all `@internal` tags which allows you to access internal types, classes, properties and methods with their declarations.\n\n2. Export some very useful private methods from the `TypeChecker`:\n\n   ```ts\n   function isTypeSubtypeOf(source: Type, target: Type): boolean;\n   function isTypeIdenticalTo(source: Type, target: Type): boolean;\n   function isTypeDerivedFrom(source: Type, target: Type): boolean;\n   function isTypeAssignableTo(source: Type, target: Type): boolean;\n   function isTypeComparableTo(source: Type, target: Type): boolean;\n   function areTypesComparable(source: Type, target: Type): boolean;\n   ```\n\n   \u003cdetails\u003e\n    \u003csummary\u003eAnd many other things...\u003c/summary\u003e\n\n   ```\n   interface OptionsNameMap;\n\n   function getOptionsNameMap(): OptionsNameMap;\n\n   interface CommandLineOptionOfCustomType;\n   interface CommandLineOptionOfStringType;\n   interface CommandLineOptionOfNumberType;\n   interface CommandLineOptionOfBooleanType;\n   interface TsConfigOnlyOption;\n   interface CommandLineOptionOfListType;\n\n   type CommandLineOption;\n   ```\n\n   \u003c/details\u003e\n\n# Installation\n\n```ts\npnpm add -D typescript unleashed-typescript\n```\n\n```ts\nimport ts from 'unleashed-typescript';\n\n// Use ts as usual.\n```\n\n# CLI\n\nWith no arguments `unleashed-typescript` patches your current version of typescript **if it is not already patched**. If you want to sync your version after an update you can use the `--force-patch` option.\n\n```bash\nUsage: pnpm unleashed-typescript [options]\n\nOptions:\n  --unpatch       Revert the patch (useful before a build/publish).\n  --force-patch   Force patch from your current typescript version.\n```\n\n# Alternatives\n\n`unleashed-typescript` is a combination of the alternatives listed below. But instead of maintaining an up-to-date build of TypeScript we use your locally installed version.\n\n## Remove @internal tags\n\n- [byots](https://github.com/basarat/byots) Bring your own TypeScript with more internal definitions\n- [ts-expose-internals](https://github.com/nonara/ts-expose-internals) Expose TypeScript internal types by simply adding a development dependency\n\n## Expose TypeChecker methods\n\n- [tsd-typescript](https://github.com/SamVerschueren/tsd-typescript) TypeScript with some extras for type-checking.\n\n# Contributing 💜\n\nSee [CONTRIBUTING.md](https://github.com/skarab42/unleashed-typescript/blob/main/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskarab42%2Funleashed-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskarab42%2Funleashed-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskarab42%2Funleashed-typescript/lists"}