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

Does it support structural typing? That seems to be the strongest advantage of TypeScript.


Yes, it does. You can define object types like { x: number; y: string }, tuple types like [number, string], function types like (x:number) => string, etc.




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

Search: