Skip to content

Commit

Permalink
[workbench] Add missing sizesDiffer implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Nov 21, 2020
1 parent bdb0962 commit 99aab6f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
11 changes: 11 additions & 0 deletions workbench/inputs/Libraries/Utilities/differ/sizesDiffer.js.flow
@@ -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
@@ -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 workbench/outputs/ios/Libraries/Utilities/differ/sizesDiffer.d.ts
@@ -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;

0 comments on commit 99aab6f

Please sign in to comment.