Replace more ...args: any[] with unknown

Follow up on #269213

Typing only change to make `args` type safer
This commit is contained in:
Matt Bierner
2025-10-06 14:12:10 -07:00
parent 75ff485ed9
commit 2b636917ce
24 changed files with 115 additions and 115 deletions

View File

@@ -315,7 +315,7 @@ export class InlineChatController1 implements IEditorContribution {
this._log('DISPOSED controller');
}
private _log(message: string | Error, ...more: any[]): void {
private _log(message: string | Error, ...more: unknown[]): void {
if (message instanceof Error) {
this._logService.error(message, ...more);
} else {
@@ -715,7 +715,7 @@ export class InlineChatController1 implements IEditorContribution {
}
if (e.kind === 'move') {
assertType(this._session);
const log: typeof this._log = (msg: string, ...args: any[]) => this._log('state=_showRequest) moving inline chat', msg, ...args);
const log: typeof this._log = (msg: string, ...args: unknown[]) => this._log('state=_showRequest) moving inline chat', msg, ...args);
log('move was requested', e.target, e.range);