File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ milkbot.start()
3131### TypeScript
3232
3333``` typescript
34- import { WickrBot , WickrMessage } from ' wickrbot' ;
34+ import WickrBot , { WickrAPI , WickrMessage } from ' wickrbot' ;
3535// You'll need to import the wickrio_addon separately
3636import * as wickr from ' wickrio_addon' ;
3737
3838class MilkBot extends WickrBot {
39- constructor (wickr : any , username ? : string ) {
39+ constructor (wickr : WickrAPI , username ? : string ) {
4040 super (wickr , username );
4141 // This will create a new command for /order
4242 this .listen (' order' , (msg : WickrMessage , args ? : string []) => {
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ import { WickrAPI } from './api';
88import { MESSAGE_TYPE } from './constants' ;
99import { Message } from './message' ;
1010
11+ // Export WickrBot as the default export
12+ export default WickrBot ;
13+
14+ // Keep named exports for backward compatibility and additional types
1115export {
1216 // Bot exports
1317 WickrBot ,
You can’t perform that action at this time.
0 commit comments