Skip to content

Commit 5504852

Browse files
committed
fix type rename error
1 parent 69bc3d9 commit 5504852

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/quickjs-emscripten-core/src/QuickJSIterator.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ContextResult, QuickJSContext } from "./context"
1+
import type { QuickJSContextResult, QuickJSContext } from "./context"
22
import { DisposableResult, Lifetime, UsingDisposable } from "./lifetime"
33
import type { QuickJSRuntime } from "./runtime"
44
import type { QuickJSHandle } from "./types"
@@ -28,7 +28,7 @@ import type { QuickJSHandle } from "./types"
2828
*/
2929
export class QuickJSIterator
3030
extends UsingDisposable
31-
implements Disposable, IterableIterator<ContextResult<QuickJSHandle>>
31+
implements Disposable, IterableIterator<QuickJSContextResult<QuickJSHandle>>
3232
{
3333
public owner: QuickJSRuntime
3434
private _next: QuickJSHandle | undefined
@@ -46,7 +46,7 @@ export class QuickJSIterator
4646
return this
4747
}
4848

49-
next(value?: QuickJSHandle): IteratorResult<ContextResult<QuickJSHandle>, any> {
49+
next(value?: QuickJSHandle): IteratorResult<QuickJSContextResult<QuickJSHandle>, any> {
5050
if (!this.alive || this._isDone) {
5151
return {
5252
done: true,
@@ -58,7 +58,7 @@ export class QuickJSIterator
5858
return this.callIteratorMethod(nextMethod, value)
5959
}
6060

61-
return(value?: QuickJSHandle): IteratorResult<ContextResult<QuickJSHandle>, any> {
61+
return(value?: QuickJSHandle): IteratorResult<QuickJSContextResult<QuickJSHandle>, any> {
6262
if (!this.alive) {
6363
return {
6464
done: true,
@@ -84,7 +84,7 @@ export class QuickJSIterator
8484
return result
8585
}
8686

87-
throw(e?: any): IteratorResult<ContextResult<QuickJSHandle>, any> {
87+
throw(e?: any): IteratorResult<QuickJSContextResult<QuickJSHandle>, any> {
8888
if (!this.alive) {
8989
return {
9090
done: true,
@@ -116,7 +116,7 @@ export class QuickJSIterator
116116
private callIteratorMethod(
117117
method: QuickJSHandle,
118118
input?: QuickJSHandle,
119-
): IteratorResult<ContextResult<QuickJSHandle>, any> {
119+
): IteratorResult<QuickJSContextResult<QuickJSHandle>, any> {
120120
const callResult = input
121121
? this.context.callFunction(method, this.handle, input)
122122
: this.context.callFunction(method, this.handle)

0 commit comments

Comments
 (0)