FileExtractor.extractProps()method
extractProps(name: string, content: string): (Partial<TreeElementProps> & { name: string }) | Promise<Partial<TreeElementProps> & { name: string }>Build the file element props from the extracted content.
nameis the basename without extension (e.g."array") — display-ready, used by menus, cards, and URL paths.- Override to parse
textinto richer elements (content/children/description) and to settitleif a confident title is available. Overrides may be async (e.g.TypescriptExtractorparses via the native compiler server) —extract()awaits the result either way.