mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
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:
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',
|
||||||
|
|||||||
8
index.js
8
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
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user