We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45e01cd commit 47fff7bCopy full SHA for 47fff7b
server/api/registry/badge/[type]/[...pkg].get.ts
@@ -374,6 +374,10 @@ const badgeStrategies = {
374
},
375
376
'types': async (pkgData: globalThis.Packument, requestedVersion?: string) => {
377
+ if (hasBuiltInTypes(pkgData)) {
378
+ return { label: 'types', value: 'included', color: COLORS.blue }
379
+ }
380
+
381
const { pkg, typesPackage, files } = await fetchPackageWithTypesAndFiles(
382
pkgData.name,
383
requestedVersion,
0 commit comments