standardnotes-app/app/assets/javascripts/Device/DesktopDeviceInterface.ts
Mo bce8c5fcba
feat: option to sign out all workspaces (#1005)
* feat: option to sign out all workspaces

* style: prettier width 120

* chore: bump snjs
2022-04-26 15:28:30 -05:00

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
}