(doc: ApiDoc)
| 15 | |
| 16 | /** Whether the given API doc has been created through inheritance. */ |
| 17 | export function isInheritanceCreatedDoc(doc: ApiDoc): doc is ClassLikeExportDoc { |
| 18 | // For member docs, we look if the containing API doc has been created through |
| 19 | // inheritance. |
| 20 | if (doc instanceof MemberDoc) { |
| 21 | return isInheritanceCreatedDoc(doc.containerDoc); |
| 22 | } |
| 23 | |
| 24 | return ( |
| 25 | doc instanceof ClassLikeExportDoc && |
| 26 | (doc as InheritanceCreatedClassLikeDoc)._inheritanceCreated === true |
| 27 | ); |
| 28 | } |
| 29 | |
| 30 | /** Gets all class like export documents which the given doc inherits from. */ |
| 31 | export function getInheritedDocsOfClass( |
no outgoing calls
no test coverage detected
searching dependent graphs…