From 79593f12b4be598e4bce60ad75c630cddebfe875 Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Thu, 14 Aug 2025 11:05:34 +0000 Subject: [PATCH] fix(types): resolve notification system type safety issues - Replace $notify any types with proper NotifyFunction interface - Import NotifyFunction type from utils/notify - Eliminate 5 TypeScript any type warnings - Improve type safety for notification system across components Reduces lint warnings from 25 to 20 by addressing high-impact, low-effort notification type issues. Maintains full functionality while improving code quality and IntelliSense support. --- src/App.vue | 56 +++++++++++++++++++------- src/components/ActivityListItem.vue | 4 +- src/components/GiftedDialog.vue | 4 +- src/components/ImageMethodDialog.vue | 4 +- src/test/index.ts | 12 ++++-- src/views/ContactQRScanFullView.vue | 4 +- src/views/ImportDerivedAccountView.vue | 4 +- 7 files changed, 61 insertions(+), 27 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0b190521..8bd39b52 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,8 +28,12 @@ class="w-full max-w-sm mx-auto mb-3 overflow-hidden bg-slate-900/90 text-white rounded-lg shadow-md" >
-

{{ notification.title }}

-

{{ notification.text }}

+

+ {{ notification.title }} +

+

+ {{ notification.text }} +

@@ -46,9 +50,15 @@ > -
-

{{ notification.title }}

-

{{ notification.text }}

+
+

+ {{ notification.title }} +

+

+ {{ notification.text }} +

-
-

{{ notification.title }}

-

{{ notification.text }}

+
+

+ {{ notification.title }} +

+

+ {{ notification.text }} +

-
-

{{ notification.title }}

-

{{ notification.text }}

+
+

+ {{ notification.title }} +

+

+ {{ notification.text }} +

-
-

{{ notification.title }}

-

{{ notification.text }}

+
+

+ {{ notification.title }} +

+

+ {{ notification.text }} +