logoalt Hacker News

austin-cheney • today at 2:33 PM • 0 replies • view on HN

Yes and no. TypeScript's type system is duck typing, but if you type absolutely everything it does closely describe actual JavaScript behavior. You can even set rules in your tsconfig file to forbid implicit null or undefined, but I don't do that in my own code.