You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The user is reporting a potential bug with the Effect.repeat function in the Effect-TS library. Specifically, they observe that the inferred type of the program variable is incorrect. The expected type is [string[], number], but the inferred type is string[]. The user notes that this issue does not occur when using the Effect.repeatN function. They also provide a code snippet to demonstrate the issue and a link to the Effect-TS playground.
Key Takeaways:
The user suspects a bug with Effect.repeat related to incorrect type inference.
The expected type is [string[], number], but the inferred type is string[].
The issue does not occur with Effect.repeatN.
A code snippet and a playground link are provided for reference.
Summary
The user is reporting a potential bug with the
Effect.repeat
function in the Effect-TS library. Specifically, they observe that the inferred type of theprogram
variable is incorrect. The expected type is[string[], number]
, but the inferred type isstring[]
. The user notes that this issue does not occur when using theEffect.repeatN
function. They also provide a code snippet to demonstrate the issue and a link to the Effect-TS playground.Key Takeaways:
Effect.repeat
related to incorrect type inference.[string[], number]
, but the inferred type isstring[]
.Effect.repeatN
.Discord thread
https://discord.com/channels/795981131316985866/1269103375065026580
The text was updated successfully, but these errors were encountered: