node v18 type-checker hates this, ignore it

This commit is contained in:
RealBeepMcJeep 2023-08-30 11:39:51 -07:00
parent cd8027aeea
commit aa901883d2
1 changed files with 2 additions and 4 deletions

View File

@ -91,10 +91,8 @@ function createDefaultFiles() {
} }
const net = require("net"); const net = require("net");
// work around a node v20 bug: https://github.com/nodejs/node/issues/47822#issuecomment-1564708870 // @ts-ignore work around a node v20 bug: https://github.com/nodejs/node/issues/47822#issuecomment-1564708870
if (net.setDefaultAutoSelectFamily) { if (net.setDefaultAutoSelectFamily) net.setDefaultAutoSelectFamily(false);
net.setDefaultAutoSelectFamily(false);
}
const cliArguments = yargs(hideBin(process.argv)) const cliArguments = yargs(hideBin(process.argv))
.option('disableCsrf', { .option('disableCsrf', {