From 3e95ae356a98d01e523bdf48547db4114ff224fe Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 22 May 2023 10:40:13 -0300
Subject: fix break on build

---
 packages/exchange-backoffice-ui/src/handlers/InputInteger.tsx | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'packages/exchange-backoffice-ui/src/handlers/InputInteger.tsx')

diff --git a/packages/exchange-backoffice-ui/src/handlers/InputInteger.tsx b/packages/exchange-backoffice-ui/src/handlers/InputInteger.tsx
index 49e6973fc..fb04e3852 100644
--- a/packages/exchange-backoffice-ui/src/handlers/InputInteger.tsx
+++ b/packages/exchange-backoffice-ui/src/handlers/InputInteger.tsx
@@ -1,15 +1,19 @@
 import { VNode, h } from "preact";
 import { InputLine, UIFormProps } from "./InputLine.js";
 
-export function InputInteger(props: UIFormProps<number>): VNode {
+export function InputInteger<T extends object, K extends keyof T>(
+  props: UIFormProps<T, K>,
+): VNode {
   return (
     <InputLine
       type="number"
       converter={{
-        fromStringUI: (v) => {
+        //@ts-ignore
+        fromStringUI: (v): number => {
           return !v ? 0 : Number.parseInt(v, 10);
         },
-        toStringUI: (v?: number) => {
+        //@ts-ignore
+        toStringUI: (v?: number): string => {
           return v === undefined ? "" : String(v);
         },
       }}
-- 
cgit v1.2.3

