From 7253dc8e1dd99eddfb24d2755cbd7329e4bc132a Mon Sep 17 00:00:00 2001 From: Mo Date: Fri, 22 Apr 2022 14:07:50 -0500 Subject: [PATCH] chore: use interface instead of class --- app/assets/javascripts/Device/DesktopDeviceInterface.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/Device/DesktopDeviceInterface.ts b/app/assets/javascripts/Device/DesktopDeviceInterface.ts index be4e54c5a..b8ec4a3db 100644 --- a/app/assets/javascripts/Device/DesktopDeviceInterface.ts +++ b/app/assets/javascripts/Device/DesktopDeviceInterface.ts @@ -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 }