Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test snapshots
  • Loading branch information
kirkwaiblinger committed Jul 7, 2026
commit 1b4269d2c1b9f69705daa73e99dce52668f5d3d4
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ export type { B as C } from './a';
export type { foo } from 'bar';
export type { foo };

export { /* e1 */ type /* e2 */ T /* e3 */ } from 'foo';
import { /* i1 */ type /* i2 */ T /* i3 */ } from 'foo';

export { /* e1 */ type /* e2 */ T /* e3 */ as /* e4 */ U /* e5 */ } from 'foo';
import { /* i1 */ type /* i2 */ T /* i3 */ as /* i4 */ U /* i5 */ } from 'foo';

// this should be treated as a normal import statement
import type from './foo';

Expand All @@ -122,19 +116,23 @@ import type { foo as bar } from 'baz';
import type * as foo from './bar';
import type foo from 'bar';

// https://github.com/prettier/prettier/issues/19564
export { type /* comment */ T } from 'foo';
import { type /* comment */ T } from 'foo';

export { /* e1 */ type /* e2 */ T /* e3 */ } from 'foo';
import { /* i1 */ type /* i2 */ T /* i3 */ } from 'foo';

export { /* e1 */ type /* e2 */ T /* e3 */ as /* e4 */ U /* e5 */ } from 'foo';
import { /* i1 */ type /* i2 */ T /* i3 */ as /* i4 */ U /* i5 */ } from 'foo';

=====================================output=====================================
export type { SomeThing };
export type { A as B };
export type { B as C } from "./a";
export type { foo } from "bar";
export type { foo };

export { /* e1 */ type /* e2 */ T /* e3 */ } from "foo";
import { /* i1 */ type /* i2 */ T /* i3 */ } from "foo";

export { /* e1 */ type /* e2 */ T /* e3 */ as /* e4 */ U /* e5 */ } from "foo";
import { /* i1 */ type /* i2 */ T /* i3 */ as /* i4 */ U /* i5 */ } from "foo";

// this should be treated as a normal import statement
import type from "./foo";

Expand All @@ -144,5 +142,15 @@ import type { foo as bar } from "baz";
import type * as foo from "./bar";
import type foo from "bar";

// https://github.com/prettier/prettier/issues/19564
export { type /* comment */ T } from "foo";
import { type /* comment */ T } from "foo";

export { /* e1 */ type /* e2 */ T /* e3 */ } from "foo";
import { /* i1 */ type /* i2 */ T /* i3 */ } from "foo";

export { /* e1 */ type /* e2 */ T /* e3 */ as /* e4 */ U /* e5 */ } from "foo";
import { /* i1 */ type /* i2 */ T /* i3 */ as /* i4 */ U /* i5 */ } from "foo";

================================================================================
`;
Loading