(document: DocNodeWithJsDoc<DocNode>)
| 377 | } |
| 378 | |
| 379 | function 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 | |
| 392 | async function assertDocs(specifiers: string[]) { |
| 393 | const docs = await doc(specifiers, { resolve }); |