-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LTI annotations to function params in xplat/js [2/2]
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 predicatable. Reviewed By: evanyeung Differential Revision: D37360113 fbshipit-source-id: 870bcfe680542b3861fefbaf372db0ae8b32cbf3
- Loading branch information
1 parent
777a92d
commit d96744e
Showing
2 changed files
with
25 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ const { | |
/** | ||
* Returns a path like 'assets/AwesomeModule/[email protected]' | ||
*/ | ||
function getScaledAssetPath(asset): string { | ||
function getScaledAssetPath(asset: PackagerAsset): string { | ||
const scale = pickScale(asset.scales, PixelRatio.get()); | ||
const scaleSuffix = scale === 1 ? '' : '@' + scale + 'x'; | ||
const assetDir = getBasePath(asset); | ||
|
@@ -45,7 +45,7 @@ function getScaledAssetPath(asset): string { | |
/** | ||
* Returns a path like 'drawable-mdpi/icon.png' | ||
*/ | ||
function getAssetPathInDrawableFolder(asset): string { | ||
function getAssetPathInDrawableFolder(asset: PackagerAsset): string { | ||
const scale = pickScale(asset.scales, PixelRatio.get()); | ||
const drawbleFolder = getAndroidResourceFolderName(asset, scale); | ||
const fileName = getAndroidResourceIdentifier(asset); | ||
|
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