Skip to content

Commit

Permalink
[TECH-2940] Types improvement (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
av-alexistoledo authored Jan 19, 2024
1 parent ae1f043 commit fd0e918
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/av_client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ export interface ContestConfig extends BaseBoardItem {
type: 'ContestConfigItem'
}

export type availableCustomRulesets = 'belgian_ballot_rules';

export interface ContestContent {
reference: string
title: LocalString
Expand All @@ -401,7 +403,7 @@ export interface ContestContent {
identifiable?: boolean
contestPositions?: ContestPositionMap
blankOptionColor?: string
customRulesets?: string[]
customRulesets?: availableCustomRulesets[]
attachments?: Attachment[]
}

Expand All @@ -419,6 +421,7 @@ export interface OptionContent {
selectable?: boolean
exclusive?: boolean
children?: OptionContent[]
parentContent?: OptionContent
parent?: ParentOption | null
ancestry?: string
position?: number
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1.19",
"version": "3.1.20",
"name": "@aion-dk/js-client",
"license": "MIT",
"description": "Assembly Voting JS client",
Expand Down

0 comments on commit fd0e918

Please sign in to comment.