File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export type Remote<T> =
136136 ...args : {
137137 [ I in keyof TArguments ] : UnproxyOrClone < TArguments [ I ] > ;
138138 }
139- ) : Promisify < RemoteObject < TInstance > > ;
139+ ) : Promisify < Remote < TInstance > > ;
140140 }
141141 : unknown ) &
142142 // Include additional special comlink methods available on the proxy.
Original file line number Diff line number Diff line change @@ -190,7 +190,9 @@ async function closureSoICanUseAwait() {
190190 Comlink . windowEndpoint ( self )
191191 ) ;
192192 const inst1 = await new ProxiedFooClass ( "test" ) ;
193- assert < IsExact < typeof inst1 , Comlink . RemoteObject < Foo > > > ( true ) ;
193+ assert < IsExact < typeof inst1 , Comlink . Remote < Foo > > > ( true ) ;
194+ inst1 [ Comlink . releaseProxy ] ( ) ;
195+ inst1 [ Comlink . createEndpoint ] ( ) ;
194196
195197 // @ts -expect-error
196198 // await new ProxiedFooClass(123);
You can’t perform that action at this time.
0 commit comments