@flyyer/goerr
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

@flyyer/goerr

Internal utility function.

yarn add @flyyer/goerr
import { goerr } from "@flyyer/goerr";


const [res, error] = await goerr(fetch("..."));
if (error) {
  //...
} else if (res) {
  //...
} else {
  // Never will return both values.
}

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @flyyer/goerr

    Weekly Downloads

    1

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    2.73 kB

    Total Files

    5

    Last publish

    Collaborators

    • lopezjurip
    • francomendez