Skip to content

Commit 9a70c29

Browse files
committed
Resolve a todo
1 parent ed12bf8 commit 9a70c29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8110,9 +8110,8 @@ export function setObjectAllocator(alloc: ObjectAllocator) {
81108110
forEach(objectAllocatorPatchers, fn => fn(objectAllocator));
81118111
}
81128112

8113-
// TODO(jakebailey): replace args type with DiagnosticArguments
81148113
/** @internal */
8115-
export function formatStringFromArgs(text: string, args: ArrayLike<string | number>): string {
8114+
export function formatStringFromArgs(text: string, args: DiagnosticArguments): string {
81168115
return text.replace(/{(\d+)}/g, (_match, index: string) => "" + Debug.checkDefined(args[+index]));
81178116
}
81188117

0 commit comments

Comments
 (0)