News for hackers. Stuff that matters.
Re:Problems with TypeScript by jammygit on Thursday January 16, 2020 @01:36AM (#22062171)
I did that a lot at my last job and found that the debugging was pretty quick. There’s always some race condition from some asynchronous function somebody called without waiting for the callback. Does TS help with that?
Re:Problems with TypeScript by amatecha on Tuesday January 21, 2020 @07:44PM (#22113425)
if something can be returned as undefined instead of a function, then yes, you are forced to either write code to handle the undefined value, or modify your logic so the returned value can only be a function :)