Effect.all type inference fails with generic arguments
Hi, I have a weird case where using generic argument results in
In this example
In this example
If I don't use generics,
Is there a better way to do this? I need to capture input's type because
TypeScript version:
Effect version:
unknown when the argument is passed to Effect.all. Here are the examples:In this example
result is inferred as unknown[]:In this example
result is correctly inferred as string[], the only change was adding the .map call to the input argumentIf I don't use generics,
result is also correctly inferred as string[]Is there a better way to do this? I need to capture input's type because
foo return value is dependant on whatever was passed in as the argument.TypeScript version:
5.4.5Effect version:
3.1.3