Define types for Patcher

This commit is contained in:
redphx
2025-02-08 09:57:42 +07:00
parent 2f8c776133
commit b463e4f014
5 changed files with 112 additions and 84 deletions

View File

@@ -7,7 +7,7 @@ import type { SpeakerState } from "@/modules/shortcuts/sound-shortcut";
type EventCallback<T = any> = (payload: T) => void;
type ScriptEvents = {
export type ScriptEvents = {
'xcloud.server': {
status: 'ready' | 'unavailable' | 'signed-out',
};
@@ -44,7 +44,7 @@ type ScriptEvents = {
'ui.guideAchievementDetail.rendered': {},
};
type StreamEvents = {
export type StreamEvents = {
'state.loading': {};
'state.starting': {};
'state.playing': { $video?: HTMLVideoElement };