Marking as feature request (unless I'm misunderstanding this), but this would be really helpful... 馃槂
javascript
const test = <A: Array<*>, B>(func: (...args: A) => B, ...args: A): B => {
return func.apply(null, args)
}
javascript
3: const test = <A: Array<*>, B>(func: (...args: A) => B, ...args: A): B => {
^ A. rest parameter should have an explicit array type (or type `any`)
3: const test = <A: Array<*>, B>(func: (...args: A) => B, ...args: A): B => {
^ A. rest parameter should have an explicit array type (or type `any`)
This is a known issue with Flow's implementation of rest params (at least).
Is this issue resolved or why was it closed? Or is there another issue covering this?
Most helpful comment
This is a known issue with Flow's implementation of rest params (at least).