score:1

Accepted answer
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