diff --git a/types/oracledb/index.d.ts b/types/oracledb/index.d.ts index fd83bd5dc094e9..3334d6be7ad436 100644 --- a/types/oracledb/index.d.ts +++ b/types/oracledb/index.d.ts @@ -2071,7 +2071,7 @@ declare namespace OracleDB { * * For advanced queue SUBSCR_NAMESPACE_AQ subscriptions, regId is undefined. */ - regId?: string | undefined; + regId?: number | undefined; } /** diff --git a/types/oracledb/oracledb-tests.ts b/types/oracledb/oracledb-tests.ts index 6d99745ea991b9..67b4f1bf7c45c1 100644 --- a/types/oracledb/oracledb-tests.ts +++ b/types/oracledb/oracledb-tests.ts @@ -476,6 +476,7 @@ const version4Tests = async () => { }, }); + expectType(sub.regId); console.log(sub.regId); const queue = await connection.getQueue("test", { diff --git a/types/ssh2/index.d.ts b/types/ssh2/index.d.ts index 1b640f7b062df7..097ac283ef6fe0 100644 --- a/types/ssh2/index.d.ts +++ b/types/ssh2/index.d.ts @@ -1487,6 +1487,8 @@ export interface Session extends ServerChannel { } export interface PseudoTtyInfo { + /** The terminal type requested by the client for the pseudo-TTY (e.g. `"vt100"`). */ + term: string; /** The number of columns for the pseudo-TTY. */ cols: number; /** The number of rows for the pseudo-TTY. */ diff --git a/types/ssh2/ssh2-tests.ts b/types/ssh2/ssh2-tests.ts index 0e1e2e2c3ad53a..c9759988097e30 100644 --- a/types/ssh2/ssh2-tests.ts +++ b/types/ssh2/ssh2-tests.ts @@ -407,6 +407,16 @@ new ssh2.Server({ stream.exit(0); stream.end(); }); + session.once("pty", (accept, reject, info) => { + info.term; // $ExpectType string + info.cols; // $ExpectType number + info.rows; // $ExpectType number + info.width; // $ExpectType number + info.height; // $ExpectType number + info.modes; // $ExpectType TerminalModes + info.modes.VINTR; // $ExpectType number | undefined + accept?.(); + }); }); }).on("end", () => { console.log("Client disconnected");