Add nullish to types

This commit is contained in:
Justin Hutchings
2024-03-03 06:08:47 +00:00
parent 6bcbf042ff
commit c286ea91b0
3 changed files with 70 additions and 52 deletions

64
dist/index.js generated vendored
View File

@@ -931,23 +931,28 @@ exports.DepsDevProjectSchema = z
projectKey: z.object({
id: z.string({})
}),
openIssuesCount: z.string(),
starsCount: z.string(),
forksCount: z.string(),
license: z.string(),
description: z.string(),
homepage: z.string(),
openIssuesCount: z.string().nullish(),
starsCount: z.string().nullish(),
forksCount: z.string().nullish(),
license: z.string().nullish(),
description: z.string().nullish(),
homepage: z.string().nullish(),
scorecard: z.object({
date: z.string(),
repository: z.object({
repository: z
.object({
name: z.string(),
commit: z.string()
}),
scorecard: z.object({
})
.nullish(),
scorecard: z
.object({
version: z.string(),
commit: z.string()
}),
checks: z.array(z.object({
})
.nullish(),
checks: z
.array(z.object({
name: z.string(),
documentation: z.object({
shortDescription: z.string(),
@@ -956,8 +961,9 @@ exports.DepsDevProjectSchema = z
score: z.string(),
reason: z.string(),
details: z.array(z.string())
})),
overallScore: z.number()
}))
.nullish(),
overallScore: z.number().nullish()
}),
ossFuzz: z
.object({
@@ -50033,23 +50039,28 @@ exports.DepsDevProjectSchema = z
projectKey: z.object({
id: z.string({})
}),
openIssuesCount: z.string(),
starsCount: z.string(),
forksCount: z.string(),
license: z.string(),
description: z.string(),
homepage: z.string(),
openIssuesCount: z.string().nullish(),
starsCount: z.string().nullish(),
forksCount: z.string().nullish(),
license: z.string().nullish(),
description: z.string().nullish(),
homepage: z.string().nullish(),
scorecard: z.object({
date: z.string(),
repository: z.object({
repository: z
.object({
name: z.string(),
commit: z.string()
}),
scorecard: z.object({
})
.nullish(),
scorecard: z
.object({
version: z.string(),
commit: z.string()
}),
checks: z.array(z.object({
})
.nullish(),
checks: z
.array(z.object({
name: z.string(),
documentation: z.object({
shortDescription: z.string(),
@@ -50058,8 +50069,9 @@ exports.DepsDevProjectSchema = z
score: z.string(),
reason: z.string(),
details: z.array(z.string())
})),
overallScore: z.number()
}))
.nullish(),
overallScore: z.number().nullish()
}),
ossFuzz: z
.object({

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -105,35 +105,41 @@ export const DepsDevProjectSchema = z
projectKey: z.object({
id: z.string({})
}),
openIssuesCount: z.string(),
starsCount: z.string(),
forksCount: z.string(),
license: z.string(),
description: z.string(),
homepage: z.string(),
openIssuesCount: z.string().nullish(),
starsCount: z.string().nullish(),
forksCount: z.string().nullish(),
license: z.string().nullish(),
description: z.string().nullish(),
homepage: z.string().nullish(),
scorecard: z.object({
date: z.string(),
repository: z.object({
name: z.string(),
commit: z.string()
}),
scorecard: z.object({
version: z.string(),
commit: z.string()
}),
checks: z.array(
z.object({
repository: z
.object({
name: z.string(),
documentation: z.object({
shortDescription: z.string(),
url: z.string()
}),
score: z.string(),
reason: z.string(),
details: z.array(z.string())
commit: z.string()
})
),
overallScore: z.number()
.nullish(),
scorecard: z
.object({
version: z.string(),
commit: z.string()
})
.nullish(),
checks: z
.array(
z.object({
name: z.string(),
documentation: z.object({
shortDescription: z.string(),
url: z.string()
}),
score: z.string(),
reason: z.string(),
details: z.array(z.string())
})
)
.nullish(),
overallScore: z.number().nullish()
}),
ossFuzz: z
.object({