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; }, }, ],