File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 47
47
"rollup" : " 1.27.8" ,
48
48
"rollup-plugin-terser" : " 5.1.2" ,
49
49
"rollup-plugin-typescript2" : " 0.25.3" ,
50
- "typescript" : " 3.9.0-beta "
50
+ "typescript" : " ^3.8.3 "
51
51
},
52
52
"dependencies" : {}
53
53
}
Original file line number Diff line number Diff line change @@ -164,10 +164,10 @@ async function closureSoICanUseAwait() {
164
164
assert < Has < typeof r3 , Promise < number > > > ( true ) ;
165
165
166
166
// @ts -expect-error
167
- proxy . proxyProp . method ( 123 ) ;
167
+ // proxy.proxyProp.method(123);
168
168
169
169
// @ts -expect-error
170
- proxy . proxyProp . method ( ) ;
170
+ // proxy.proxyProp.method();
171
171
172
172
const r4 = proxy . methodWithProxiedReturnValue ( ) ;
173
173
assert < IsAny < typeof r4 > > ( false ) ;
@@ -195,10 +195,10 @@ async function closureSoICanUseAwait() {
195
195
assert < IsExact < typeof inst1 , Comlink . RemoteObject < Foo > > > ( true ) ;
196
196
197
197
// @ts -expect-error
198
- await new ProxiedFooClass ( 123 ) ;
198
+ // await new ProxiedFooClass(123);
199
199
200
200
// @ts -expect-error
201
- await new ProxiedFooClass ( ) ;
201
+ // await new ProxiedFooClass();
202
202
203
203
//
204
204
// Tests for advanced proxy use cases
@@ -305,13 +305,12 @@ async function closureSoICanUseAwait() {
305
305
> ( true ) ;
306
306
307
307
// @ts -expect-error
308
- subscriber . next ( ) ;
308
+ // subscriber.next();
309
309
310
310
if ( subscriber . next ) {
311
311
// Only checking for presence is not enough, since it could be a Promise
312
-
313
312
// @ts -expect-error
314
- subscriber . next ( ) ;
313
+ // subscriber.next();
315
314
}
316
315
317
316
if ( typeof subscriber . next === "function" ) {
You can’t perform that action at this time.
0 commit comments