Skip to content

getAnalyzedEntry

function getAnalyzedEntry(entryOrName):
| AnalyzedComponentEntry
| null;

Defined in: packages/core/src/data/metadata.ts:56

Narrow a ComponentMetadataEntry | null (or a component name) down to AnalyzedComponentEntry | null. Centralizes the kind === 'analyzed' guard that was duplicated across formatters/search/resolver/context.

Parameter Type
entryOrName | string | EnhancedComponentMetadataEntry | null | undefined

| AnalyzedComponentEntry | null