From 58bd8155601d586ba535a3c6e7bfafadcccab187 Mon Sep 17 00:00:00 2001 From: av-alexistoledo <112619860+av-alexistoledo@users.noreply.github.com> Date: Mon, 23 Oct 2023 12:10:38 +0200 Subject: [PATCH] adding types (#261) --- lib/av_client/types.ts | 11 +++++++++++ package.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lib/av_client/types.ts b/lib/av_client/types.ts index 6d4ed7d4..90920b4a 100644 --- a/lib/av_client/types.ts +++ b/lib/av_client/types.ts @@ -423,6 +423,7 @@ export interface OptionContent { selectable?: boolean; exclusive?: boolean; voteLimit?: number; + color?: string; randomizeChildren?: boolean; } @@ -551,3 +552,13 @@ export interface CheckedEventArgs { reference: string; amount: number; } + +export interface PartialResult { + reference: string; + results: PartialCount; +} + +export interface PartialCount { + count: number; + percentage: number; +} diff --git a/package.json b/package.json index f918535d..cab94026 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aion-dk/js-client", - "version": "3.1.10", + "version": "3.1.11", "license": "MIT", "description": "Assembly Voting JS client", "main": "dist/lib/av_client.js",