Skip to content

Consider using a Sum Type instead of throwing on Error #3

@sibelius

Description

@sibelius

Based on this https://gist.github.com/jcemer/f4bef63864f73307df44d3ddc2383214

by @jcemer

type ResultsResponse =
  | Ok<T>
  | Error

this will make the user always check the response error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions