Skip to content

Commit a2f45e9

Browse files
Merge pull request #9853 from HerringtonDarkholme/master
Fix #9843. IScriptSnapshot can return undefined
2 parents 6e4dd75 + 1b07fbb commit a2f45e9

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)