export the type Log that is used by exported functions

closes https://github.com/Microsoft/TypeScript/issues/13559
This commit is contained in:
Basarat Ali Syed
2017-01-21 11:36:18 +11:00
committed by GitHub
parent 82d8befe06
commit 108d8cf584

View File

@@ -1,6 +1,6 @@
/* @internal */
namespace ts.Completions {
type Log = (message: string) => void;
export type Log = (message: string) => void;
export function getCompletionsAtPosition(host: LanguageServiceHost, typeChecker: TypeChecker, log: Log, compilerOptions: CompilerOptions, sourceFile: SourceFile, position: number): CompletionInfo | undefined {
if (isInReferenceComment(sourceFile, position)) {