Skip to content

Commit

Permalink
Suppress missing annotations and lock arvr/js
Browse files Browse the repository at this point in the history
Summary:
Add annotations to function parameters required for Flow's Local Type Inference project. This codemod prepares the codebase to match Flow's new typechecking algorithm. The new algorithm will make Flow more reliable and predictable.

Details:
- Codemod script: `scripts/flow/tool add-comments --all --code missing-local-annot --comment "The type annotation(s) required by Flow's LTI update could not be added via codemod" .`
- Local Type Inference announcement: [post](https://fb.workplace.com/groups/flowlang/posts/788206301785035)
- Codemod announcement: [post](https://fb.workplace.com/groups/flowlang/posts/917522612186736)
- Support group: [Flow Support](https://fb.workplace.com/groups/flow)

bypass-lint
drop-conflicts

Reviewed By: evanyeung

Differential Revision: D37403582

fbshipit-source-id: 2024542952042dd93e2c123ba047410e1feca749
  • Loading branch information
pieterv authored and pull[bot] committed Aug 3, 2023
1 parent 304a2ae commit 2195304
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import {
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';

/* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's
* LTI update could not be added via codemod */
const Section = ({children, title}): Node => {
const isDarkMode = useColorScheme() === 'dark';
return (
Expand Down

0 comments on commit 2195304

Please sign in to comment.