1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 11:05:47 +02:00

fix(misskey-js): add mahjong streaming types

This commit is contained in:
zyoshoka
2025-04-18 23:16:37 +09:00
parent ccb6007d32
commit dc55fba800
4 changed files with 106 additions and 3 deletions

View File

@@ -307,7 +307,7 @@ const $i = ensureSignin();
const props = defineProps<{
room: Misskey.entities.MahjongRoomDetailed;
connection?: Misskey.ChannelConnection | null;
connection?: Misskey.ChannelConnection<Misskey.Channels['mahjongRoom']> | null;
}>();
const room = ref<Misskey.entities.MahjongRoomDetailed>(deepClone(props.room));

View File

@@ -69,7 +69,7 @@ const router = useRouter();
const props = defineProps<{
room: Misskey.entities.MahjongRoomDetailed;
connection: Misskey.ChannelConnection;
connection: Misskey.ChannelConnection<Misskey.Channels['mahjongRoom']>;
}>();
const room = ref<Misskey.entities.MahjongRoomDetailed>(deepClone(props.room));

View File

@@ -32,7 +32,7 @@ const props = defineProps<{
}>();
const room = shallowRef<Misskey.entities.MahjongRoomDetailed | null>(null);
const connection = shallowRef<Misskey.ChannelConnection | null>(null);
const connection = shallowRef<Misskey.ChannelConnection<Misskey.Channels['mahjongRoom']> | null>(null);
const shareWhenStart = ref(false);
watch(() => props.roomId, () => {