File tree Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Expand file tree Collapse file tree 2 files changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -3546,7 +3546,6 @@ namespace ts {
3546
3546
* e.g. it specifies `kind: "a"` and obj has `kind: "b"`.
3547
3547
*/
3548
3548
/* @internal */ isTypeInvalidDueToUnionDiscriminant ( contextualType : Type , obj : ObjectLiteralExpression | JsxAttributes ) : boolean ;
3549
- /* @internal */ isTypeAssignableTo ( type1 : Type , type2 : Type ) : boolean ;
3550
3549
/**
3551
3550
* For a union, will include a property if it's defined in *any* of the member types.
3552
3551
* So for `{ a } | { b }`, this will include both `a` and `b`.
Original file line number Diff line number Diff line change @@ -67,55 +67,55 @@ verify.codeFixAll({
67
67
68
68
function foo1 (_a: () => number ) { }
69
69
foo1(() => {
70
- return 1;
70
+ return 1
71
71
})
72
72
function foo2 (_a: () => A) { }
73
73
foo2(() => {
74
- return { bar: '1' };
74
+ return { bar: '1' }
75
75
})
76
76
foo2(() => {
77
- return { bar: '1' };
77
+ return { bar: '1' }
78
78
})
79
79
function foo3 (_a: () => A | number) { }
80
80
foo3(() => {
81
- return 1;
81
+ return 1
82
82
})
83
83
foo3(() => {
84
- return { bar: '1' };
84
+ return { bar: '1' }
85
85
})
86
86
87
87
function bar1 (): number {
88
- return 1;
88
+ return 1
89
89
}
90
90
function bar2 (): A {
91
- return { bar: '1' };
91
+ return { bar: '1' }
92
92
}
93
93
function bar3 (): A {
94
- return { bar: '1' };
94
+ return { bar: '1' }
95
95
}
96
96
function bar4 (): A | number {
97
- return 1;
97
+ return 1
98
98
}
99
99
function bar5(): A | number {
100
- return { bar: '1' };
100
+ return { bar: '1' }
101
101
}
102
102
const baz1: () => number = () => {
103
- return 1;
103
+ return 1
104
104
}
105
105
const baz2: () => A = () => {
106
- return { bar: '1' };
106
+ return { bar: '1' }
107
107
}
108
108
const baz3: () => A = () => {
109
- return { bar: '1' };
109
+ return { bar: '1' }
110
110
}
111
111
const baz4: ((() => number) | (() => A)) = () => {
112
- return 1;
112
+ return 1
113
113
}
114
114
const baz5: ((() => number) | (() => A)) = () => {
115
- return { bar: '1' };
115
+ return { bar: '1' }
116
116
}
117
117
118
118
const test: { a: () => A } = { a: () => {
119
- return { bar: '1' };
119
+ return { bar: '1' }
120
120
} }` ,
121
121
} ) ;
You can’t perform that action at this time.
0 commit comments