{"id":13679433,"url":"https://github.com/g-plane/type-gymnastics","last_synced_at":"2025-05-16T11:03:44.003Z","repository":{"id":45713472,"uuid":"292889527","full_name":"g-plane/type-gymnastics","owner":"g-plane","description":"Collection of wonderful TypeScript type gymnastics code snippets.","archived":false,"fork":false,"pushed_at":"2024-11-29T03:02:08.000Z","size":80,"stargazers_count":375,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-12T05:09:01.560Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/g-plane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"g-plane"}},"created_at":"2020-09-04T15:58:11.000Z","updated_at":"2025-05-08T04:32:47.000Z","dependencies_parsed_at":"2025-02-07T10:10:55.264Z","dependency_job_id":"1050b641-25f1-4d30-b8a2-57f56407bf4d","html_url":"https://github.com/g-plane/type-gymnastics","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/g-plane%2Ftype-gymnastics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Ftype-gymnastics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Ftype-gymnastics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g-plane%2Ftype-gymnastics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g-plane","download_url":"https://codeload.github.com/g-plane/type-gymnastics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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-08-02T13:01:05.503Z","updated_at":"2025-05-16T11:03:43.933Z","avatar_url":"https://github.com/g-plane.png","language":"TypeScript","funding_links":["https://github.com/sponsors/g-plane"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n  \u003cimg src=\"./logo.webp\" width=\"128\"\u003e\n  \u003ch1\u003eType Gymnastics\u003c/h1\u003e\n  \u003cp\u003eCollection of wonderful TypeScript type gymnastics code snippets.\u003c/p\u003e\n\u003c/div\u003e\n\n## 📚 Overview List\n\n- [Better `querySelector`](https://github.com/g-plane/type-gymnastics/tree/master/src/better-querySelector) by [Pig Fang](https://github.com/g-plane) - More intelligent `querySelector` by parsing your given CSS selector. Also refer to a formal project: [typed-query-selector](https://github.com/g-plane/typed-query-selector).\n- [C-printf Parser](https://github.com/g-plane/type-gymnastics/tree/master/src/c-printf-parser) by [Pig Fang](https://github.com/g-plane) - Parse placeholders like `%d` and `%s` for a `printf` format string.\n- [Integers Comparator](https://github.com/g-plane/type-gymnastics/tree/master/src/integers-comparator) by [Pig Fang](https://github.com/g-plane) - Compare two integers that can be positive or negative or zero.\n- [Query String Parser](https://github.com/g-plane/type-gymnastics/tree/master/src/query-string-parser) by [Pig Fang](https://github.com/g-plane) - Parse URL query string into an object literal type.\n- [Spec-compliant HTML Parser](https://github.com/g-plane/type-gymnastics/tree/master/src/spec-compliant-html-parser) by [Pig Fang](https://github.com/g-plane) - An HTML parser conforms [WHATWG HTML Standard](https://html.spec.whatwg.org/multipage/syntax.html#syntax) (may not be fully).\n- [Tuple Slice](https://github.com/g-plane/type-gymnastics/tree/master/src/tuple-slice) by [Pig Fang](https://github.com/g-plane) - `Array#slice` implementation at type level.\n- [URL Parser](https://github.com/g-plane/type-gymnastics/tree/master/src/url-parser) by [Pig Fang](https://github.com/g-plane) - Parse a URL into an object literal type with each component of the URL.\n- [Pinia](https://github.com/g-plane/type-gymnastics/tree/master/src/pinia) by [Pig Fang](https://github.com/g-plane) - Type-level function which is similar to [Pinia](https://github.com/posva/pinia).\n\n## 🔍 View Source Code\n\nAll the source code are under `src` directory.\n\nIt's recommended to view them locally with these steps:\n\n1. Make sure you've installed Git, Node.js and Visual Studio Code.\n2. Clone this repository with Git.\n3. Run `npm i` or `yarn` to install TypeScript.\n4. Open this repository in Visual Studio Code.\n5. Enjoy it!\n\n## 📝 Contributing\n\nCreate a new empty directory under `src` directory\nand give it a descriptive and short name,\nthen put your source code in it.\nAlso, please consider adding some tests.\n\nOptionally, you can put a readme in that directory to introduce\nyour code in detail.\n\nLast, please update the \"Overview List\" section of this readme\nto add a new item for your code with brief.\n\nWe assume your code published under MIT License.\n\n## 🍻 Related\n\n- [Type Challenges](https://github.com/type-challenges/type-challenges)\n\n## 📜 License\n\nMIT License\n\nLogo is modified from Picture [Day 5 Gymnastics (19 Aug 2010)](https://www.flickr.com/photos/15322733@N05/4907865188). \"Day 5 Gymnastics (19 Aug 2010)\" by Singapore 2010 Youth Olympic Games is licensed with CC BY-NC 2.0.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-plane%2Ftype-gymnastics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg-plane%2Ftype-gymnastics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg-plane%2Ftype-gymnastics/lists"}