upd
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { create } from "zustand";
|
||||
|
||||
interface IFunction {
|
||||
[name: string]: (args: unknown) => unknown;
|
||||
}
|
||||
|
||||
interface FunctionState {
|
||||
functions: IFunction[];
|
||||
}
|
||||
|
||||
const useFunctionStore = create<FunctionState>(() => ({
|
||||
functions: [
|
||||
{
|
||||
test: () => {
|
||||
return 1;
|
||||
},
|
||||
},
|
||||
],
|
||||
}));
|
||||
|
||||
export default useFunctionStore;
|
||||
Reference in New Issue
Block a user