I'm facing a perplexing compiler error while trying to define a function that requires an array as its sole argument.
Below is a concise scenario to reproduce the issue: http://www.example.com
import React from 'react'
type FooProps = {
onFoo: number[] => void,
onBar: Array<number> => void
}
function Foo(props: FooProps) {}
This results in errors such as "';' expected.ts(1005)".