UNPKG

graphql-typed-client-hotfix

Version:

A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)

18 lines 741 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderChainTypes = void 0; var graphql_1 = require("graphql"); var excludedTypes_1 = require("../common/excludedTypes"); var objectType_1 = require("./objectType"); exports.renderChainTypes = function (schema, ctx) { for (var name_1 in schema.getTypeMap()) { if (excludedTypes_1.excludedTypes.includes(name_1)) continue; var type = schema.getTypeMap()[name_1]; if (graphql_1.isObjectType(type) || graphql_1.isInterfaceType(type)) { objectType_1.objectType(type, ctx, 'Promise'); objectType_1.objectType(type, ctx, 'Observable'); } } }; //# sourceMappingURL=renderChainTypes.js.map