mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Fix for #2268 createDiagnosticCollection should be @internal
DiagnosticsCollection interface is marked @internal in [src/compiler/types.ts](c6cd57d18c/src/compiler/types.ts (L1761)), so this should be @internal too.
Otherwise it causes compilation errors whenever the generated type definitions for LS is used.
See #2268 for more details.
This commit is contained in:
parent
848bc87071
commit
dc451b0f69
@ -1207,6 +1207,7 @@ module ts {
|
||||
}
|
||||
}
|
||||
|
||||
// @internal
|
||||
export function createDiagnosticCollection(): DiagnosticCollection {
|
||||
var nonFileDiagnostics: Diagnostic[] = [];
|
||||
var fileDiagnostics: Map<Diagnostic[]> = {};
|
||||
@ -1336,4 +1337,4 @@ module ts {
|
||||
s.replace(nonAsciiCharacters, c => get16BitUnicodeEscapeSequence(c.charCodeAt(0))) :
|
||||
s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user