From 36d3b5d9b1094ed9f6ecc0f7a809779f7a402228 Mon Sep 17 00:00:00 2001 From: inmake Date: Fri, 12 Apr 2024 14:53:27 +0500 Subject: [PATCH] upd --- src/stores/useFunctionStore.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stores/useFunctionStore.ts b/src/stores/useFunctionStore.ts index 63c161d..212c803 100644 --- a/src/stores/useFunctionStore.ts +++ b/src/stores/useFunctionStore.ts @@ -1,7 +1,8 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ import { create } from "zustand"; interface IFunction { - [name: string]: (args: unknown) => unknown; + [name: string]: (...args: any) => any; } interface FunctionState { @@ -11,8 +12,8 @@ interface FunctionState { const useFunctionStore = create(() => ({ functions: [ { - test: () => { - return 1; + test: (value1: any, value2: any) => { + return value1 + value2; }, }, ],