Handling specific errors with tryPromise in Effect Typescript

When using tryPromise when I know what errors it may throw, do I need to do type guard if (error instanceof KnownError) for each type in the catch function as per docs? https://effect.website/docs/getting-started/creating-effects/#customizing-error-handling-1

feels a bit verbose, especially that I want to propagate them up and handle somewhere else. Only 3 errors so not too much work, but would be nice if there is some other way
Effect Documentation
Learn to create and manage effects for structured handling of success, failure, and side effects in synchronous and asynchronous workflows.
Creating Effects
Was this page helpful?