Skip to content

Commit

Permalink
fix additional type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IMax153 committed Dec 24, 2024
1 parent eab6c6c commit 94ee1b7
Show file tree
Hide file tree
Showing 2 changed files with 290 additions and 97 deletions.
6 changes: 3 additions & 3 deletions packages/effect/src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type GenKindTypeId = typeof GenKindTypeId
export interface GenKind<F extends TypeLambda, R, O, E, A> extends Variance<F, R, O, E> {
readonly value: Kind<F, R, O, E, A>

[Symbol.iterator](): Generator<GenKind<F, R, O, E, A>, A>
[Symbol.iterator](): IterableIterator<GenKind<F, R, O, E, A>, A>
}

/**
Expand Down Expand Up @@ -97,7 +97,7 @@ export class GenKindImpl<F extends TypeLambda, R, O, E, A> implements GenKind<F,
/**
* @since 2.0.0
*/
[Symbol.iterator](): Generator<GenKind<F, R, O, E, A>, A> {
[Symbol.iterator](): IterableIterator<GenKind<F, R, O, E, A>, A> {
return new SingleShotGen<GenKind<F, R, O, E, A>, A>(this as any)
}
}
Expand Down Expand Up @@ -147,7 +147,7 @@ export class SingleShotGen<T, A> implements IterableIterator<T, A> {
/**
* @since 2.0.0
*/
[Symbol.iterator](): Generator<T, A> {
[Symbol.iterator](): IterableIterator<T, A> {
return new SingleShotGen<T, A>(this.self)
}
}
Expand Down
Loading

0 comments on commit 94ee1b7

Please sign in to comment.