typescript-extract-function.ts view source
(node: Node, symbol: Symbol, declaration: DeclarationJsonBuild, tsdoc: TsdocParsedComment | undefined, ctx: ExtractContext): void import {extractFunctionInfo} from 'svelte-docinfo/typescript-extract-function.js'; Extract function/method information including parameters with descriptions and default values.
node
the declaration AST node
Nodesymbol
the TypeScript symbol
Symboldeclaration
the declaration to populate
tsdoc
parsed TSDoc comment (if available)
TsdocParsedComment | undefinedctx
the extraction pass's context
returns
void mutates
declaration— adds typeSignature, returnType, returnDescription, parameters, genericParams, overloads (and `partial: true` on signature failure)