From fbdfd2c4ddef5a46e61a0988033adbf61df65bf5 Mon Sep 17 00:00:00 2001 From: stefanfuchs Date: Mon, 3 Aug 2020 03:58:15 -0300 Subject: [PATCH] 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 --- index.d.ts | 6 ++++++ index.js | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index b981bdb2a1..3fb6adb1b5 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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', diff --git a/index.js b/index.js index a5a6bc28d6..a67d16e15f 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,7 @@ 'use strict'; +const Constants = require('./src/util/Constants'); + module.exports = { Client: require('./src/Client'), @@ -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') -}; \ No newline at end of file + Location: require('./src/structures/Location'), + + ...Constants +};