sup-ytsync/types.d.ts

13 lines
269 B
TypeScript

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;
}