forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: make Props types readonly (step 3 of 3)
Make the last few Props types [1] readonly. This is done manually. The few remaining Props types fall largely into two categories: - types defined using `$Diff`; and - nonempty exact types defined inline. The former have been manually wrapped with $ReadOnly<>. The latter have had their entries prefixed with `+`, which for exact types has essentially the same effect. (See, e.g., the Flow documentation [2] and the original PR [3].) [1] Or at least, the last few Props types detected by `eslint-plugin-flowtype`. [2] https://flow.org/en/docs/types/interfaces/#toc-covariant-read-only-properties-on-interfaces [3] gajus/eslint-plugin-flowtype#400
- Loading branch information
1 parent
cb2e211
commit a25c212
Showing
4 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters