sup-ytsync/types.d.ts

14 lines
269 B
TypeScript
Raw Normal View History

2024-01-22 04:07:17 +09:00
import MQTT from 'mqtt';
declare global {
const mqtt: typeof MQTT;
type VideoCommand = 'play' | 'pause' | 'seek';
type VideoState = {
currentTime: number
};
type VideoCommandBroadcaster = (
command: VideoCommand,
state: VideoState
) => void;
}