{"id":16149077,"url":"https://github.com/zardoy/typescript-simpler","last_synced_at":"2026-02-27T01:05:21.889Z","repository":{"id":103300762,"uuid":"382148862","full_name":"zardoy/typescript-simpler","owner":"zardoy","description":"The same TypeScript but with some additional syntax","archived":false,"fork":false,"pushed_at":"2021-07-01T21:38:08.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T03:41:24.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/zardoy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-01T20:28:08.000Z","updated_at":"2021-07-01T21:38:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a23a65f1-7e50-4fcf-acca-ae15715b4910","html_url":"https://github.com/zardoy/typescript-simpler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Ftypescript-simpler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Ftypescript-simpler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Ftypescript-simpler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zardoy%2Ftypescript-simpler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zardoy","download_url":"https://codeload.github.com/zardoy/typescript-simpler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557794,"owners_count":20958045,"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":[],"created_at":"2024-10-10T00:36:29.725Z","updated_at":"2025-11-07T18:03:10.713Z","avatar_url":"https://github.com/zardoy.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript Simpler\n\n\u003e Status: planned\n\nIt is like ReScript library, but it designed to work with more popular TypeScript language.\n\nPlease, open an issue if you know an alternative to it.\n\n## New syntax\n\n### [n * type]\n\n```diff\n-type Vector = [number, number, number];\n+type Vector = [3 * number];\n```\n\n`updateSetting(...path.split(\".\") as [3 * string], value)` instead of `updateSetting(...path.split(\".\") as [string, string, string], value)` and so on\n\n### Object type annotation\n\n```diff\n-type Users = { [name: string]: Info };\n+type Users = { [name]: Info };\n```\n\nBad (but useful sometimes tho): `Record\u003cstring, UserInfo\u003e`\nBetter: `{ [userId: string]: UserInfo }`\nIdeal: `{ [userId]: UserInfo }`\n\n## Type Helpers\n\nAdd types in some places for more strict checks.\n\n### Default Type for Catch variables\n\n🔧 defaultTypeInCatchVariables (default: `Error`)\n\nRemember when TypeScript team has [changed the type of](https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-beta/#use-unknown-catch-variables) of variables in catch blocks from `any` to `unknown`? This project, will set type of these variables to `Error`. Just for your convenience, there is no guarantee that 3d party code always would use Error-like classes.\n\n- TODO:\n- [ ] Link ESLint rule that disallows throwing non Error classes like `throw \"Hey there!\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Ftypescript-simpler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzardoy%2Ftypescript-simpler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzardoy%2Ftypescript-simpler/lists"}