Skip to content

Commit

Permalink
🏷️ Update types exported
Browse files Browse the repository at this point in the history
  • Loading branch information
totigm committed Jan 11, 2024
1 parent 35e7879 commit 134c4b2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@totigm/whatsapp-bot",
"version": "1.0.12",
"version": "1.0.13",
"description": "This is a library to create whatsapp bots. It handles all the commands stuff behind the scenes, so you can focus on your bot's logic.",
"main": "dist/index.js",
"bin": "dist/index.js",
Expand Down
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ import WhatsappBot from "./bot";
module.exports = WhatsappBot;
export default WhatsappBot;

export { WhatsappBotOptions } from "./types";
export * from "./types";

import * as WhatsappWeb from "whatsapp-web.js";
export { WhatsappWeb };
2 changes: 2 additions & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { ClientOptions } from "whatsapp-web.js";
import { Options as BotBuilderOptions } from "@totigm/bot-builder";

export * from "@totigm/bot-builder";

type BotOptions = Omit<BotBuilderOptions, "contentProp" | "textFormatting" | "authData"> & {
messageEvent?: "message" | "message_create";
};
Expand Down

0 comments on commit 134c4b2

Please sign in to comment.