From 79995ebfb45f80b80b8dfda6b575457706db8bae Mon Sep 17 00:00:00 2001 From: nuintun Date: Sun, 6 May 2018 19:16:18 +0800 Subject: [PATCH] :art: Update typescript declaration file --- CHANGELOG.md | 3 +++ index.d.ts | 2 +- index.js | 9 +++++---- package.json | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45e4da9..379324e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/index.d.ts b/index.d.ts index 20e61cc..ef99934 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ declare module 'node-adodb' { - const open: (connection: string) => open; + const open: (connection: string, x64?: boolean) => open; export interface open { query(sql: string): Promise; diff --git a/index.js b/index.js index 0bdf4d0..80005e6 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,7 @@ class ADODB { /** * @constructor * @param {string} connection + * @param {boolean} [x64] */ constructor(connection, x64) { this.connection = connection; @@ -30,7 +31,7 @@ class ADODB { /** * @method execute * @param {string} sql - * @param {string} scalar + * @param {string} [scalar] * @returns {Promise} */ execute(sql, scalar) { @@ -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) { @@ -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) diff --git a/package.json b/package.json index 75cd34a..c0921c6 100644 --- a/package.json +++ b/package.json @@ -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"],