Skip to content

Commit

Permalink
🎨 Update typescript declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed May 6, 2018
1 parent f93bde4 commit 79995eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 4.2.2 / 2018/05/06
- Update typescript declaration file

# 4.2.1 / 2018/05/06
- Update json.js
- Add message for SQL contain reserved words and symbols [#55](https://github.com/nuintun/node-adodb/issues/55)
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module 'node-adodb' {
const open: (connection: string) => open;
const open: (connection: string, x64?: boolean) => open;

export interface open {
query<T>(sql: string): Promise<T>;
Expand Down
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class ADODB {
/**
* @constructor
* @param {string} connection
* @param {boolean} [x64]
*/
constructor(connection, x64) {
this.connection = connection;
Expand All @@ -30,7 +31,7 @@ class ADODB {
/**
* @method execute
* @param {string} sql
* @param {string} scalar
* @param {string} [scalar]
* @returns {Promise}
*/
execute(sql, scalar) {
Expand Down Expand Up @@ -66,8 +67,8 @@ class ADODB {
/**
* @method schema
* @param {number} type
* @param {Array} criteria
* @param {string} id
* @param {Array} [criteria]
* @param {string} [id]
* @returns {Promise}
*/
schema(type, criteria, id) {
Expand Down Expand Up @@ -99,7 +100,7 @@ module.exports = {
/**
* @function open
* @param {string} connection
* @param {boolean} x64
* @param {boolean} [x64]
* @returns {ADODB}
*/
open: (connection, x64) => new ADODB(connection, x64)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-adodb",
"version": "4.2.1",
"version": "4.2.2",
"main": "index.js",
"license": "MIT",
"keywords": ["sql", "adodb", "access", "database", "node-adodb", "microsoft adodb"],
Expand Down

0 comments on commit 79995eb

Please sign in to comment.