Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

While these edge cases are fairly rare in everyday JS codebases, Typescript adds some, e.g. inline type casts for function calls:

    const foo = someFn()
    (foo as Bar).doSomething()


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: