API reference / @chanx-js/codegen / ReuseOptions
Interface: ReuseOptions
Defined in: reuse.ts:3
Extended by
Properties
alias?
ts
optional alias?: Record<string, string>;Defined in: reuse.ts:14
Path prefix rewrites applied to import specifiers, e.g. { "src/": "@/" }.
ambient?
ts
optional ambient?: boolean;Defined in: reuse.ts:12
Treat found types as ambient globals and emit no imports, matching a setup where generated files are non-module scripts merged into the global scope.
reuseFrom?
ts
optional reuseFrom?: string[];Defined in: reuse.ts:5
Globs scanned for types that already exist, e.g. src/types/backend/**/*.ts.
reuseMap?
ts
optional reuseMap?: Record<string, string>;Defined in: reuse.ts:7
Explicit overrides: type name to module specifier. Wins over the scan.