From e5ab7c93f9447108412af5100ca1cea952f715a1 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 2 May 2024 17:53:17 +0700 Subject: [PATCH] Fix imports --- src/macros/build.ts | 1 - src/types/index.d.ts | 3 +++ src/utils/html.ts | 12 ------------ 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/macros/build.ts b/src/macros/build.ts index ef31386..d37fc7f 100644 --- a/src/macros/build.ts +++ b/src/macros/build.ts @@ -1,6 +1,5 @@ import stylus from 'stylus'; -// @ts-ignore import cssStr from "@assets/css/styles.styl" with { type: "text" }; const generatedCss = await (stylus(cssStr, {}) diff --git a/src/types/index.d.ts b/src/types/index.d.ts index 79fc6e5..793c9b2 100644 --- a/src/types/index.d.ts +++ b/src/types/index.d.ts @@ -67,3 +67,6 @@ type XcloudTitleInfo = { tileImageUrl: string; }; }; + +declare module "*.svg"; +declare module "*.styl"; diff --git a/src/utils/html.ts b/src/utils/html.ts index be8bd0c..fdded1a 100644 --- a/src/utils/html.ts +++ b/src/utils/html.ts @@ -1,26 +1,14 @@ -// @ts-ignore import iconController from "@assets/svg/controller.svg" with { type: "text" }; -// @ts-ignore import iconCopy from "@assets/svg/copy.svg" with { type: "text" }; -// @ts-ignore import iconCursorText from "@assets/svg/cursor-text.svg" with { type: "text" }; -// @ts-ignore import iconDisplay from "@assets/svg/display.svg" with { type: "text" }; -// @ts-ignore import iconMouseSettings from "@assets/svg/mouse-settings.svg" with { type: "text" }; -// @ts-ignore import iconMouse from "@assets/svg/mouse.svg" with { type: "text" }; -// @ts-ignore import iconNew from "@assets/svg/new.svg" with { type: "text" }; -// @ts-ignore import iconQuestion from "@assets/svg/question.svg" with { type: "text" }; -// @ts-ignore import iconRemotePlay from "@assets/svg/remote-play.svg" with { type: "text" }; -// @ts-ignore import iconStreamSettings from "@assets/svg/stream-settings.svg" with { type: "text" }; -// @ts-ignore import iconStreamStats from "@assets/svg/stream-stats.svg" with { type: "text" }; -// @ts-ignore import iconTrash from "@assets/svg/trash.svg" with { type: "text" };