Something went wrong. Try again.
tsref is a Bun CLI for finding references to exported TypeScript APIs.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566export type ReferenceKind = | "import" | "re-export" | "call" | "construct" | "read" | "write" | "type" | "jsx" | "unknown";
export interface SourceLocation { filePath: string; line: number; column: number;}
export interface ReferenceRecord { kind: ReferenceKind; location: SourceLocation; isInternal: boolean; text?: string;}
export interface ExportedMemberSummary { name: string; kind: "method" | "property" | "accessor" | "type-member" | "unknown"; references: ReferenceRecord[]; externalReferenceCount?: number; internalReferenceCount?: number;}
export interface ExportedSymbolSummary { exportName: string; localName?: string; kind: | "function" | "class" | "method" | "property" | "const" | "let" | "var" | "type" | "interface" | "enum" | "namespace" | "default" | "re-export" | "unknown"; isDefault: boolean; isTypeOnly: boolean; declarationLocation?: SourceLocation; references: ReferenceRecord[]; members: ExportedMemberSummary[]; externalReferenceCount?: number; internalReferenceCount?: number;}
export interface AnalysisReport { targetFile: string; projectFile: string; exportedSymbols: ExportedSymbolSummary[]; diagnostics: string[];}