Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workbench] Add missing sizesDiffer implementation
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
workbench/inputs/Libraries/Utilities/differ/sizesDiffer.js.flow
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// @flow | ||
// TODO: Move these Flow typings upstream | ||
type Size = { | ||
width: ?number, | ||
height: ?number, | ||
... | ||
} | ||
|
||
declare var sizesDiffer: (one: ?Size, two: ?Size) => boolean | ||
|
||
declare module.exports: typeof sizesDiffer |
10 changes: 10 additions & 0 deletions
10
workbench/outputs/android/Libraries/Utilities/differ/sizesDiffer.d.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { $TypeOf } from "flow2dts-flow-types-polyfill"; | ||
// @flow | ||
// TODO: Move these Flow typings upstream | ||
declare type Size = { | ||
width: null | undefined | number; | ||
height: null | undefined | number; | ||
}; | ||
declare var sizesDiffer: (one: null | undefined | Size, two: null | undefined | Size) => boolean; | ||
declare const $f2tExportDefault: $TypeOf<typeof sizesDiffer>; | ||
export default $f2tExportDefault; |
10 changes: 10 additions & 0 deletions
10
workbench/outputs/ios/Libraries/Utilities/differ/sizesDiffer.d.ts
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { $TypeOf } from "flow2dts-flow-types-polyfill"; | ||
// @flow | ||
// TODO: Move these Flow typings upstream | ||
declare type Size = { | ||
width: null | undefined | number; | ||
height: null | undefined | number; | ||
}; | ||
declare var sizesDiffer: (one: null | undefined | Size, two: null | undefined | Size) => boolean; | ||
declare const $f2tExportDefault: $TypeOf<typeof sizesDiffer>; | ||
export default $f2tExportDefault; |