score:1

Accepted answer

you need to tweak the function expression. flow try link

type props = {
  showmodal?: <t>(t => react$node, t) => void,
}

const foo: props = {
  showmodal: (a, b) => undefined
}

const bar: props = {
  showmodal: undefined
}

Related Query

More Query from same tag