@types/pg-ears
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Installation

npm install --save @types/pg-ears

Summary

This package contains type definitions for pg-ears (https://github.com/doesdev/pg-ears).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg-ears.

index.d.ts

import { ClientConfig } from "pg";

interface PgEars {
    listen(
        channel: string,
        cb: (err: Error | null, payload?: string) => void,
    ): null;
    notify(channel: string, payload: any, cb?: (err: Error) => void): void;
}

declare function pg_ears(
    opts: ClientConfig & {
        maxAttempts?: number | undefined;
        // Interval between connection retries, in milliseconds.
        checkInterval?: number | undefined;
    },
): PgEars;

export = pg_ears;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/pg

Credits

These definitions were written by Bradley Ayers.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/pg-ears

Weekly Downloads

10

Version

1.0.5

License

MIT

Unpacked Size

3.57 kB

Total Files

5

Last publish

Collaborators

  • types