@kanziw/error
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@kanziw/error

wrapUnknownError

import { wrapUnknownError } from '@kanziw/error'

try {
  someWrongFunction()
} catch (unknownErr: unknown) {
  // Handle err with type Error
  const err: Error = wrapUnknownError(unknownError)
}

Readme

Keywords

Package Sidebar

Install

npm i @kanziw/error

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

2.87 kB

Total Files

8

Last publish

Collaborators

  • kanziw