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