We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed12bf8 commit 9a70c29Copy full SHA for 9a70c29
src/compiler/utilities.ts
@@ -8110,9 +8110,8 @@ export function setObjectAllocator(alloc: ObjectAllocator) {
8110
forEach(objectAllocatorPatchers, fn => fn(objectAllocator));
8111
}
8112
8113
-// TODO(jakebailey): replace args type with DiagnosticArguments
8114
/** @internal */
8115
-export function formatStringFromArgs(text: string, args: ArrayLike<string | number>): string {
+export function formatStringFromArgs(text: string, args: DiagnosticArguments): string {
8116
return text.replace(/{(\d+)}/g, (_match, index: string) => "" + Debug.checkDefined(args[+index]));
8117
8118
0 commit comments