From 153482ff0471b2b5105ed98ec3f43fe68af094b8 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Fri, 27 Mar 2020 09:55:31 -0700 Subject: [PATCH] Remaining non-generated non-reason-parsed files Summary: We are rolling out exact-by-default object type syntax to www. In order to do that, we need to turn all implicitly inexact objects `{}` into explicitly inexact objects `{...}`. This diff has no runtime or type checking changes. I generated this diff by first finding the non-generated files in www that still had implicit inexact objects. After adding `implicit-inexact-object=error` to the flowconfig, I ran: ``` flow --lazy-mode none --show-all-errors | grep -P "\w[^ ]*:[\d]+:[\d]+" -o | sed 's/:.*:.*//' | sort | xargs grep -L -P '@(partially-)?generated' > ~/files_to_codemod phps CodemodConfigRunner CodemodConfigExactByDefault -m local -i ~/files_to_codemod hg st -n | xargs -n 1000 hg commit -m "codemod" ``` bypass-lint allow_many_files drop-conflicts Reviewed By: gkz Differential Revision: D20671138 fbshipit-source-id: 0ab07062eaa569d688ddba36b2c98bf0e709020f --- src/model/immutable/EditorState.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/model/immutable/EditorState.js b/src/model/immutable/EditorState.js index ae6f42ec42..17a66e3fe9 100644 --- a/src/model/immutable/EditorState.js +++ b/src/model/immutable/EditorState.js @@ -71,6 +71,7 @@ type EditorStateRecordType = { selection: ?SelectionState, treeMap: ?OrderedMap>, undoStack: Stack, + ... }; const defaultRecord: EditorStateRecordType = {