You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Declaration file for protocol.ts is not generated`)
}
returnprotocolDts;
}
constprotocolFileName="protocol.d.ts";
/**
* Second pass - generate a program from protocol.d.ts and typescriptservices.d.ts, then augment core protocol.d.ts with extra types from typescriptservices.d.ts
constflattenedDiagnostics=diagnostics.map(d=>`${ts.flattenDiagnosticMessageText(d.messageText,"\n")} at ${d.file.fileName} line ${d.start}`).join("\n");
thrownewError(`Unexpected errors during sanity check: ${flattenedDiagnostics}`);
}
}
if(process.argv.length<5){
console.log(`Expected 3 arguments: path to 'protocol.ts', path to 'typescriptservices.d.ts' and path to output file`);