Why TypeScript error codes aren't documented

How to pragmatically work with TypeScript errors