@@ -42,13 +42,12 @@ exports[`dts input 1`] = `
4242"// index.d.ts
4343//#region tests/fixtures/dts-input.d.ts
4444declare class Foo { }
45-
4645//#endregion
4746export { Foo } ;"
4847`;
4948
5049exports[`input alias 1`] = `
51- "// input2-DX9os_AR .d.ts
50+ "// input2-BXeuhxGi .d.ts
5251//#region shared.d.ts
5352interface Shared {
5453 shared : string ;
@@ -60,7 +59,6 @@ interface Input2 extends Shared {
6059 input2 : string ;
6160}
6261declare const input2: Input2;
63-
6462//#endregion
6563export { Input2 , input2 as input2$1 } ;
6664// input2-LCiYuoaZ.js
@@ -77,14 +75,13 @@ const input2 = {
7775//#endregion
7876export { input2 } ;
7977// output1.d.ts
80- import { Input2 } from "./input2-DX9os_AR .js";
78+ import { Input2 } from "./input2-BXeuhxGi .js";
8179
8280//#region input1.d.ts
8381interface Input1 extends Input2 {
8482 input1 : string ;
8583}
8684declare const input1: Input1;
87-
8885//#endregion
8986export { Input1 , input1 } ;
9087// output1.js
@@ -99,7 +96,7 @@ const input1 = {
9996//#endregion
10097export { input1 } ;
10198// output2/index.d.ts
102- import { Input2 , input2$1 as input2 } from "../input2-DX9os_AR .js";
99+ import { Input2 , input2$1 as input2 } from "../input2-BXeuhxGi .js";
103100export { Input2 , input2 } ;
104101// output2/index.js
105102import { input2 } from "../input2-LCiYuoaZ.js";
@@ -109,7 +106,14 @@ export { input2 };"
109106
110107exports[`jsdoc 1`] = `
111108"// jsdoc.d.ts
109+ import { Plugin } from "rolldown";
110+
112111//#region tests/fixtures/jsdoc.d.ts
112+
113+ /**
114+ * with imports
115+ */
116+ interface RollupMdiFontminOptions extends Plugin { }
113117/**
114118 * named export
115119 */
@@ -130,8 +134,9 @@ type Foo = string;
130134/**
131135 * default export
132136 */
133- declare const _default: number; //#endregion
134- export { Foo , Options , _default as default , fn } ;
137+ declare const _default: number;
138+ //#endregion
139+ export { Foo , Options , RollupMdiFontminOptions , _default as default , fn } ;
135140// jsdoc.js
136141//#region tests/fixtures/jsdoc.ts
137142/**
@@ -157,7 +162,6 @@ declare const a: 1, b: 2;
157162//#region tests/fixtures/multi-decls/index.d.ts
158163declare const a$1 = 3,
159164 b$1 = 3;
160-
161165//#endregion
162166export { a , b , a$1 as c , b$1 as d } ;"
163167`;
@@ -166,7 +170,6 @@ exports[`paths 1`] = `
166170"// index.d.ts
167171//#region tests/fixtures/paths/mod.d.ts
168172declare const foo = 42;
169-
170173//#endregion
171174export { foo } ;"
172175`;
@@ -175,7 +178,6 @@ exports[`resolve dts 1`] = `
175178"// index.d.ts
176179//#region tests/fixtures/resolve-dts/mod.d.ts
177180type Foo = string;
178-
179181//#endregion
180182export { Foo } ;
181183// index.js
@@ -199,7 +201,6 @@ import { JSX } from "solid-js";
199201
200202//#region tests/fixtures/tsx.d.ts
201203declare function createComponent(): JSX.HTMLAttributes<HTMLElement >;
202-
203204//#endregion
204205export { createComponent } ;
205206// tsx.js
@@ -221,7 +222,6 @@ declare const str = "foo";
221222declare const num = 42;
222223declare const bool = true;
223224declare function fn(arg: typeof str): "foo" | 1;
224-
225225//#endregion
226226export { bool , fn , num , str } ;
227227// entry2.d.ts
@@ -247,7 +247,6 @@ declare global {
247247 }
248248}
249249declare const _default: vue1.DefineComponent<__VLS_Props, { } , { } , { } , { } , vue1.ComponentOptionsMixin, vue1.ComponentOptionsMixin, { } , string, vue1.PublicProps, Readonly<__VLS_Props > & Readonly<{ } >, { } , { } , { } , { } , string, vue1.ComponentProvideOptions, false, { } , any>;
250-
251250//#endregion
252251export { _default as App } ;"
253252`;
0 commit comments