mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
Expose text property of SourceFileLike for some Public APIs (#44599)
* Expose text property of SourceFileLike * gulp baseline-accept
This commit is contained in:
parent
2dede207ae
commit
0043abe982
@ -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;
|
||||
|
||||
@ -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>;
|
||||
|
||||
@ -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>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user