Comment Comment by Vanit It's kind of amusing reading this as a Typescript dev because I'm so used to Typescript's expressiveness I couldn't really work out which trick it was trying to tell me was novel.The answer is structural typing (aka duck typing). parent Vanit 5 years ago
The answer is structural typing (aka duck typing).