TypeScript type gymnastics

Original link: https://hsiaofongw.notion.site/TypeScript-c3a034e447904ab998e3e1f2197eda94


This article introduces type programming techniques in TypeScript, including tuple operations, string conversion, substring lookup, and character splitting. These tips can help us make better use of TypeScript’s static checking features, check the code at compile time, and reduce the amount of code.

This article is transferred from: https://hsiaofongw.notion.site/TypeScript-c3a034e447904ab998e3e1f2197eda94
This site is only for collection, and the copyright belongs to the original author.