mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
chore: export
This commit is contained in:
1
src/hooks/useJson.ts
vendored
1
src/hooks/useJson.ts
vendored
@@ -9,6 +9,7 @@ export default function useJson<T>(file: string) {
|
||||
const refreshJson = async () => {
|
||||
const data = await readJSON(file);
|
||||
setData(data);
|
||||
return data;
|
||||
};
|
||||
|
||||
const updateJson = async (data: any) => {
|
||||
|
||||
Reference in New Issue
Block a user