chore: added index.js for structures (#91)
- Allows for a cleaner integration (imo) in Client.js
This commit is contained in:
parent
16fe865a9c
commit
588dc93c17
2 changed files with 14 additions and 4 deletions
|
|
@ -10,10 +10,7 @@ const { WhatsWebURL, UserAgent, DefaultOptions, Events, WAState } = require('./u
|
||||||
const { ExposeStore, LoadUtils } = require('./util/Injected');
|
const { ExposeStore, LoadUtils } = require('./util/Injected');
|
||||||
const ChatFactory = require('./factories/ChatFactory');
|
const ChatFactory = require('./factories/ChatFactory');
|
||||||
const ContactFactory = require('./factories/ContactFactory');
|
const ContactFactory = require('./factories/ContactFactory');
|
||||||
const ClientInfo = require('./structures/ClientInfo');
|
const { ClientInfo, Message, MessageMedia, Location } = require('./structures');
|
||||||
const Message = require('./structures/Message');
|
|
||||||
const MessageMedia = require('./structures/MessageMedia');
|
|
||||||
const Location = require('./structures/Location');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starting point for interacting with the WhatsApp Web API
|
* Starting point for interacting with the WhatsApp Web API
|
||||||
|
|
|
||||||
13
src/structures/index.js
Normal file
13
src/structures/index.js
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
module.exports = {
|
||||||
|
Base: require('./Base'),
|
||||||
|
BusinessContact: require('./BusinessContact'),
|
||||||
|
Chat: require('./Chat'),
|
||||||
|
ClientInfo: require('./ClientInfo'),
|
||||||
|
Contact: require('./Contact'),
|
||||||
|
GroupChat: require('./GroupChat'),
|
||||||
|
Location: require('./Location'),
|
||||||
|
Message: require('./Message'),
|
||||||
|
MessageMedia: require('./MessageMedia'),
|
||||||
|
PrivateChat: require('./PrivateChat'),
|
||||||
|
PrivateContact: require('./PrivateContact'),
|
||||||
|
};
|
||||||
Loading…
Reference in a new issue