diff --git a/test/__snapshots__/cjs-exports.test.ts.snap b/test/__snapshots__/cjs-exports.test.ts.snap index 064dde3..add3fae 100644 --- a/test/__snapshots__/cjs-exports.test.ts.snap +++ b/test/__snapshots__/cjs-exports.test.ts.snap @@ -66,15 +66,15 @@ exports[`Node10 and Node16 Default Exports Types > Re-Export Types 1`] = ` "type": "named", }, { - "code": "export { Options }", - "end": 177, - "exports": " Options", + "code": "export { Options, type ResolvedOptions }", + "end": 271, + "exports": " Options, type ResolvedOptions", "name": "Options", "names": [ "Options", ], "specifier": undefined, - "start": 159, + "start": 231, "type": "named", }, ], @@ -98,15 +98,15 @@ exports[`Node10 and Node16 Default Exports Types > Re-Export Types 1`] = ` "type": "named", }, { - "code": "export { Options }", - "end": 175, - "exports": " Options", + "code": "export { Options, type ResolvedOptions }", + "end": 269, + "exports": " Options, type ResolvedOptions", "name": "Options", "names": [ "Options", ], "specifier": undefined, - "start": 157, + "start": 229, "type": "named", }, ], diff --git a/test/cjs-types-fixture/reexport-types/index.ts b/test/cjs-types-fixture/reexport-types/index.ts index 5cc1fd3..7301062 100644 --- a/test/cjs-types-fixture/reexport-types/index.ts +++ b/test/cjs-types-fixture/reexport-types/index.ts @@ -2,6 +2,13 @@ import type { Options } from "./types"; export type * from "./types"; -export default function plugin(options: Options = {}): Options { - return options; +export interface ResolvedOptions extends Options { + name: string; +} + +export default function plugin(options: Options = {}): ResolvedOptions { + return { + ...options, + name: "plugin", + }; }