Skip to content

Commit 1b07fbb

Browse files
Fix #9843. IScriptSnapshot can return undefined
1 parent 729464d commit 1b07fbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ namespace ts {
9494
* change range cannot be determined. However, in that case, incremental parsing will
9595
* not happen and the entire document will be re - parsed.
9696
*/
97-
getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange;
97+
getChangeRange(oldSnapshot: IScriptSnapshot): TextChangeRange | undefined;
9898

9999
/** Releases all resources held by this script snapshot */
100100
dispose?(): void;

0 commit comments

Comments
 (0)