66 type TsConfigJson ,
77 type TsConfigJsonResolved ,
88} from 'get-tsconfig'
9- import type { AddonFunction } from 'rolldown'
109import type { IsolatedDeclarationsOptions } from 'rolldown/experimental'
1110
1211//#region General Options
@@ -186,15 +185,6 @@ export interface TscOptions {
186185 * `false`.
187186 */
188187 emitJs ?: boolean
189-
190- /**
191- * Content to be added at the top of each generated `.d.ts` file.
192- */
193- banner ?: string | Promise < string > | AddonFunction
194- /**
195- * Content to be added at the bottom of each generated `.d.ts` file.
196- */
197- footer ?: string | Promise < string > | AddonFunction
198188}
199189
200190export interface Options extends GeneralOptions , TscOptions {
@@ -222,11 +212,8 @@ export interface Options extends GeneralOptions, TscOptions {
222212}
223213
224214type Overwrite < T , U > = Pick < T , Exclude < keyof T , keyof U > > & U
225- type MarkPartial < T , K extends keyof T > = Omit < Required < T > , K > &
226- Partial < Pick < T , K > >
227-
228215export type OptionsResolved = Overwrite <
229- MarkPartial < Omit < Options , 'compilerOptions' > , 'banner' | 'footer' > ,
216+ Required < Omit < Options , 'compilerOptions' > > ,
230217 {
231218 tsconfig ?: string
232219 oxc : IsolatedDeclarationsOptions | false
@@ -247,8 +234,6 @@ export function resolveOptions({
247234 resolve = false ,
248235 resolver = 'oxc' ,
249236 cjsDefault = false ,
250- banner,
251- footer,
252237 sideEffects = false ,
253238
254239 // tsc
@@ -349,8 +334,6 @@ export function resolveOptions({
349334 resolve,
350335 resolver,
351336 cjsDefault,
352- banner,
353- footer,
354337 sideEffects,
355338
356339 // tsc
0 commit comments