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.