Method Shorthand Syntax Considered Harmfultotaltypescript.com 2 pointsloevborg1 year ago1 commentSaveHideCopy link On HNComments−loevborgOP1yThis unsoundness behavior recently caught me by surprise - and there's an unexpected fix (using object property syntax rather than method shorthand syntax). Also - what a strange behavior by the typescript compiler!
Comments
This unsoundness behavior recently caught me by surprise - and there's an unexpected fix (using object property syntax rather than method shorthand syntax). Also - what a strange behavior by the typescript compiler!