Skip to content

Commit

Permalink
fix: Constants export in index.js (#285)
Browse files Browse the repository at this point in the history
* fix: add Constants export in index.js
* fix: add missing constants export in index.d.ts


Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
  • Loading branch information
stefanfuchs and pedroslopez authored Aug 3, 2020
1 parent 5c84a16 commit fbdfd2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ declare namespace WAWebJS {

}

/** whatsapp web url */
export const WhatsWebURL: string

/** default client options */
export const DefaultOptions: ClientOptions

/** Chat types */
export enum ChatTypes {
SOLO = 'solo',
Expand Down
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

const Constants = require('./src/util/Constants');

module.exports = {
Client: require('./src/Client'),

Expand All @@ -15,5 +17,7 @@ module.exports = {
PrivateContact: require('./src/structures/PrivateContact'),
BusinessContact: require('./src/structures/BusinessContact'),
ClientInfo: require('./src/structures/ClientInfo'),
Location: require('./src/structures/Location')
};
Location: require('./src/structures/Location'),

...Constants
};

0 comments on commit fbdfd2c

Please sign in to comment.