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-25 14:29:08 -08:00
committed by GitHub
parent 2dede207ae
commit 0043abe982
3 changed files with 13 additions and 1 deletions
+1 -1
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;
+6
View File
@@ -2015,6 +2015,12 @@ declare namespace ts {
path: string;
name?: string;
}
/**
* Subset of properties from SourceFile that are used in multiple utility functions
*/
export interface SourceFileLike {
readonly text: string;
}
export interface SourceFile extends Declaration {
readonly kind: SyntaxKind.SourceFile;
readonly statements: NodeArray<Statement>;
+6
View File
@@ -2015,6 +2015,12 @@ declare namespace ts {
path: string;
name?: string;
}
/**
* Subset of properties from SourceFile that are used in multiple utility functions
*/
export interface SourceFileLike {
readonly text: string;
}
export interface SourceFile extends Declaration {
readonly kind: SyntaxKind.SourceFile;
readonly statements: NodeArray<Statement>;