1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const types_1 = require("./types");
|
4 | const dependencies_1 = require("./dependencies");
|
5 | const dependencyImports_1 = require("./dependencyImports");
|
6 | const stringDeclarations_1 = require("./stringDeclarations");
|
7 | const typePredicates_1 = require("./typePredicates");
|
8 | exports.fragmentFile = (fragment, outputPath, globalSourcePath, context) => [
|
9 | ...dependencyImports_1.default(dependencies_1.default(fragment.selectionSet), outputPath, globalSourcePath, context),
|
10 | ...stringDeclarations_1.default(fragment.fragmentName, fragment.filePath, outputPath, [], true),
|
11 | types_1.exportDeclaration(types_1.typeAliasDeclarationForFragment(fragment)),
|
12 | types_1.exportDeclaration(typePredicates_1.isFragmentDeclaration(fragment))
|
13 | ];
|
14 |
|
\ | No newline at end of file |