-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsc fails #375
Comments
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 : "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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there are some issues from TS for generated files
current workaround: add manually
// @ts-nocheck
on top of the fileThe text was updated successfully, but these errors were encountered: