From f02ce1f6a02661da69aade37d9d167274c23dad4 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 1 Feb 2017 15:22:35 -0800 Subject: [PATCH] PR Feedback --- src/compiler/comments.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/comments.ts b/src/compiler/comments.ts index f69b4c546a0..200158c2f5c 100644 --- a/src/compiler/comments.ts +++ b/src/compiler/comments.ts @@ -11,7 +11,7 @@ namespace ts { emitTrailingCommentsOfPosition(pos: number): void; } - export function createCommentWriter(printerOptions: PrinterOptions, emitPos: (pos: number) => void): CommentWriter { + export function createCommentWriter(printerOptions: PrinterOptions, emitPos: ((pos: number) => void) | undefined): CommentWriter { const extendedDiagnostics = printerOptions.extendedDiagnostics; const newLine = getNewLineCharacter(printerOptions); let writer: EmitTextWriter;