Collection of wonderful TypeScript type gymnastics code snippets.
Collection of wonderful TypeScript type gymnastics code snippets.
querySelector by Pig Fang - More intelligent querySelector by parsing your given CSS selector. Also refer to a formal project: typed-query-selector.%d and %s for a printf format string.Array#slice implementation at type level.All the source code are under src directory.
It's recommended to view them locally with these steps:
npm i or yarn to install TypeScript.Create a new empty directory under src directory
and give it a descriptive and short name,
then put your source code in it.
Also, please consider adding some tests.
Optionally, you can put a readme in that directory to introduce your code in detail.
Last, please update the "Overview List" section of this readme to add a new item for your code with brief.
We assume your code published under MIT License.
MIT License
Logo is modified from Picture Day 5 Gymnastics (19 Aug 2010). "Day 5 Gymnastics (19 Aug 2010)" by Singapore 2010 Youth Olympic Games is licensed with CC BY-NC 2.0.
No open issues yet, or sync has not completed.