chore: adjust type

This commit is contained in:
GyDi
2022-11-19 17:22:29 +08:00
parent e19fe5ce1c
commit 6eafb15cf9
26 changed files with 274 additions and 283 deletions

View File

@@ -4,7 +4,7 @@ import { getVergeConfig, patchVergeConfig } from "@/services/cmds";
export const useVergeConfig = () => {
const { data, mutate } = useSWR("getVergeConfig", getVergeConfig);
const patchVerge = async (value: Partial<CmdType.VergeConfig>) => {
const patchVerge = async (value: Partial<IVergeConfig>) => {
await patchVergeConfig(value);
mutate();
};