Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/oracledb/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2071,7 +2071,7 @@ declare namespace OracleDB {
*
* For advanced queue SUBSCR_NAMESPACE_AQ subscriptions, regId is undefined.
*/
regId?: string | undefined;
regId?: number | undefined;
}

/**
Expand Down
1 change: 1 addition & 0 deletions types/oracledb/oracledb-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ const version4Tests = async () => {
},
});

expectType<number | undefined>(sub.regId);
console.log(sub.regId);

const queue = await connection.getQueue("test", {
Expand Down
2 changes: 2 additions & 0 deletions types/ssh2/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
10 changes: 10 additions & 0 deletions types/ssh2/ssh2-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down