Skip to content

Commit 5010346

Browse files
committed
Remove 'export' modifier from test
1 parent f9aa40e commit 5010346

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//// [primitiveUnionDetection.ts]
22
// Repro from #46624
33

4-
export type Kind = "one" | "two" | "three";
4+
type Kind = "one" | "two" | "three";
55

66
declare function getInterfaceFromString<T extends Kind>(options?: { type?: T } & { type?: Kind }): T;
77

@@ -11,9 +11,14 @@ const result = getInterfaceFromString({ type: 'two' });
1111
//// [primitiveUnionDetection.js]
1212
"use strict";
1313
// Repro from #46624
14-
exports.__esModule = true;
1514
var result = getInterfaceFromString({ type: 'two' });
1615

1716

1817
//// [primitiveUnionDetection.d.ts]
19-
export declare type Kind = "one" | "two" | "three";
18+
declare type Kind = "one" | "two" | "three";
19+
declare function getInterfaceFromString<T extends Kind>(options?: {
20+
type?: T;
21+
} & {
22+
type?: Kind;
23+
}): T;
24+
declare const result: "two";

tests/baselines/reference/primitiveUnionDetection.symbols

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
=== tests/cases/compiler/primitiveUnionDetection.ts ===
22
// Repro from #46624
33

4-
export type Kind = "one" | "two" | "three";
4+
type Kind = "one" | "two" | "three";
55
>Kind : Symbol(Kind, Decl(primitiveUnionDetection.ts, 0, 0))
66

77
declare function getInterfaceFromString<T extends Kind>(options?: { type?: T } & { type?: Kind }): T;
8-
>getInterfaceFromString : Symbol(getInterfaceFromString, Decl(primitiveUnionDetection.ts, 2, 43))
8+
>getInterfaceFromString : Symbol(getInterfaceFromString, Decl(primitiveUnionDetection.ts, 2, 36))
99
>T : Symbol(T, Decl(primitiveUnionDetection.ts, 4, 40))
1010
>Kind : Symbol(Kind, Decl(primitiveUnionDetection.ts, 0, 0))
1111
>options : Symbol(options, Decl(primitiveUnionDetection.ts, 4, 56))
@@ -17,6 +17,6 @@ declare function getInterfaceFromString<T extends Kind>(options?: { type?: T } &
1717

1818
const result = getInterfaceFromString({ type: 'two' });
1919
>result : Symbol(result, Decl(primitiveUnionDetection.ts, 6, 5))
20-
>getInterfaceFromString : Symbol(getInterfaceFromString, Decl(primitiveUnionDetection.ts, 2, 43))
20+
>getInterfaceFromString : Symbol(getInterfaceFromString, Decl(primitiveUnionDetection.ts, 2, 36))
2121
>type : Symbol(type, Decl(primitiveUnionDetection.ts, 6, 39))
2222

tests/baselines/reference/primitiveUnionDetection.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== tests/cases/compiler/primitiveUnionDetection.ts ===
22
// Repro from #46624
33

4-
export type Kind = "one" | "two" | "three";
4+
type Kind = "one" | "two" | "three";
55
>Kind : Kind
66

77
declare function getInterfaceFromString<T extends Kind>(options?: { type?: T } & { type?: Kind }): T;

tests/cases/compiler/primitiveUnionDetection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
// Repro from #46624
55

6-
export type Kind = "one" | "two" | "three";
6+
type Kind = "one" | "two" | "three";
77

88
declare function getInterfaceFromString<T extends Kind>(options?: { type?: T } & { type?: Kind }): T;
99

0 commit comments

Comments
 (0)