chore: use interface instead of class
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user