type-challenges /type-challenges

Collection of TypeScript type challenges with online judge

★ 48,569⑂ 5,253👁 155⑃ 818● 37,378▤ 0
TypeScriptMITCreated 2020-07-23tsch.js.org/
-1
Daily
+9
Weekly
48,569
stars
5,253
forks
155
watchers
818
prs
37,378
issues
0
releases

README

Collection of TypeScript type challenges


  
    
  
  
    
  





  English | 简体中文 | 日本語 | 한국어 | Português


 Intro


  by the power of TypeScript's well-known Turing Completed type system


High-quality types can help improve projects' maintainability while avoiding potential bugs.

This project is aimed at helping you better understand how the type system works, writing your own utilities, or just having fun with the challenges. We are also trying to form a community where you can ask questions and get answers you have faced in the real world - they may become part of the challenges!

You can also use some existing type utility libraries such as type-fest. There are also some stale packages (not actively maintained) that you could reference, like  utility-types, ts-toolbelt, SimplyTyped.

 Challenges

 Click the following badges to see details of the challenges.

 Note: Challenges work in the strict mode.




                                                                                                                                                                                              By Tags                                                                                                                                                                                                                                                                            By Plain Textwarm-up (1)13・Hello World easy (13)4・Pick 7・Readonly 11・Tuple to Object 14・First of Array 18・Length of Tuple 43・Exclude 189・Awaited 268・If 533・Concat 898・Includes 3057・Push 3060・Unshift 3312・Parameters medium (104)2・Get Return Type 3・Omit 8・Readonly 2 9・Deep Readonly 10・Tuple to Union 12・Chainable Options 15・Last of Array 16・Pop 20・Promise.all 62・Type Lookup 106・Trim Left 108・Trim 110・Capitalize 116・Replace 119・ReplaceAll 191・Append Argument 296・Permutation 298・Length of String 459・Flatten 527・Append to object 529・Absolute 531・String to Union 599・Merge 612・KebabCase 645・Diff 949・AnyOf 1042・IsNever 1097・IsUnion 1130・ReplaceKeys 1367・Remove Index Signature 1978・Percentage Parser 2070・Drop Char 2257・MinusOne 2595・PickByType 2688・StartsWith 2693・EndsWith 2757・PartialByKeys 2759・RequiredByKeys 2793・Mutable 2852・OmitByType 2946・ObjectEntries 3062・Shift 3188・Tuple to Nested Object 3192・Reverse 3196・Flip Arguments 3243・FlattenDepth 3326・BEM style string 3376・InorderTraversal 4179・Flip 4182・Fibonacci Sequence 4260・AllCombinations 4425・Greater Than 4471・Zip 4484・IsTuple 4499・Chunk 4518・Fill 4803・Trim Right 5117・Without 5140・Trunc 5153・IndexOf 5310・Join 5317・LastIndexOf 5360・Unique 5821・MapTypes 7544・Construct Tuple 8640・Number Range 8767・Combination 8987・Subsequence 9142・CheckRepeatedChars 9286・FirstUniqueCharIndex 9616・Parse URL Params 9896・GetMiddleElement 9898・Appear only once 9989・Count Element Number To Object 10969・Integer 16259・ToPrimitive 17973・DeepMutable 18142・All 18220・Filter 19749・IsEqual 21104・FindAll 21106・Combina

Top issues

Discussions

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON