fix: Constants export in index.js (#285)
* 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>
This commit is contained in:
parent
5c84a1651d
commit
fbdfd2c4dd
2 changed files with 12 additions and 2 deletions
6
index.d.ts
vendored
6
index.d.ts
vendored
|
|
@ -300,6 +300,12 @@ declare namespace WAWebJS {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** whatsapp web url */
|
||||||
|
export const WhatsWebURL: string
|
||||||
|
|
||||||
|
/** default client options */
|
||||||
|
export const DefaultOptions: ClientOptions
|
||||||
|
|
||||||
/** Chat types */
|
/** Chat types */
|
||||||
export enum ChatTypes {
|
export enum ChatTypes {
|
||||||
SOLO = 'solo',
|
SOLO = 'solo',
|
||||||
|
|
|
||||||
6
index.js
6
index.js
|
|
@ -1,5 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
const Constants = require('./src/util/Constants');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Client: require('./src/Client'),
|
Client: require('./src/Client'),
|
||||||
|
|
||||||
|
|
@ -15,5 +17,7 @@ module.exports = {
|
||||||
PrivateContact: require('./src/structures/PrivateContact'),
|
PrivateContact: require('./src/structures/PrivateContact'),
|
||||||
BusinessContact: require('./src/structures/BusinessContact'),
|
BusinessContact: require('./src/structures/BusinessContact'),
|
||||||
ClientInfo: require('./src/structures/ClientInfo'),
|
ClientInfo: require('./src/structures/ClientInfo'),
|
||||||
Location: require('./src/structures/Location')
|
Location: require('./src/structures/Location'),
|
||||||
|
|
||||||
|
...Constants
|
||||||
};
|
};
|
||||||
Loading…
Reference in a new issue