Prefer import type when importing types

This commit is contained in:
Evan Hahn 2021-10-26 14:15:33 -05:00 committed by GitHub
parent 0f635af8a9
commit 74fde10ff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
721 changed files with 2037 additions and 1947 deletions

View file

@ -2,16 +2,19 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { createReadStream, statSync } from 'fs';
import { createServer, IncomingMessage, Server, ServerResponse } from 'http';
import { AddressInfo } from 'net';
import type { IncomingMessage, Server, ServerResponse } from 'http';
import { createServer } from 'http';
import type { AddressInfo } from 'net';
import { dirname } from 'path';
import { v4 as getGuid } from 'uuid';
import { app, autoUpdater, BrowserWindow } from 'electron';
import type { BrowserWindow } from 'electron';
import { app, autoUpdater } from 'electron';
import config from 'config';
import { gt } from 'semver';
import got from 'got';
import type { UpdaterInterface } from './common';
import {
checkForUpdates,
deleteTempDir,
@ -19,10 +22,9 @@ import {
getAutoDownloadUpdateSetting,
getPrintableError,
setUpdateListener,
UpdaterInterface,
} from './common';
import * as durations from '../util/durations';
import { LoggerType } from '../types/Logging';
import type { LoggerType } from '../types/Logging';
import { hexToBinary, verifySignature } from './signature';
import { markShouldQuit } from '../../app/window_state';
import { DialogType } from '../types/Dialogs';