Update @types/node to 20

This commit is contained in:
Fedor Indutny 2024-07-18 10:17:56 -07:00 committed by GitHub
parent 2dc8a5a7e3
commit 1fd8b0ef23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 71 additions and 22 deletions

View file

@ -241,7 +241,7 @@ export class ConversationModel extends window.Backbone
string,
{
senderId: string;
timer: NodeJS.Timer;
timer: NodeJS.Timeout;
timestamp: number;
}
>;
@ -270,9 +270,9 @@ export class ConversationModel extends window.Backbone
throttledUpdateVerified?: () => void;
typingRefreshTimer?: NodeJS.Timer | null;
typingRefreshTimer?: NodeJS.Timeout | null;
typingPauseTimer?: NodeJS.Timer | null;
typingPauseTimer?: NodeJS.Timeout | null;
intlCollator = new Intl.Collator(undefined, { sensitivity: 'base' });
@ -286,7 +286,7 @@ export class ConversationModel extends window.Backbone
private lastIsTyping?: boolean;
private muteTimer?: NodeJS.Timer;
private muteTimer?: NodeJS.Timeout;
private isInReduxBatch = false;

View file

@ -369,7 +369,7 @@ export class WebSocketResourceWithShadowing implements IWebSocketResource {
private stats: AggregatedStats;
private statsTimer: NodeJS.Timer;
private statsTimer: NodeJS.Timeout;
private shadowingWithReporting: boolean;

View file

@ -213,8 +213,10 @@ async function defaultConnect({
}: ConnectOptionsType): Promise<net.Socket> {
const socket = tls.connect(port, address, {
...tlsOptions,
signal: abortSignal,
});
abortSignal?.addEventListener('abort', () =>
socket.destroy(new Error('Aborted'))
);
const { promise: onHandshake, resolve, reject } = explodePromise<void>();