[Dev] Fix eslint errors (#3709)
This commit is contained in:
parent
021f46acd6
commit
65c0ef329a
@ -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 {
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user