21 lines
692 B
TypeScript
21 lines
692 B
TypeScript
import { Environment } from '@standardnotes/models'
|
|
|
|
import { HomeServerManagerInterface } from '../HomeServer/HomeServerManagerInterface'
|
|
|
|
import { WebClientRequiresDesktopMethods } from './DesktopWebCommunication'
|
|
import { DeviceInterface } from './DeviceInterface'
|
|
import { WebOrDesktopDeviceInterface } from './WebOrDesktopDeviceInterface'
|
|
|
|
/* istanbul ignore file */
|
|
|
|
export function isDesktopDevice(x: DeviceInterface): x is DesktopDeviceInterface {
|
|
return x.environment === Environment.Desktop
|
|
}
|
|
|
|
export interface DesktopDeviceInterface
|
|
extends WebOrDesktopDeviceInterface,
|
|
WebClientRequiresDesktopMethods,
|
|
HomeServerManagerInterface {
|
|
environment: Environment.Desktop
|
|
}
|