Skip to content

Commit 49d21bf

Browse files
committed
fix semi
1 parent 98377f3 commit 49d21bf

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

src/compiler/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3546,7 +3546,6 @@ namespace ts {
35463546
* e.g. it specifies `kind: "a"` and obj has `kind: "b"`.
35473547
*/
35483548
/* @internal */ isTypeInvalidDueToUnionDiscriminant(contextualType: Type, obj: ObjectLiteralExpression | JsxAttributes): boolean;
3549-
/* @internal */ isTypeAssignableTo(type1: Type, type2: Type): boolean;
35503549
/**
35513550
* For a union, will include a property if it's defined in *any* of the member types.
35523551
* So for `{ a } | { b }`, this will include both `a` and `b`.

tests/cases/fourslash/codeFixSurmiseReturnValue_all1.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,55 +67,55 @@ verify.codeFixAll({
6767
6868
function foo1 (_a: () => number ) { }
6969
foo1(() => {
70-
return 1;
70+
return 1
7171
})
7272
function foo2 (_a: () => A) { }
7373
foo2(() => {
74-
return { bar: '1' };
74+
return { bar: '1' }
7575
})
7676
foo2(() => {
77-
return { bar: '1' };
77+
return { bar: '1' }
7878
})
7979
function foo3 (_a: () => A | number) { }
8080
foo3(() => {
81-
return 1;
81+
return 1
8282
})
8383
foo3(() => {
84-
return { bar: '1' };
84+
return { bar: '1' }
8585
})
8686
8787
function bar1 (): number {
88-
return 1;
88+
return 1
8989
}
9090
function bar2 (): A {
91-
return { bar: '1' };
91+
return { bar: '1' }
9292
}
9393
function bar3 (): A {
94-
return { bar: '1' };
94+
return { bar: '1' }
9595
}
9696
function bar4 (): A | number {
97-
return 1;
97+
return 1
9898
}
9999
function bar5(): A | number {
100-
return { bar: '1' };
100+
return { bar: '1' }
101101
}
102102
const baz1: () => number = () => {
103-
return 1;
103+
return 1
104104
}
105105
const baz2: () => A = () => {
106-
return { bar: '1' };
106+
return { bar: '1' }
107107
}
108108
const baz3: () => A = () => {
109-
return { bar: '1' };
109+
return { bar: '1' }
110110
}
111111
const baz4: ((() => number) | (() => A)) = () => {
112-
return 1;
112+
return 1
113113
}
114114
const baz5: ((() => number) | (() => A)) = () => {
115-
return { bar: '1' };
115+
return { bar: '1' }
116116
}
117117
118118
const test: { a: () => A } = { a: () => {
119-
return { bar: '1' };
119+
return { bar: '1' }
120120
} }`,
121121
});

0 commit comments

Comments
 (0)