Function
assertHasDeprecationDesc
(document: DocNodeWithJsDoc<DocNode>)
Source from the content-addressed store, hash-verified
| 303 | } |
| 304 | |
| 305 | function 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 | |
| 318 | function resolve( |
| 319 | specifier: string, |
Tested by
no test coverage detected