mirror of
https://github.com/pavlobu/deskreen.git
synced 2025-05-18 00:10:12 -07:00
35 lines
727 B
TypeScript
35 lines
727 B
TypeScript
type CallAcceptedMessageWithPayload = {
|
|
type: 'CALL_ACCEPTED';
|
|
payload: {
|
|
signalData: string;
|
|
};
|
|
};
|
|
|
|
type DeviceDetailsMessageWithPayload = {
|
|
type: 'DEVICE_DETAILS';
|
|
payload: {
|
|
socketID: string;
|
|
deviceType: string;
|
|
os: string;
|
|
browser: string;
|
|
deviceScreenWidth: number;
|
|
deviceScreenHeight: number;
|
|
};
|
|
};
|
|
|
|
type GetAppThemeMessageWithPayload = {
|
|
type: 'GET_APP_THEME';
|
|
payload: Record<string, unknown>;
|
|
};
|
|
|
|
type GetAppLanguageMessageWithPayload = {
|
|
type: 'GET_APP_LANGUAGE';
|
|
payload: Record<string, unknown>;
|
|
};
|
|
|
|
type ProcessedMessage =
|
|
| CallAcceptedMessageWithPayload
|
|
| DeviceDetailsMessageWithPayload
|
|
| GetAppThemeMessageWithPayload
|
|
| GetAppLanguageMessageWithPayload;
|