🔍
🏠
Stack Overflow
🎲
Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
Difference between casting options in Typescript?
Asked
Aug 24 '18 at 10:44
Active
Aug 24 '18 at 10:44
Viewed
40 times
2
0
Is there any difference in Typescript between this 2 options for casting ?
1) <T>obj 2) obj as T
typescript
asked Aug 24 '18 at 10:44
Hivaga
3,738
4
23
36
4
I'd says none, beside the fact that 1) don't work in `tsx` files
–
Rémi Rousselet
Aug 24 '18 at 10:46
0 Answers
0