@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.
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    1
  • 2.0.1
    0
  • 2.0.0
    0

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