chore: adjust type

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

View File

@@ -89,7 +89,7 @@ const SysproxyViewer = ({ handler }: Props) => {
return;
}
const patch: Partial<CmdType.VergeConfig> = {};
const patch: Partial<IVergeConfig> = {};
if (value.guard !== enable_proxy_guard) {
patch.enable_proxy_guard = value.guard;

View File

@@ -1,7 +1,7 @@
import { useTranslation } from "react-i18next";
import { Button, ButtonGroup } from "@mui/material";
type ThemeValue = CmdType.VergeConfig["theme_mode"];
type ThemeValue = IVergeConfig["theme_mode"];
interface Props {
value?: ThemeValue;