2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-24 00:13:48 -05:00
PrinterStatus/types/messages.d.ts
Adam Goldsmith afe6a1aed5 Handle camera transforms in ffmpeg, rather than client side
This simplifies the client, as well as fixing rotation
2021-11-18 19:45:51 -05:00

21 lines
500 B
TypeScript

import { Message as OctoprintMessage } from './octoprint';
interface BaseMessage {
printer: string;
}
export interface StatusMessage extends BaseMessage {
kind: 'status';
msg: OctoprintMessage;
}
export type OctoprintColor = 'red' | 'orange' | 'yellow' | 'green' | 'blue' | 'violet' | 'black' | 'white' | 'default';
export interface SettingsMessage extends BaseMessage {
kind: 'settings';
name: string;
color: OctoprintColor;
}
export type Message = StatusMessage | SettingsMessage;