-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing the typescript for the PromiseAdapter + API links.
- Loading branch information
Showing
2 changed files
with
83 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import * as pgPromise from '../../typescript/pg-promise'; | ||
|
||
function create(cb: any) { | ||
return {}; | ||
} | ||
|
||
var adapter = new pgPromise.PromiseAdapter(create, (data) => { | ||
}, (error) => { | ||
const adapter = new pgPromise.PromiseAdapter({ | ||
create: cb => new Promise(cb), | ||
resolve: () => { | ||
}, | ||
reject: () => { | ||
}, | ||
all: () => Promise.resolve() | ||
}); | ||
|
||
var pgp = pgPromise({ | ||
const pgp = pgPromise({ | ||
promiseLib: adapter | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters