Comment by okeuro49
3 years ago
I've found the biggest difference is structural vs. nominal types.
https://www.typescriptlang.org/play#example/structural-typin...
It seems particularly suited to dealing with random JSON payloads.
3 years ago
I've found the biggest difference is structural vs. nominal types.
https://www.typescriptlang.org/play#example/structural-typin...
It seems particularly suited to dealing with random JSON payloads.
Flow 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.