fix the last of the type annotations (still have to fix no-explicit-any warnings)

This commit is contained in:
2023-09-04 08:03:43 -06:00
parent fd43da93a5
commit a5e0c847b1
9 changed files with 383 additions and 475 deletions

View File

@@ -89,6 +89,7 @@ import { accessToken } from "@/libs/crypto";
import {
createAndSubmitGive,
CreateAndSubmitGiveResult,
ErrorResult,
GiverInputInfo,
GiverOutputInfo,
} from "@/libs/endorserServer";
@@ -96,7 +97,6 @@ import { Contact } from "@/db/tables/contacts";
import QuickNav from "@/components/QuickNav.vue";
import EntityIcon from "@/components/EntityIcon.vue";
import { IIdentifier } from "@veramo/core";
import { RawAxiosRequestHeaders } from "axios";
interface Notification {
group: string;
@@ -154,7 +154,7 @@ export default class HomeView extends Vue {
this.apiServer = settings?.apiServer || "";
this.activeDid = settings?.activeDid || "";
this.allContacts = await db.contacts.toArray();
} catch (err: unknown) {
} catch (err: any) {
this.$notify(
{
group: "alert",
@@ -170,7 +170,7 @@ export default class HomeView extends Vue {
}
openDialog(giver: GiverInputInfo) {
this.$refs.customDialog.open(giver);
(this.$refs.customDialog as GiftedDialog).open(giver);
}
handleDialogResult(result: GiverOutputInfo) {
@@ -284,7 +284,7 @@ export default class HomeView extends Vue {
}
getGiveCreationErrorMessage(result: CreateAndSubmitGiveResult) {
return result.error?.userMessage;
return (result as ErrorResult).error?.userMessage;
}
getGiveErrorMessage(error: any) {