Hacker News new | ask | show | jobs
by mushishi 1937 days ago
Holy smokes, that would be irritating :D

Btw. is there a difference between these two:

    (s: string): PlainText => <PlainText><any>s;
    (s: string): PlainText => s as any as PlainText;
Syntax-wise I'd rather use the latter for it's more clear in typed JSX-context.
1 comments

As far as I know those two are equivalent. Definitely slightly clunkier, but is what it is.