Attempt to fix type issues
This commit is contained in:
+1
-1
@@ -1073,7 +1073,7 @@ function getDepsDevProjectData(projectKeyId) {
|
|||||||
const response = yield fetch(url);
|
const response = yield fetch(url);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = yield response.json();
|
const data = yield response.json();
|
||||||
return data;
|
return schemas_1.DepsDevProjectSchema.parse(data);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
throw new Error(`Failed to fetch project data with status code: ${response.status}`);
|
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)
|
const response = await fetch(url)
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json()
|
const data = await response.json()
|
||||||
return data
|
return DepsDevProjectSchema.parse(data)
|
||||||
} else {
|
} else {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Failed to fetch project data with status code: ${response.status}`
|
`Failed to fetch project data with status code: ${response.status}`
|
||||||
|
|||||||
Reference in New Issue
Block a user