Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
21e8 committed Dec 7, 2024
1 parent 541b120 commit 96c9b60
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion src/__tests__/batcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('MessageBatcher', () => {
];

for (const msg of messages) {
await batcher.queueMessage(msg.text, msg.level);
batcher.queueMessage(msg.text, msg.level);
}

jest.advanceTimersByTime(1000);
Expand Down
26 changes: 0 additions & 26 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// import fetch from 'node-fetch';

export * from './types';

export { TelegramProcessor } from './processors/telegram';
Expand All @@ -24,27 +22,3 @@ export type {
MessageProcessor,
IMessageBatcher,
} from './types';

// declare module '0xalice-tgram-bot' {
// export class MessageBatcher {
// static create(
// processors: any[],
// config: {
// maxBatchSize: number;
// maxWaitMs: number;
// }
// ): MessageBatcher;

// queueMessage(message: string, level: 'info' | 'warning' | 'error'): void;
// flush(): Promise<void>;
// destroy(): void;
// }

// export class TelegramProcessor {
// constructor(config: {
// botToken: string;
// chatId: string;
// development?: boolean;
// });
// }
// }

0 comments on commit 96c9b60

Please sign in to comment.