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

@@ -42,7 +42,7 @@ const SettingVerge = ({ onError }: Props) => {
const [configOpen, setConfigOpen] = useState(false);
const onSwitchFormat = (_e: any, value: boolean) => value;
const onChangeData = (patch: Partial<CmdType.VergeConfig>) => {
const onChangeData = (patch: Partial<IVergeConfig>) => {
mutateVerge({ ...vergeConfig, ...patch }, false);
};