Type-safe `withLabel` function

export const withLabel =
  (label: string) =>
  <A, E, R>(eff: Effect.Effect<A, E, R>) => {
    return eff.pipe(Effect.withLogSpan(label), Effect.withSpan(label))
  }


How can I do this, but without the type error when I use it?
image.png
Was this page helpful?