TypeScript error code

The number TypeScript attaches to each kind of compiler error, such as TS2345 for an argument whose type does not fit.

In more detail

The code is the same in the terminal and the editor, which makes errors easy to search for. TS2345 reads: argument of type X is not assignable to parameter of type Y.

Related terms

Taught in

References