@gqlts/cli
Version:
Generate a client sdk from your GraphQl API
12 lines • 471 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderScalarTypes = renderScalarTypes;
const typeMappedAlias_1 = require("./typeMappedAlias");
function renderScalarTypes(ctx, types) {
let content = '';
types.forEach((type) => {
content += ` ${type.name}: ${(0, typeMappedAlias_1.getTypeMappedAlias)(type, ctx)},\n`;
});
return `export type Scalars = {\n${content}}`;
}
//# sourceMappingURL=scalarType.js.map
;