From b8ab7fe8e53a20034ce7a18a06fb40dc8e164fbd Mon Sep 17 00:00:00 2001 From: dubisdev Date: Wed, 18 Jan 2023 10:30:07 +0100 Subject: [PATCH] fix: type error --- src/state/calculator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/calculator.ts b/src/state/calculator.ts index cec1628..2e538f9 100644 --- a/src/state/calculator.ts +++ b/src/state/calculator.ts @@ -6,8 +6,8 @@ interface BasicCalculatorState { setInput: (input: string) => void; resetInput: () => void; - result: number | null; - resultType: "number" | "error" | null; + result: number | string | null; + resultType: "number" | "error" | "string" | null; setResult: (result: number | null) => void; }