From 5766009a444470b0ee5f59825465838f67287298 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 14 Sep 2023 13:11:14 -0400 Subject: [PATCH] Fix imports for Typescript 5.2 --- src/App.vue | 2 +- src/PrinterCard.vue | 4 ++-- tsconfig.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 11eaf3c..391b6cd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,7 +26,7 @@ import { computed, ref, Ref } from 'vue'; import package_info from '../package.json'; -import { Message } from '../types/messages'; +import type { Message } from '../types/messages.js'; import PrinterCard, { PrinterInfo } from './PrinterCard.vue'; import GitSourceCorner from './GitSourceCorner.vue'; diff --git a/src/PrinterCard.vue b/src/PrinterCard.vue index 2665b94..798cbc4 100644 --- a/src/PrinterCard.vue +++ b/src/PrinterCard.vue @@ -59,8 +59,8 @@ import 'video.js/dist/video-js.css'; import { computed, Ref, ref, watchEffect } from 'vue'; import prettyMilliseconds from 'pretty-ms'; -import { CurrentOrHistoryPayload } from '../types/octoprint'; -import { OctoprintColor } from '../types/messages'; +import type { CurrentOrHistoryPayload } from '../types/octoprint.js'; +import type { OctoprintColor } from '../types/messages.js'; export interface Props { slug: string; diff --git a/tsconfig.json b/tsconfig.json index 78eb645..cc9fcd7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,6 @@ "target": "esnext", "useDefineForClassFields": true, "module": "node16", - "moduleResolution": "node", "strict": true, "jsx": "preserve", "sourceMap": true,