Skip to content

Commit 6660e5c

Browse files
kassensrickhanlonii
authored andcommitted
Flow: enable exact_by_default (#25220)
With this change, a simple object type `{ }` means an exact object `{| |}` which most people assume. Opting for inexact requires the extra `{ a: number, ... }` syntax at the end. A followup, someone could replace all the `{| |}` with `{ }`.
1 parent 4b0a08c commit 6660e5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/flow/config/flowconfig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,17 @@
3737

3838
[lints]
3939
untyped-type-import=error
40-
implicit-inexact-object=error
4140

4241
[options]
4342
server.max_workers=4
4443
esproposal.class_static_fields=enable
4544
esproposal.class_instance_fields=enable
4645
esproposal.optional_chaining=enable
46+
exact_by_default=true
47+
munge_underscores=false
4748

4849
# Substituted by createFlowConfig.js:
4950
%REACT_RENDERER_FLOW_OPTIONS%
5051

51-
munge_underscores=false
52-
5352
[version]
5453
^0.122.0

0 commit comments

Comments
 (0)