TypeScript is javascript but supports type definition. It can help with the development process significantly by requiring user to define type which helps reduce type errors and has a auto-completion when accessing certain object/class, make it easier to work with.
One of the bugs could of been mitigated when using TypeScript as the editor would of warn that the object would of potential return undefined, which was the case that caused the bug.
TypeScript is javascript but supports type definition. It can help with the development process significantly by requiring user to define type which helps reduce type errors and has a auto-completion when accessing certain object/class, make it easier to work with.
One of the bugs could of been mitigated when using TypeScript as the editor would of warn that the object would of potential return undefined, which was the case that caused the bug.