top | item 44874580

Method Shorthand Syntax Considered Harmful

2 points| loevborg | 6 months ago |totaltypescript.com

1 comment

order

loevborg|6 months ago

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!