Skip to content

Commit

Permalink
fix: typing of terminalObjectFunction (this)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineol committed Aug 15, 2023
1 parent 7916219 commit 7cb6519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.terminal.d.ts
Expand Up @@ -22,7 +22,7 @@ type TypeOrPromise<T> = T | PromiseLike<T>;

declare namespace JQueryTerminal {
type interpreterFunction = (this: JQueryTerminal, command: string, term: JQueryTerminal) => any;
type terminalObjectFunction = (...args: (string | number | RegExp)[]) => (void | TypeOrPromise<simpleEchoValue>);
type terminalObjectFunction = (this: JQueryTerminal, ...args: (string | number | RegExp)[]) => (void | TypeOrPromise<simpleEchoValue>);
type Interpreter = string | interpreterFunction | ObjectInterpreter;
type ObjectInterpreter = {
[key: string]: ObjectInterpreter | terminalObjectFunction;
Expand Down

0 comments on commit 7cb6519

Please sign in to comment.