In Typescript, where do I find a complete reference of all error codes and their fixes.
My usecase is that I often see errors when compiling. for example:
Looking at the 1.6.2 sources of the compiler, tsc.js
, tsserver.js
, typescript.js
and typescriptServices.js
, a variable called ts.Diagnostics
is initialized with a dictionary of all the error codes.
List of codes and definitions of 1.6.2 (unfortunately ugly formatted): https://github.com/Microsoft/TypeScript/blob/v1.6.2/src/compiler/diagnosticInformationMap.generated.ts
A slightly prettier format is available: https://github.com/Microsoft/TypeScript/blob/v1.6.2/src/compiler/diagnosticMessages.json
EDIT
Link to 1.8.5 errors: https://github.com/Microsoft/TypeScript/blob/v1.8.5/src/compiler/diagnosticMessages.json