Files
standardnotes-app-web/app/assets/javascripts/Device/DesktopDeviceInterface.ts

12 lines
467 B
TypeScript

import { DeviceInterface, Environment } from '@standardnotes/snjs'
import { WebOrDesktopDevice } from '@/Device/WebOrDesktopDevice'
import { WebCommunicationReceiver } from './DesktopWebCommunication'
export function isDesktopDevice(x: DeviceInterface): x is DesktopDeviceInterface {
return x.environment === Environment.Desktop
}
export interface DesktopDeviceInterface extends WebOrDesktopDevice, WebCommunicationReceiver {
environment: Environment.Desktop
}