typescript-extract-class.ts view source
(node: Node, checker: TypeChecker, declaration: DeclarationJsonBuild, diagnostics: ({ symbolName: string; file: string; message: string; severity: "error" | "warning"; kind: "type_extraction_failed"; line?: number | undefined; column?: number | undefined; } | ... 12 more ... | { ...; })[]): void import {extractClassInfo} from 'svelte-docinfo/typescript-extract-class.js'; Extract class information with rich member metadata.
node
the declaration AST node
type
Nodechecker
TypeScript type checker
type
TypeCheckerdeclaration
the declaration to populate
type DeclarationJsonBuild
diagnostics
diagnostics collector for non-fatal issues
type
({ symbolName: string; file: string; message: string; severity: "error" | "warning"; kind: "type_extraction_failed"; line?: number | undefined; column?: number | undefined; } | { functionName: string; ... 5 more ...; column?: number | undefined; } | ... 11 more ... | { ...; })[]returns
void mutates
declaration— adds extends, implements, genericParams, members