chore: format
This commit is contained in:
parent
66dec9c54e
commit
3f8bd14f0d
|
@ -81,7 +81,7 @@ import MkButton from "@/components/MkButton.vue";
|
|||
import { i18n } from "@/i18n";
|
||||
import { defaultStore } from "@/store";
|
||||
|
||||
// biome-ignore lint/suspicious/noExplicitAny:
|
||||
// biome-ignore lint/suspicious/noExplicitAny:
|
||||
export type PagingKey = TypeUtils.EndpointsOf<any[]>;
|
||||
|
||||
export interface Paging<E extends PagingKey = PagingKey> {
|
||||
|
@ -146,7 +146,7 @@ const error = ref(false);
|
|||
const init = async (): Promise<void> => {
|
||||
queue.value = [];
|
||||
fetching.value = true;
|
||||
|
||||
|
||||
const params = props.pagination.params
|
||||
? isRef<Param>(props.pagination.params)
|
||||
? props.pagination.params.value
|
||||
|
|
|
@ -97,7 +97,7 @@ let query: {
|
|||
} = {};
|
||||
|
||||
// FIXME: The type defination is wrong here, need fix
|
||||
let connection:
|
||||
let connection:
|
||||
| StreamTypes.ChannelOf<"antenna">
|
||||
| StreamTypes.ChannelOf<"homeTimeline">
|
||||
| StreamTypes.ChannelOf<"recommendedTimeline">
|
||||
|
@ -105,7 +105,7 @@ let connection:
|
|||
| StreamTypes.ChannelOf<"globalTimeline">
|
||||
| StreamTypes.ChannelOf<"main">
|
||||
| StreamTypes.ChannelOf<"userList">
|
||||
| StreamTypes.ChannelOf<"channel">
|
||||
| StreamTypes.ChannelOf<"channel">;
|
||||
|
||||
let connection2: { dispose: () => void } | null;
|
||||
|
||||
|
|
|
@ -342,7 +342,12 @@ class SharedConnection<
|
|||
return this.pool.id;
|
||||
}
|
||||
|
||||
constructor(stream: Stream, channel: keyof Channels, pool: Pool, name?: string) {
|
||||
constructor(
|
||||
stream: Stream,
|
||||
channel: keyof Channels,
|
||||
pool: Pool,
|
||||
name?: string,
|
||||
) {
|
||||
super(stream, channel, name);
|
||||
|
||||
this.pool = pool;
|
||||
|
|
Loading…
Reference in New Issue