TIP

学习Typescript的语法,方便浏览一些有趣的开源项目

The TypeScript Handbookopen in new window

202111300318592

The most common kinds of errors that programmers write can be described as type errors: a certain kind of value was used where a different kind of value was expected. This could be due to simple typos, a failure to understand the API surface of a library, incorrect assumptions about runtime behavior, or other errors. The goal of TypeScript is to be a static typechecker for JavaScript programs - in other words, a tool that runs before your code runs (static) and ensures that the types of the program are correct (typechecked).

资源

type-challenges/type-challenges: Collection of TypeScript type challenges with online judge (github.com)open in new window

Type Challenges Solutions (ghaiklor.github.io)open in new window

TypeScript: JavaScript With Syntax For Types. (typescriptlang.org)open in new window