We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf15eac commit 5d6b385Copy full SHA for 5d6b385
scripts/buildProtocol.ts
@@ -21,9 +21,8 @@ class DeclarationsWalker {
21
22
static getExtraDeclarations(typeChecker: ts.TypeChecker, protocolFile: ts.SourceFile): string {
23
const walker = new DeclarationsWalker(typeChecker, protocolFile);
24
- let text = "declare namespace ts.server.protocol {\n";
25
walker.visitTypeNodes(protocolFile);
26
- text = walker.text
+ let text = walker.text
27
? `declare namespace ts.server.protocol {\n${walker.text}}`
28
: "";
29
if (walker.removedTypes) {
0 commit comments