MCPcopy Create free account
hub / github.com/denoland/std / assertHasDeprecationDesc

Function assertHasDeprecationDesc

_tools/check_docs.ts:379–390  ·  view source on GitHub ↗
(document: DocNodeWithJsDoc<DocNode>)

Source from the content-addressed store, hash-verified

377}
378
379function assertHasDeprecationDesc(document: DocNodeWithJsDoc<DocNode>) {
380 const tags = document.jsDoc?.tags;
381 if (!tags) return;
382 for (const tag of tags) {
383 if (tag.kind !== "deprecated") continue;
384 assert(
385 tag.doc !== undefined,
386 "@deprecated tag must have a description",
387 document,
388 );
389 }
390}
391
392async function assertDocs(specifiers: string[]) {
393 const docs = await doc(specifiers, { resolve });

Callers 1

assertDocsFunction · 0.85

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected