This commit is contained in:
2024-04-12 14:53:27 +05:00
parent b3d01797db
commit 36d3b5d9b1
+4 -3
View File
@@ -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<FunctionState>(() => ({
functions: [
{
test: () => {
return 1;
test: (value1: any, value2: any) => {
return value1 + value2;
},
},
],