Files
standardnotes-app-web/packages/services/src/Domain/Device/DesktopDeviceInterface.ts

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
}