1.0.5 • Published 6 months ago
@types/pg-ears v1.0.5
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
// Type definitions for pg-ears 1.0
// Project: https://github.com/doesdev/pg-ears
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
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: Thu, 08 Jul 2021 20:19:33 GMT
- Dependencies: @types/pg
- Global values: none
Credits
These definitions were written by Bradley Ayers.