Files
standardnotes-app-web/app/assets/javascripts/Device/DesktopDeviceInterface.ts
2022-04-22 14:07:50 -05:00

14 lines
493 B
TypeScript

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