Effect CommunityEC
Effect Community3y ago
4 replies
Sadra

Direct Approach for Catching All Errors and Returning an Empty Array

is there direct approach for this action ?
Effect.catchAll(() =>
  Effect.succeed({ ok: false as const, array: [] as string[] })
)
Was this page helpful?