function test() {
try {
//
} catch ({ message }) { // Unsupported catch parameter declaration.
//
}
}
https://flow.org/try/#0GYVwdgxgLglg9mABFApgZygCgJSIN4BQixyATgJ75EnED0t1xAvohAIZQQAWimeiAW3Ro2AcxSImuQjToMaTAkyA
not sure if this is related:
function test() {
try {
//
} catch (err: { message: string }) { // Type annotations for catch parameters are not yet supported
//
}
}
https://flow.org/try/#0GYVwdgxgLglg9mABFApgZygCgJSIN4BQixyATgJ75EnED0t1xAvohAIZQQAWimKppAFz5EAW3Ro2AcxTCMpGGClNchGnQY0mBJkA