Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
809 B
Text
23 lines
809 B
Text
import * as pg from "pg";
|
|
|
|
declare class Pool<T extends pg.Client> extends pg.Pool {
|
|
readonly Client: Pool.ClientLikeCtr<T>;
|
|
|
|
constructor(config?: Pool.Config<T>, client?: Pool.ClientLikeCtr<T>);
|
|
|
|
connect(): Promise<T & pg.PoolClient>;
|
|
connect(callback: (err?: Error, client?: T & pg.PoolClient, done?: (release?: any) => void) => void): void;
|
|
|
|
on(event: "error", listener: (err: Error, client: T & pg.PoolClient) => void): this;
|
|
on(event: "connect" | "acquire" | "remove", listener: (client: T & pg.PoolClient) => void): this;
|
|
}
|
|
|
|
declare namespace Pool {
|
|
type ClientLikeCtr<T extends pg.Client> = new(config?: string | pg.ClientConfig) => T;
|
|
|
|
interface Config<T extends pg.Client> extends pg.PoolConfig {
|
|
Client?: ClientLikeCtr<T> | undefined;
|
|
}
|
|
}
|
|
|
|
export = Pool;
|