Closed Hulkmaster closed 3 weeks ago
Zeus stops working with every new version of TS
I will try my best to fix
Hi, same here, did you find somethings better than // @ts-nocheck ?
Edit : I have done this thing to automate it :
"scripts": {
"zeus": "zeus schema.gql ../../packages/ --typedDocumentNode && ts-node ../../packages/zeus/fixMe.ts"
},
fixMe.ts
import * as fs from "fs";
const main = () => {
const path = "../../packages/zeus/index.ts";
const data = fs.readFileSync(path).toString().split("\n");
data.splice(0, 0, "// @ts-nocheck");
const text = data.join("\n");
fs.writeFile(path, text, "utf-8", (err) => {
if (err) {
throw err;
}
console.log("Zeus Patched.");
});
};
main();
there are some issues from TS for generated files
current workaround: add manually
// @ts-nocheck
on top of the file