14 lines
269 B
TypeScript
14 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;
|
||
|
}
|