Skip to content

Commit 79995eb

Browse files
committed
🎨 Update typescript declaration file
1 parent f93bde4 commit 79995eb

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 4.2.2 / 2018/05/06
2+
- Update typescript declaration file
3+
14
# 4.2.1 / 2018/05/06
25
- Update json.js
36
- Add message for SQL contain reserved words and symbols [#55](https://github.com/nuintun/node-adodb/issues/55)

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module 'node-adodb' {
2-
const open: (connection: string) => open;
2+
const open: (connection: string, x64?: boolean) => open;
33

44
export interface open {
55
query<T>(sql: string): Promise<T>;

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class ADODB {
2121
/**
2222
* @constructor
2323
* @param {string} connection
24+
* @param {boolean} [x64]
2425
*/
2526
constructor(connection, x64) {
2627
this.connection = connection;
@@ -30,7 +31,7 @@ class ADODB {
3031
/**
3132
* @method execute
3233
* @param {string} sql
33-
* @param {string} scalar
34+
* @param {string} [scalar]
3435
* @returns {Promise}
3536
*/
3637
execute(sql, scalar) {
@@ -66,8 +67,8 @@ class ADODB {
6667
/**
6768
* @method schema
6869
* @param {number} type
69-
* @param {Array} criteria
70-
* @param {string} id
70+
* @param {Array} [criteria]
71+
* @param {string} [id]
7172
* @returns {Promise}
7273
*/
7374
schema(type, criteria, id) {
@@ -99,7 +100,7 @@ module.exports = {
99100
/**
100101
* @function open
101102
* @param {string} connection
102-
* @param {boolean} x64
103+
* @param {boolean} [x64]
103104
* @returns {ADODB}
104105
*/
105106
open: (connection, x64) => new ADODB(connection, x64)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-adodb",
3-
"version": "4.2.1",
3+
"version": "4.2.2",
44
"main": "index.js",
55
"license": "MIT",
66
"keywords": ["sql", "adodb", "access", "database", "node-adodb", "microsoft adodb"],

0 commit comments

Comments
 (0)