Attempt to fix type issues
This commit is contained in:
+1
-1
@@ -1073,7 +1073,7 @@ function getDepsDevProjectData(projectKeyId) {
|
||||
const response = yield fetch(url);
|
||||
if (response.ok) {
|
||||
const data = yield response.json();
|
||||
return data;
|
||||
return schemas_1.DepsDevProjectSchema.parse(data);
|
||||
}
|
||||
else {
|
||||
throw new Error(`Failed to fetch project data with status code: ${response.status}`);
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -75,7 +75,7 @@ async function getDepsDevProjectData(
|
||||
const response = await fetch(url)
|
||||
if (response.ok) {
|
||||
const data = await response.json()
|
||||
return data
|
||||
return DepsDevProjectSchema.parse(data)
|
||||
} else {
|
||||
throw new Error(
|
||||
`Failed to fetch project data with status code: ${response.status}`
|
||||
|
||||
Reference in New Issue
Block a user