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.
This commit is contained in:
@@ -143,7 +143,7 @@ import {
|
||||
QR_TIMEOUT_STANDARD,
|
||||
QR_TIMEOUT_LONG,
|
||||
} from "@/constants/notifications";
|
||||
import { createNotifyHelpers } from "../utils/notify";
|
||||
import { createNotifyHelpers, NotifyFunction } from "../utils/notify";
|
||||
|
||||
interface QRScanResult {
|
||||
rawValue?: string;
|
||||
@@ -191,7 +191,7 @@ interface IUserNameDialog {
|
||||
* @since 2024
|
||||
*/
|
||||
export default class ContactQRScanFull extends Vue {
|
||||
$notify!: (notification: any, timeout?: number) => void;
|
||||
$notify!: NotifyFunction;
|
||||
$router!: Router;
|
||||
|
||||
// Notification helper system
|
||||
|
||||
Reference in New Issue
Block a user