You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An export type * re-export (type-only namespace re-export, e.g. export type * from "./dto";) is rejected by the bundled tree-sitter-typescript grammar, causing the file to be partially extracted with a "syntax errors" warning and no symbols extracted. The file is valid TypeScript — tsc and esbuild accept export type * (added in TypeScript 5.0).
On a Drizzle/Fastify monorepo this hit 20 files, every one a repository barrel whose second line is export type * from "./dto";. export * on the line above parses fine; the failure is specifically the type modifier on the wildcard.
Reproduction — minimal
// with_typestar.ts — triggers "syntax errors" warning, first error at line 1, no symbols extractedexporttype*from"./dto";
Same shape as #2922 (TSX bare &) and #3510 (C# 14 extension members): grammar-level rejection of valid source, exit 0, silent partial extraction, warning points at the recovery line. Different construct — here the bundled tree-sitter-typescript grammar predates export type * (TypeScript 5.0). export type { … } named re-exports parse, so only the namespace-wildcard form is missing.
Environment
graphify 0.9.61
Language: TypeScript (.ts)
Trigger construct: export type * from "…";
tsc / esbuild: accept the file cleanly (valid since TS 5.0)
Expected behaviour
export type * from "…"; should parse without a syntax error and extract the file's symbols, matching every other TypeScript toolchain. Barrels using it re-export only, so the lost symbols are pass-throughs indexed at their source, but the noisy warning and dropped file nodes obscure genuine extraction failures.
Hi — I’d like to take this. I reproduced the failure on v8 and pushed a byte-preserving compatibility fix with regression coverage for re-export-only barrels, source offsets, and comment/string safety: sultaaaane/graphify@v8...fix-ts-export-type-star\n\nThe published tree-sitter-typescript package does not yet include the upstream grammar support, so this keeps extraction correct without changing user source files. I’ll open a PR shortly.
Activity
sultaaaane commentedon Sep 16, 2026
Hi — I’d like to take this. I reproduced the failure on v8 and pushed a byte-preserving compatibility fix with regression coverage for re-export-only barrels, source offsets, and comment/string safety: sultaaaane/graphify@v8...fix-ts-export-type-star\n\nThe published tree-sitter-typescript package does not yet include the upstream grammar support, so this keeps extraction correct without changing user source files. I’ll open a PR shortly.