File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,15 @@ import type {
1818} from "./config.generated" ;
1919
2020// --- Type exports ---
21- // Only exports top level types for now
2221
23- // The same naming convention as `oxlint` for consistency
24- export type OxfmtConfig = Oxfmtrc ;
25- export type { FormatConfig } from "./config.generated" ;
22+ // Re-export all generated config types.
23+ // So that downstream libraries can reference them in declaration emit without TS4058/TS4082 errors.
24+ export type * from "./config.generated" ;
25+
26+ // The same naming convention as `oxlint` for consistency.
27+ // Using `interface extends` so that TypeScript displays `OxfmtConfig` in errors
28+ // and hovers instead of resolving to the generated `Oxfmtrc` name.
29+ export interface OxfmtConfig extends Oxfmtrc { }
2630
2731// Backward-compatible type aliases using `Options` suffix.
2832
You can’t perform that action at this time.
0 commit comments