F# is a suitable alternative to TypeScript for writing a JavaScript application with type-safety. But you also get the additional benefits of F#'s powerful type inference.
TypeScript
interface Person {
firstName: string
lastName: string
}
let people: Person[] = [
{ firstName: 'John', lastName: 'Doe' },
{ firstName: 'Jane', lastName: 'Doe' },
]
let names = people.map(({ firstName,