upd
This commit is contained in:
@@ -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;
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user