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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;

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>;

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>;