Skip to content

[Export Audit] Unused exported interface ProbeResult in src/dind-probe.ts #3568

@github-actions

Description

@github-actions

API Surface Issue

Category

Unused export

Summary

  • File: src/dind-probe.ts
  • Symbol: ProbeResult (interface, line 37)
  • Issue: The ProbeResult interface is exported but never imported by any other module. It is used only as an internal return-type annotation for probeSplitFilesystem within the same file.

Evidence

Declaration in src/dind-probe.ts:

export interface ProbeResult {
  // ...
}
export async function probeSplitFilesystem(probeDir: string): Promise<ProbeResult> {

Grep confirms zero imports outside the declaring file:

$ grep -rw "ProbeResult" src/ --include="*.ts"
src/dind-probe.ts:export interface ProbeResult {
src/dind-probe.ts:export async function probeSplitFilesystem(probeDir: string): Promise<ProbeResult> {

No file imports ProbeResult — not from src/commands/main-action.ts (the only caller of probeSplitFilesystem), not from any test file.

Recommended Fix

Remove the export keyword from the interface declaration:

// Before
export interface ProbeResult { ... }

// After
interface ProbeResult { ... }

No other changes needed — probeSplitFilesystem return type continues to work with the unexported interface.

Impact

  • Dead code risk: Low — interface carries no runtime cost, but pollutes the public API surface
  • Maintenance burden: Low — callers may mistakenly type against this interface instead of inferring the return type

Detected by Export Audit workflow. Triggered by push to main on 2026-05-21

Generated by API Surface & Export Audit · ● 11.2M ·

  • expires on Jun 20, 2026, 11:55 PM UTC

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions