UNPKG

1.06 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3function isFieldNode(node) {
4 return node['name'] !== undefined && node['selectionSet'] !== undefined && node['type'] !== undefined;
5}
6exports.isFieldNode = isFieldNode;
7function isFragmentSpreadNode(node) {
8 return node['fragmentName'] !== undefined;
9}
10exports.isFragmentSpreadNode = isFragmentSpreadNode;
11function isInlineFragmentNode(node) {
12 return node['selectionSet'] !== undefined && node['onType'] !== undefined;
13}
14exports.isInlineFragmentNode = isInlineFragmentNode;
15// tslint:disable-next-line:variable-name
16exports.EInputType = {
17 SINGLE_FILE: 'SINGLE_FILE',
18 MULTIPLE_FILES: 'MULTIPLE_FILES',
19 PROJECT: 'PROJECT'
20};
21function isCustomProcessingFunction(config) {
22 return typeof config === 'function';
23}
24exports.isCustomProcessingFunction = isCustomProcessingFunction;
25function isGeneratorConfig(config) {
26 return typeof config !== 'function' && !!config.inputType;
27}
28exports.isGeneratorConfig = isGeneratorConfig;
29//# sourceMappingURL=types.js.map
\No newline at end of file