Skip to content

(Frontend) Fix cursor-move icon component name#627

Merged
Luffyyy merged 1 commit intoModWorkshop:mainfrom
KashEight:fix/component-name
Feb 15, 2026
Merged

(Frontend) Fix cursor-move icon component name#627
Luffyyy merged 1 commit intoModWorkshop:mainfrom
KashEight:fix/component-name

Conversation

@KashEight
Copy link
Contributor

Overview

Old name (i-mdi:cursor-move) causes generating invalid component.d.ts below:

const 'IMdi:cursorMove': typeof import('~icons/mdi/cursor-move')['default']

This is invalid syntax and tsc fails as an error.

Comment

component.d.ts diff

--- app/components-old.d.ts	2026-02-15 13:08:38
+++ app/components-new.d.ts	2026-02-15 12:57:49
@@ -12,7 +12,6 @@
 /* prettier-ignore */
 declare module 'vue' {
   export interface GlobalComponents {
-    'IMdi:cursorMove': typeof import('~icons/mdi/cursor-move')['default']
     IMdiAccount: typeof import('~icons/mdi/account')['default']
     IMdiAccountGroup: typeof import('~icons/mdi/account-group')['default']
     IMdiAccountOff: typeof import('~icons/mdi/account-off')['default']
@@ -120,7 +119,6 @@
 
 // For TSX support
 declare global {
-  const 'IMdi:cursorMove': typeof import('~icons/mdi/cursor-move')['default']
   const IMdiAccount: typeof import('~icons/mdi/account')['default']
   const IMdiAccountGroup: typeof import('~icons/mdi/account-group')['default']
   const IMdiAccountOff: typeof import('~icons/mdi/account-off')['default']

* old name causes generating invalid `component.d.ts`

Signed-off-by: kash / Hytus <kash@hytus.net>
@Luffyyy Luffyyy merged commit 068ff63 into ModWorkshop:main Feb 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants