Attempt to fix type issues

This commit is contained in:
Justin Hutchings
2024-03-03 05:43:20 +00:00
parent bf2683a10c
commit 764e39e792
3 changed files with 3 additions and 3 deletions

2
dist/index.js generated vendored
View File

@@ -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}`);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -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}`