mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Convert some any -> unknown in build scripts
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
export namespace strings {
|
||||
|
||||
export function format(value: string, ...rest: any[]): string {
|
||||
export function format(value: string, ...rest: unknown[]): string {
|
||||
return value.replace(/({\d+})/g, function (match) {
|
||||
const index = Number(match.substring(1, match.length - 1));
|
||||
return String(rest[index]) || match;
|
||||
|
||||
Reference in New Issue
Block a user