From 4fbc449ee3b388ae42cd35fb96680a0efb24968a Mon Sep 17 00:00:00 2001 From: Antoine ORY-LAMBALLE Date: Tue, 15 Aug 2023 15:54:52 +0800 Subject: [PATCH] fix: typing of terminalObjectFunction (this) --- js/jquery.terminal.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.terminal.d.ts b/js/jquery.terminal.d.ts index 12a598f7..89468add 100644 --- a/js/jquery.terminal.d.ts +++ b/js/jquery.terminal.d.ts @@ -22,7 +22,7 @@ type TypeOrPromise = T | PromiseLike; declare namespace JQueryTerminal { type interpreterFunction = (this: JQueryTerminal, command: string, term: JQueryTerminal) => any; - type terminalObjectFunction = (...args: (string | number | RegExp)[]) => (void | TypeOrPromise); + type terminalObjectFunction = (this: JQueryTerminal, ...args: (string | number | RegExp)[]) => (void | TypeOrPromise); type Interpreter = string | interpreterFunction | ObjectInterpreter; type ObjectInterpreter = { [key: string]: ObjectInterpreter | terminalObjectFunction;