# @types/hapipal__avocat

> TypeScript definitions for @hapipal/avocat

Latest version **3.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/hapipal__avocat
pnpm add @types/hapipal__avocat
yarn add @types/hapipal__avocat
bun add @types/hapipal__avocat
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2023-11-07 |
| First published | 2021-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/hapipal__avocat
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapipal__avocat
- npm.io page: https://npm.io/package/@types/hapipal__avocat

## Dependencies (4)

- [joi](https://npm.io/package/joi.md) ^17.7.0
- [@hapi/boom](https://npm.io/package/@hapi/boom.md) ^9.1.1
- [@hapi/hapi](https://npm.io/package/@hapi/hapi.md) ^21.1.0
- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 3.0.5 (latest) — 2023-11-07
- 3.0.2 (ts4.2) — 2022-12-21
- 3.0.1 (ts3.6) — 2021-07-08
- 3.0.0 (ts3.4) — 2021-02-04
- 3.0.4 — 2023-10-18
- 3.0.3 — 2023-09-16

## README

# Installation
> `npm install --save @types/hapipal__avocat`

# Summary
This package contains type definitions for @hapipal/avocat (https://github.com/hapipal/avocat#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapipal__avocat.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapipal__avocat/index.d.ts)
````ts
import { Boom } from "@hapi/boom";
import { ResponseObject } from "@hapi/hapi";

export interface Options {
    return?: boolean | undefined;
    includeMessage?: boolean | undefined;
}

// the return type has to be any because the following scenarios exist:
// 1. options.return = false - this will always throw or return false
// 2. options.return = true - this will either return false or a Boom type
// Due to scenario 2 and that behavior changes based on options, a return
// type of any is the only way I see this working
export function rethrow(err: ResponseObject | Boom, options?: Options): any;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@hapi/boom](https://npmjs.com/package/@hapi/boom), [@hapi/hapi](https://npmjs.com/package/@hapi/hapi), [@types/node](https://npmjs.com/package/@types/node), [joi](https://npmjs.com/package/joi)

# Credits
These definitions were written by [Tim Costa](https://github.com/timcosta).

---
_Source: https://npm.io/package/@types/hapipal__avocat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
