WIP - add extractor, generate snippet_data
This commit is contained in:
13
node_modules/graphql-compose/esm/utils/is.js.flow
generated
vendored
Normal file
13
node_modules/graphql-compose/esm/utils/is.js.flow
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
/* @flow strict */
|
||||
|
||||
export function isString(value: ?mixed) /* : boolean %checks */ {
|
||||
return typeof value === 'string';
|
||||
}
|
||||
|
||||
export function isObject(value: ?mixed) /* : boolean %checks */ {
|
||||
return typeof value === 'object' && !Array.isArray(value) && value !== null;
|
||||
}
|
||||
|
||||
export function isFunction(value: ?mixed) /* : boolean %checks */ {
|
||||
return !!(value && value.constructor && value.call && typeof value === 'function' && value.apply);
|
||||
}
|
||||
Reference in New Issue
Block a user