@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

VersionDownloads (Last 7 Days)Tag
3.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.00
2.0.11
2.0.00

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