# @types/pager__jackrabbit

> TypeScript definitions for @pager/jackrabbit

Latest version **4.8.6** (published 2023-11-21) · MIT license · 0 weekly downloads

## Install

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

## 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 | 4.8.6 |
| Published | 2023-11-21 |
| First published | 2020-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51423 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [@types/amqplib](https://npm.io/package/@types/amqplib.md) *

## Recent versions

- 4.8.6 (latest) — 2023-11-21
- 4.8.2 (ts3.6) — 2021-07-08
- 4.8.1 (ts3.5) — 2020-09-26
- 4.8.5 — 2023-11-07
- 4.8.4 — 2023-10-18
- 4.8.3 — 2023-09-24
- 4.8.0 — 2020-01-03

## README

# Installation
> `npm install --save @types/pager__jackrabbit`

# Summary
This package contains type definitions for @pager/jackrabbit (https://github.com/pagerinc/jackrabbit).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pager__jackrabbit.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pager__jackrabbit/index.d.ts)
````ts
import * as amqplib from "amqplib";

export = jackrabbit;
declare function jackrabbit(url: string): jackrabbit.JackRabbit;

declare namespace jackrabbit {
    type Message = amqplib.Message;

    type ExchangeOptions = amqplib.Options.AssertExchange & {
        noReply?: boolean | undefined;
    };

    interface JackRabbit extends NodeJS.EventEmitter {
        default(): Exchange;
        direct(name?: string, options?: ExchangeOptions): Exchange;
        fanout(name?: string, options?: ExchangeOptions): Exchange;
        topic(name?: string, options?: ExchangeOptions): Exchange;
        close(callback?: (e: Error) => any): void;
        getInternals: () => {
            amqp: any;
            connection: amqplib.Connection;
        };
    }

    enum exchangeType {
        direct = "direct",
        fanout = "fanout",
        topic = "topic",
    }

    interface Exchange extends NodeJS.EventEmitter {
        name: string;
        type: exchangeType;
        options: amqplib.Options.AssertExchange;
        queue(options: QueueOptions): Queue;
        connect(con: amqplib.Connection): Exchange;
        publish(message: any, options?: PublishOptions): Exchange;
    }

    type PublishOptions = amqplib.Options.Publish & {
        key: string;
        reply?: AckCallback | undefined;
    };

    type QueueOptions = amqplib.Options.AssertQueue & {
        name?: string | undefined;
        key?: string | undefined;
        keys?: readonly string[] | undefined;
        prefetch?: number | undefined;
    };

    type AckCallback = (data?: any) => void;

    interface Queue extends NodeJS.EventEmitter {
        name: string;
        options: QueueOptions;
        connect(con: amqplib.Connection): void;
        consume: (
            callback: (
                data: any,
                ack: AckCallback,
                nack: () => void,
                msg: Message,
            ) => void,
            options?: amqplib.Options.Consume,
        ) => void;
        cancel(done: any): void;
        purge(done: any): void;
    }
}

````

### Additional Details
 * Last updated: Mon, 20 Nov 2023 23:36:24 GMT
 * Dependencies: [@types/amqplib](https://npmjs.com/package/@types/amqplib)

# Credits
These definitions were written by [Benjamin Schuster-Boeckler](https://github.com/dagams).

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