Fix type errors.

This commit is contained in:
Zhuoran
2024-08-20 08:44:09 +08:00
parent a3b6654cbb
commit fd26e5635d
7 changed files with 28 additions and 7 deletions

View File

@@ -396,7 +396,7 @@ export const deleteModel = async (token: string, tagName: string, urlIdx: string
return res;
};
export const pullModel = async (token: string, tagName: string, urlIdx: string | null = null) => {
export const pullModel = async (token: string, tagName: string, urlIdx: number | null = null) => {
let error = null;
const controller = new AbortController();