4 ms·
I've found the biggest difference is structural vs. nominal types. https://www.typescriptlang.org/play#example/structural-typing https://www.typescriptlang.org
by okeuro49 3y ago
I've found the biggest difference is structural vs. nominal types.
https://www.typescriptlang.org/play#example/structural-typing https://www.typescriptlang.org/play#example/structural-typin...
It seems particularly suited to dealing with random JSON payloads.
- mirekrusin 3y agoFlow supports both nominal types for classes with correct variance and structural types for everything else. This is correct model for js, flow is ahead of typescript in this case.