UNPKG

656 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var debugging_1 = require("../debugging");
4var get_directives_1 = require("../utils/get-directives");
5function transformScalar(schema, scalar) {
6 debugging_1.debugLog("[transformInterface] transformed custom scalar " + scalar.name);
7 var directives = get_directives_1.getDirectives(schema, scalar);
8 return {
9 name: scalar.name,
10 description: scalar.description || '',
11 directives: directives,
12 usesDirectives: Object.keys(directives).length > 0
13 };
14}
15exports.transformScalar = transformScalar;
16//# sourceMappingURL=transform-scalar.js.map
\No newline at end of file