Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Oct 14, 2023
1 parent 2569096 commit e63e368
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import * as schema from '../schema/index.js'
type PathTotal = [ path: string, total : number ]

export function parse_proposal (
proposal : Record<string, any>
proposal : unknown
) : ProposalData {
return schema.proposal.data.parse(proposal)
return schema.proposal.data.parse(proposal as ProposalData)
}

export function filter_path (
Expand Down
2 changes: 1 addition & 1 deletion src/validators/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
import * as assert from '../assert.js'

export function validate_proposal (
proposal : Record<string, any>
proposal : unknown
) : asserts proposal is ProposalData {
parse_proposal(proposal)
}
Expand Down

0 comments on commit e63e368

Please sign in to comment.