The --fix
option on the command line automatically fixes problems reported by this rule.
This rule enforces exact object types.
The rule has one string option:
"always"
(default): Report all object type definitions that aren't exact."never"
: Report all object type definitions that are exact.
{
"rules": {
"flowtype/require-exact-type": [
2,
"always"
]
}
}
{
"rules": {
"flowtype/require-exact-type": [
2,
"never"
]
}
}