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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entryOrName |
| string | EnhancedComponentMetadataEntry | null | undefined |
Returns
Section titled “Returns”| AnalyzedComponentEntry
| null