Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Remaining non-generated non-reason-parsed files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jbrown215 authored and facebook-github-bot committed Mar 27, 2020
1 parent 94f6db8 commit 153482f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/model/immutable/EditorState.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type EditorStateRecordType = {
selection: ?SelectionState,
treeMap: ?OrderedMap<string, List<any>>,
undoStack: Stack<ContentState>,
...
};

const defaultRecord: EditorStateRecordType = {
Expand Down

0 comments on commit 153482f

Please sign in to comment.