Effect CommunityEC
Effect Community16mo ago
63 replies
Tickle Me Pink

Pipe vs Flow for type inference

Why can't flow provide similar inference to pipe? What would be the workaround?
import { pipe, flow } from "effect";

const x = pipe("WEE" as const, (c) => c);
//    ^- narrowed to "WEE"

const y = flow((c) => c)("WEE" as const);
//    ^- unknown
Was this page helpful?