Skip to content

Consider transitioning to using 'Result' types where possible #13

@Amndeep7

Description

@Amndeep7

Currently we handle errors, validation/assertion failures, and successes in a variety of different ways. Sometimes we return {result: "Success"}, log + throw error up the stack, and/or {success: false, error: "this failed for some reason"}. I think we could become more consistent about things while using a Result type.

Interesting articles/projects:

https://imhoff.blog/posts/using-results-in-typescript
https://github.com/vultix/ts-results

Metadata

Metadata

Assignees

No one assigned

    Labels

    nonblockingNot a blocker for any future releases

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions