[Dev] Fix eslint errors (#3709)

This commit is contained in:
Alexander Zinchuk 2023-08-14 11:17:33 +02:00
parent 021f46acd6
commit 65c0ef329a
4 changed files with 3 additions and 5 deletions

View File

@ -3,7 +3,6 @@ import {
} from '../../index';
import type { ApiChat } from '../../../api/types';
import { MAIN_THREAD_ID } from '../../../api/types';
import { MESSAGE_SEARCH_SLICE, SHARED_MEDIA_SLICE } from '../../../config';
import { callApi } from '../../../api/gramjs';
@ -12,7 +11,6 @@ import {
selectCurrentMediaSearch,
selectCurrentMessageList,
selectChat,
selectThreadInfo,
} from '../../selectors';
import { buildCollectionByKey } from '../../../util/iteratees';
import {

View File

@ -49,7 +49,7 @@ export async function authFlow(
client._log.info('Signed in successfully as', utils.getDisplayName(me));
}
export async function signInUserWithPreferredMethod(
export function signInUserWithPreferredMethod(
client: TelegramClient, apiCredentials: ApiCredentials, authParams: UserAuthParams,
): Promise<Api.TypeUser> {
const { initialMethod = DEFAULT_INITIAL_METHOD } = authParams;

View File

@ -67,7 +67,7 @@ class HttpStream {
this.isClosed = false;
}
async write(data: Buffer) {
write(data: Buffer) {
if (this.isClosed || !this.url) {
this.handleDisconnect();
throw closeError;

View File

@ -6,7 +6,7 @@ let decoder: any;
let demuxer: any;
let onDestroy: VoidFunction | undefined;
async function init(
function init(
url: string,
maxFrames: number,
workerIndex: number,