From b8eea61013a146c3a1fc4d42d6b94b3f48e179b1 Mon Sep 17 00:00:00 2001 From: alisa Date: Tue, 25 Apr 2023 15:30:16 +0800 Subject: [PATCH] fix: type declaration supplement --- src/modules/[chain]/gov/[proposal_id].vue | 1 - src/types/gov.ts | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/[chain]/gov/[proposal_id].vue b/src/modules/[chain]/gov/[proposal_id].vue index c82a0390..eba73be0 100644 --- a/src/modules/[chain]/gov/[proposal_id].vue +++ b/src/modules/[chain]/gov/[proposal_id].vue @@ -87,7 +87,6 @@ const upgradeCountdown = computed((): number => { }) const total = computed(()=> { - console.log(proposal.value, 'proposal.value') const tally = proposal.value.final_tally_result let sum = 0 if(tally) { diff --git a/src/types/gov.ts b/src/types/gov.ts index 1a53e62b..7f9b4d53 100644 --- a/src/types/gov.ts +++ b/src/types/gov.ts @@ -27,6 +27,10 @@ export interface GovProposal { "@type": string, "title": string, "description": string, + "plan"?: { + 'height'?: string | number, + 'time'?: string | number, + } }, "status": string, "final_tally_result": {