File tree 2 files changed +28
-2
lines changed 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -6086,8 +6086,6 @@ export const enum TypeFlags {
6086
6086
PossiblyFalsy = DefinitelyFalsy | String | Number | BigInt | Boolean ,
6087
6087
/** @internal */
6088
6088
Intrinsic = Any | Unknown | String | Number | BigInt | Boolean | BooleanLiteral | ESSymbol | Void | Undefined | Null | Never | NonPrimitive ,
6089
- /** @internal */
6090
- Primitive = String | Number | BigInt | Boolean | Enum | EnumLiteral | ESSymbol | Void | Undefined | Null | Literal | UniqueESSymbol | TemplateLiteral ,
6091
6089
StringLike = String | StringLiteral | TemplateLiteral | StringMapping ,
6092
6090
NumberLike = Number | NumberLiteral | Enum ,
6093
6091
BigIntLike = BigInt | BigIntLiteral ,
@@ -6096,6 +6094,8 @@ export const enum TypeFlags {
6096
6094
ESSymbolLike = ESSymbol | UniqueESSymbol ,
6097
6095
VoidLike = Void | Undefined ,
6098
6096
/** @internal */
6097
+ Primitive = StringLike | NumberLike | BigIntLike | BooleanLike | EnumLike | ESSymbolLike | VoidLike | Null ,
6098
+ /** @internal */
6099
6099
DefinitelyNonNullable = StringLike | NumberLike | BigIntLike | BooleanLike | EnumLike | ESSymbolLike | Object | NonPrimitive ,
6100
6100
/** @internal */
6101
6101
DisjointDomains = NonPrimitive | StringLike | NumberLike | BigIntLike | BooleanLike | ESSymbolLike | VoidLike | Null ,
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+
3
+ ////type UnionType = {
4
+ //// key1: string;
5
+ //// } | {
6
+ //// key2: number;
7
+ //// } | Uppercase<string>;
8
+ ////
9
+ ////const obj1: UnionType = {
10
+ //// /*1*/
11
+ //// };
12
+ ////
13
+ ////const obj2: UnionType = {
14
+ //// key1: "abc",
15
+ //// /*2*/
16
+ //// };
17
+
18
+ verify . completions ( {
19
+ marker : '1' ,
20
+ exact : [ { name : 'key1' } , { name : 'key2' } ]
21
+ } )
22
+
23
+ verify . completions ( {
24
+ marker : '2' ,
25
+ exact : [ { name : 'key2' } ]
26
+ } )
You can’t perform that action at this time.
0 commit comments