Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
dubisdev committed Jan 18, 2023
1 parent 8c36d99 commit b8ab7fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b8ab7fe

Please sign in to comment.