Expose text property of SourceFileLike for some Public APIs (#44599)

* Expose text property of SourceFileLike

* gulp baseline-accept
This commit is contained in:
Nobuyuki Tsutsui
2022-02-26 07:29:08 +09:00
committed by GitHub
parent 2dede207ae
commit 0043abe982
3 changed files with 13 additions and 1 deletions

View File

@@ -3515,12 +3515,12 @@ namespace ts {
name?: string;
}
/* @internal */
/**
* Subset of properties from SourceFile that are used in multiple utility functions
*/
export interface SourceFileLike {
readonly text: string;
/* @internal */
lineMap?: readonly number[];
/* @internal */
getPositionOfLineAndCharacter?(line: number, character: number, allowEdits?: true): number;