Effect CommunityEC
Effect Community•3y ago•
15 replies
Jules

Dealing with the `unknown` type in TypeScript's Effect.tryPromise

How do you deal with the unknown type in
Effect.tryPromise({
  try: () => callPromise()
  catch: (e: unknow) => ...
})

?
How to make something useful out of it? Like an Error for example?
Was this page helpful?