mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-12 21:13:14 +08:00
Redefine TerminalModes index type property to number|undefined
This commit is contained in:
4
ssh2/index.d.ts
vendored
4
ssh2/index.d.ts
vendored
@@ -1087,7 +1087,7 @@ export interface PseudoTtyInfo {
|
||||
}
|
||||
|
||||
export interface TerminalModes {
|
||||
[mode: string]: number;
|
||||
[mode: string]: number|undefined;
|
||||
/** Interrupt character; `255` if none. Not all of these characters are supported on all systems. */
|
||||
VINTR?: number;
|
||||
/** The quit character (sends `SIGQUIT` signal on POSIX systems). */
|
||||
@@ -1555,4 +1555,4 @@ export interface SFTPWrapper extends events.EventEmitter {
|
||||
on(event: "continue", listener: () => void): this;
|
||||
|
||||
on(event: string | symbol, listener: Function): this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user