Improving TypeScript Error Handling for Effects

Is it possible to get better errors when you are not properly handling effects? A lot of times Typescript is just a red wiggle under my code and I have to figure the real error myself.

Type 'Effect<unknown, unknown, unknown>' is not assignable to type 'Effect<string, unknown, unknown>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
  Type 'unknown' is not assignable to type 'string'.ts(2375)
Handler.d.ts(60, 15): The expected type comes from the return type of this signature.

This happened because I think I started to handle errors earlier than where I was previously handling them, which is the pipeline where I'm now getting this error
Was this page helpful?