Extracting Success Channel Type from Effect in TypeScript
Is there a way to extract the success channel type from an effect to reference in another function?
const effectWithReturnType: Effect.Effect<string> = Effect.succeed("success");
const test = Effect.reduce(languages, {} as {[language in Languages]: (show the success channel return type of effectWithReturnType here without having to hardcode string)}, (acc, language) => effectWithReturnType.pipe(Effect.map(_ => ({...acc, [language]: _}))