Files
standardnotes-app-web/app/assets/javascripts/Device/DesktopDeviceInterface.ts
2022-04-28 00:49:27 +05:30

12 lines
501 B
TypeScript

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