mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Update TypeScript, Prettier and typescript-eslint for new TypeScript 3.8 syntax
This commit is contained in:
committed by
Josh Perez
parent
5758ed44ac
commit
26884432a2
@@ -15,8 +15,9 @@ export default function createTaskWithTimeout<T>(
|
||||
let complete = false;
|
||||
let timer: NodeJS.Timeout | null = setTimeout(() => {
|
||||
if (!complete) {
|
||||
const message = `${id ||
|
||||
''} task did not complete in time. Calling stack: ${
|
||||
const message = `${
|
||||
id || ''
|
||||
} task did not complete in time. Calling stack: ${
|
||||
errorForStack.stack
|
||||
}`;
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@ import { w3cwebsocket } from 'websocket';
|
||||
|
||||
type ModifiedEventSource = Omit<EventSource, 'onerror'>;
|
||||
|
||||
declare class ModifiedWebSocket extends w3cwebsocket
|
||||
declare class ModifiedWebSocket
|
||||
extends w3cwebsocket
|
||||
implements ModifiedEventSource {
|
||||
withCredentials: boolean;
|
||||
|
||||
@@ -17,4 +18,5 @@ declare class ModifiedWebSocket extends w3cwebsocket
|
||||
}
|
||||
|
||||
export type WebSocket = ModifiedWebSocket;
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const WebSocket = w3cwebsocket as typeof ModifiedWebSocket;
|
||||
|
||||
Reference in New Issue
Block a user