mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-09 22:57:44 +02:00
Define types for Patcher
This commit is contained in:
@@ -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 };
|
||||
|
Reference in New Issue
Block a user