Fix TypeScript any type warnings in Vue components

Replace generic 'any' types with specific type definitions:
- EntitySummaryButton: Define edit-requested event payload type
- GiftDetailsStep: Add proper types for edit-entity and submit events
- HomeView: Use GiftedDialog type for customDialog ref

Resolves 7 TypeScript linting warnings, improves type safety
This commit is contained in:
Matthew Raymer
2025-07-05 03:08:12 +00:00
parent 993aa005fa
commit 3585290872
3 changed files with 14 additions and 4 deletions

View File

@@ -390,7 +390,10 @@ export default class GiftDetailsStep extends Vue {
}
@Emit("edit-entity")
emitEditEntity(data: any): any {
emitEditEntity(data: {
entityType: string;
currentEntity: EntityData | null;
}): { entityType: string; currentEntity: EntityData | null } {
return data;
}
@@ -400,7 +403,11 @@ export default class GiftDetailsStep extends Vue {
}
@Emit("submit")
emitSubmit(data: any): any {
emitSubmit(data: { description: string; amount: number; unitCode: string }): {
description: string;
amount: number;
unitCode: string;
} {
return data;
}