1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-03 01:09:06 +09:00

eliminate misskey-js lint warns

This commit is contained in:
kakkokari-gtyih 2024-07-27 11:56:58 +09:00
parent fa356fa149
commit 2e8866351c
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
import { type Endpoints } from './api.types.js';
import Stream, { Connection } from './streaming.js';
import type { StreamEvents, IStream, IChannelConnection } from './streaming.js';
import { type Channels } from './streaming.types.js';
import { type Acct } from './acct.js';
import type { StreamEvents, IStream, IChannelConnection } from './streaming.js';
import * as consts from './consts.js';
export type {

View File

@ -29,10 +29,10 @@ export interface IStream extends EventEmitter<StreamEvents> {
removeSharedConnection(connection: SharedConnection): void;
removeSharedConnectionPool(pool: Pool): void;
disconnectToChannel(connection: NonSharedConnection): void;
send(typeOrPayload: string): void;
send(typeOrPayload: string, payload: any): void;
send(typeOrPayload: Record<string, any> | any[]): void;
send(typeOrPayload: string | Record<string, any> | any[], payload?: any): void;
send(typeOrPayload: string): void
send(typeOrPayload: string, payload: unknown): void
send(typeOrPayload: Record<string, unknown> | unknown[]): void
send(typeOrPayload: string | Record<string, unknown> | unknown[], payload?: unknown): void {
ping(): void;
heartbeat(): void;
close(): void;
@ -293,7 +293,7 @@ class Pool {
}
}
export interface IChannelConnection<Channel extends AnyOf<Channels> = any> extends EventEmitter<Channel['events']> {
export interface IChannelConnection<Channel extends AnyOf<Channels> = AnyOf<Channels>> extends EventEmitter<Channel['events']> {
id: string;
name?: string;
inCount: number;