1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var debugging_1 = require("../debugging");
|
4 | var get_directives_1 = require("../utils/get-directives");
|
5 | function 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 | }
|
15 | exports.transformScalar = transformScalar;
|
16 |
|
\ | No newline at end of file |