typescript-exports.ts view source
(symbol: Symbol, sourceFile: SourceFile, ctx: ExtractContext): DeclarationAnalysis import {analyzeDeclaration} from 'svelte-docinfo/typescript-exports.js'; Analyze a TypeScript symbol and extract rich metadata.
This is a high-level function that combines TSDoc parsing with TypeScript type analysis to produce complete declaration metadata. Suitable for use in documentation generators, IDE integrations, and other tooling.
symbol
the TypeScript symbol to analyze
SymbolsourceFile
the source file containing the symbol
SourceFilectx
the extraction pass's context (checker, diagnostics, externality predicate, alias registry)
returns
DeclarationAnalysis complete declaration metadata including docs, types, and parameters, plus nodocs flag