{"version":3,"sources":["jsdelivr-header.js","/npm/@comparaonline/schema-typescript-generator@1.1.1/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,SAAE,UAAa,QAAQ,0BAEvB,cAAgB,CAAC,EAAY,IAU1B,SATQ,CACb,WAAW,EACX,OAAQ,EACR,UAAW,CACT,CAAC,GAAa,CACZ,QAAS,CAAC,oBAAqB,yBAIb,OAAM,GAAK,QAAQ,IAAI,sCAAuC,KAGxF,OAAO,QAAU","file":"/npm/@comparaonline/schema-typescript-generator@1.1.1/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@comparaonline/schema-typescript-generator@1.1.1/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const { generate } = require('graphql-code-generator');\n\nconst generateTypes = (schemaPath, outputPath) => {\n  const config = {\n    overwrite: true,\n    schema: schemaPath,\n    generates: {\n      [outputPath]: {\n        plugins: ['typescript-common', 'typescript-server'],\n      },\n    },\n  };\n  return generate(config).catch(e => console.log('Schema typescript generation failed', e));\n};\n\nmodule.exports = generateTypes;\n"]}