From b3d01797db04bda117353dbb15ac914a44a51e29 Mon Sep 17 00:00:00 2001 From: inmake Date: Fri, 12 Apr 2024 14:51:34 +0500 Subject: [PATCH] upd --- src/stores/useFunctionStore.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/stores/useFunctionStore.ts diff --git a/src/stores/useFunctionStore.ts b/src/stores/useFunctionStore.ts new file mode 100644 index 0000000..63c161d --- /dev/null +++ b/src/stores/useFunctionStore.ts @@ -0,0 +1,21 @@ +import { create } from "zustand"; + +interface IFunction { + [name: string]: (args: unknown) => unknown; +} + +interface FunctionState { + functions: IFunction[]; +} + +const useFunctionStore = create(() => ({ + functions: [ + { + test: () => { + return 1; + }, + }, + ], +})); + +export default useFunctionStore;