The slide says by 'TypeScript'. Not by 'Types'.
So the static code analysis of the typescript compiler would have catched the bugs.
Without examples of those bugs it's hard to say if types play a role here.
It could very well be that most of these bugs would have been prevented by any static code analysis. Independent of the usage of types.