Update @types/node to 20
This commit is contained in:
parent
2dc8a5a7e3
commit
1fd8b0ef23
5 changed files with 71 additions and 22 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ export class WebSocketResourceWithShadowing implements IWebSocketResource {
|
|||
|
||||
private stats: AggregatedStats;
|
||||
|
||||
private statsTimer: NodeJS.Timer;
|
||||
private statsTimer: NodeJS.Timeout;
|
||||
|
||||
private shadowingWithReporting: boolean;
|
||||
|
||||
|
|
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue