1 |
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var visitSchema_1 = require("../transforms/visitSchema");
|
4 | var FilterTypes = (function () {
|
5 | function FilterTypes(filter) {
|
6 | this.filter = filter;
|
7 | }
|
8 | FilterTypes.prototype.transformSchema = function (schema) {
|
9 | var _this = this;
|
10 | var _a;
|
11 | return visitSchema_1.visitSchema(schema, (_a = {},
|
12 | _a[visitSchema_1.VisitSchemaKind.TYPE] = function (type) {
|
13 | if (_this.filter(type)) {
|
14 | return undefined;
|
15 | }
|
16 | else {
|
17 | return null;
|
18 | }
|
19 | },
|
20 | _a));
|
21 | };
|
22 | return FilterTypes;
|
23 | }());
|
24 | exports.default = FilterTypes;
|
25 |
|
\ | No newline at end of file |