Skip to content

Commit e44ecbc

Browse files
authored
Make unchangedTextChangeRange const (#55836)
1 parent 956a363 commit e44ecbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/utilitiesPublic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ export function createTextChangeRange(span: TextSpan, newLength: number): TextCh
403403
return { span, newLength };
404404
}
405405

406-
export let unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); // eslint-disable-line prefer-const
406+
export const unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0);
407407

408408
/**
409409
* Called to merge all the changes that occurred across several versions of a script snapshot

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9153,7 +9153,7 @@ declare namespace ts {
91539153
function isJSDocLinkLike(node: Node): node is JSDocLink | JSDocLinkCode | JSDocLinkPlain;
91549154
function hasRestParameter(s: SignatureDeclaration | JSDocSignature): boolean;
91559155
function isRestParameter(node: ParameterDeclaration | JSDocParameterTag): boolean;
9156-
let unchangedTextChangeRange: TextChangeRange;
9156+
const unchangedTextChangeRange: TextChangeRange;
91579157
type ParameterPropertyDeclaration = ParameterDeclaration & {
91589158
parent: ConstructorDeclaration;
91599159
name: Identifier;

0 commit comments

Comments
 (0)