Initial Save
This commit is contained in:
14
node_modules/graphql/polyfills/isFinite.js.flow
generated
vendored
Normal file
14
node_modules/graphql/polyfills/isFinite.js.flow
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// @flow strict
|
||||
|
||||
declare function isFinitePolyfill(
|
||||
value: mixed,
|
||||
): boolean %checks(typeof value === 'number');
|
||||
|
||||
/* eslint-disable no-redeclare */
|
||||
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
|
||||
const isFinitePolyfill =
|
||||
Number.isFinite ||
|
||||
function(value) {
|
||||
return typeof value === 'number' && isFinite(value);
|
||||
};
|
||||
export default isFinitePolyfill;
|
||||
Reference in New Issue
Block a user