Having issue with error types in TypeScript - Kevin Powell - Community