Skip to content

Commit e981934

Browse files
committed
Use stable TS
1 parent cc2f421 commit e981934

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"rollup": "1.27.8",
4848
"rollup-plugin-terser": "5.1.2",
4949
"rollup-plugin-typescript2": "0.25.3",
50-
"typescript": "3.9.0-beta"
50+
"typescript": "^3.8.3"
5151
},
5252
"dependencies": {}
5353
}

tests/type-checks.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ async function closureSoICanUseAwait() {
164164
assert<Has<typeof r3, Promise<number>>>(true);
165165

166166
// @ts-expect-error
167-
proxy.proxyProp.method(123);
167+
// proxy.proxyProp.method(123);
168168

169169
// @ts-expect-error
170-
proxy.proxyProp.method();
170+
// proxy.proxyProp.method();
171171

172172
const r4 = proxy.methodWithProxiedReturnValue();
173173
assert<IsAny<typeof r4>>(false);
@@ -195,10 +195,10 @@ async function closureSoICanUseAwait() {
195195
assert<IsExact<typeof inst1, Comlink.RemoteObject<Foo>>>(true);
196196

197197
// @ts-expect-error
198-
await new ProxiedFooClass(123);
198+
// await new ProxiedFooClass(123);
199199

200200
// @ts-expect-error
201-
await new ProxiedFooClass();
201+
// await new ProxiedFooClass();
202202

203203
//
204204
// Tests for advanced proxy use cases
@@ -305,13 +305,12 @@ async function closureSoICanUseAwait() {
305305
>(true);
306306

307307
// @ts-expect-error
308-
subscriber.next();
308+
// subscriber.next();
309309

310310
if (subscriber.next) {
311311
// Only checking for presence is not enough, since it could be a Promise
312-
313312
// @ts-expect-error
314-
subscriber.next();
313+
// subscriber.next();
315314
}
316315

317316
if (typeof subscriber.next === "function") {

0 commit comments

Comments
 (0)