MCPcopy Index your code
hub / github.com/freshframework/fresh / assertHasDeprecationDesc

Function assertHasDeprecationDesc

tools/check_docs_lib.ts:305–316  ·  view source on GitHub ↗
(document: DocNodeWithJsDoc<DocNode>)

Source from the content-addressed store, hash-verified

303}
304
305function assertHasDeprecationDesc(document: DocNodeWithJsDoc<DocNode>) {
306 const tags = document.jsDoc?.tags;
307 if (!tags) return;
308 for (const tag of tags) {
309 if (tag.kind !== "deprecated") continue;
310 assert(
311 tag.doc !== undefined,
312 "@deprecated tag must have a description",
313 document,
314 );
315 }
316}
317
318function resolve(
319 specifier: string,

Callers 1

assertDocsFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected