chore: use interface instead of class

This commit is contained in:
Mo
2022-04-22 14:07:50 -05:00
parent abb85b3f11
commit 7253dc8e1d

View File

@@ -1,11 +1,13 @@
import { DeviceInterface, Environment } from '@standardnotes/snjs'
import { WebOrDesktopDevice } from '@/Device/WebOrDesktopDevice'
import { WebCommunicationReceiver } from './DesktopWebCommunication'
import { WebOrDesktopDeviceInterface } from './WebOrDesktopDeviceInterface'
export function isDesktopDevice(x: DeviceInterface): x is DesktopDeviceInterface {
return x.environment === Environment.Desktop
}
export interface DesktopDeviceInterface extends WebOrDesktopDevice, WebCommunicationReceiver {
export interface DesktopDeviceInterface
extends WebOrDesktopDeviceInterface,
WebCommunicationReceiver {
environment: Environment.Desktop
}