mirror of
https://github.com/standardnotes/app.git
synced 2026-01-11 19:56:41 +00:00
13 lines
507 B
TypeScript
13 lines
507 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
|
|
}
|