Skip to content

Commit

Permalink
Merge pull request #66 from perrin4869/feature/support-nodenext
Browse files Browse the repository at this point in the history
Add support for importing with nodenext
  • Loading branch information
MatteoGioioso authored May 28, 2022
2 parents de59bb2 + c16f15d commit 5d149bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import stream = require('stream');
import pg = require('pg');

export declare interface TlsOptions {
declare interface TlsOptions {
rejectUnauthorized?: boolean;
ca?: string;
key?: string;
cert?: string;
}

export declare interface Config {
declare interface Config {
user?: string;
database?: string;
password?: string | (() => string | Promise<string>);
Expand Down Expand Up @@ -40,7 +40,11 @@ export declare interface Config {
baseMs?: number;
delayMs?: number;
maxRetries?: number;
library ?: pg.Client;
library?: pg.Client;
}

declare namespace ServerlessClient {
export { TlsOptions, Config }
}

declare class ServerlessClient {
Expand All @@ -53,4 +57,4 @@ declare class ServerlessClient {
on(...args): void
}

export default ServerlessClient
export = ServerlessClient
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0-development",
"description": "",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"test": "docker-compose up --build -d && jest && docker-compose down",
"semantic-release": "semantic-release"
Expand All @@ -22,7 +23,6 @@
"@babel/helper-environment-visitor": "^7.16.7",
"@babel/helper-hoist-variables": "^7.16.7"
},
"typings": "index.d.ts",
"prettier": {
"printWidth": 100
},
Expand Down

0 comments on commit 5d149bf

Please sign in to comment.