Skip to content

Comment on Method Shorthand Syntax Considered Harmful

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!

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.