chore: fix lint errors — noBannedTypes, import ordering, formatting
Deploy FileDrop / deploy (push) Successful in 42s

- Replace unsafe 'Function' type in test with ITelegramService interface
- Biome auto-fix formatting and import sorting across 8 files

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-29 07:30:31 +07:00
parent ea87397801
commit f5d56f52d4
9 changed files with 248 additions and 242 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import { afterEach, beforeAll, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test';
import type { ITelegramService } from '../src/domain/ports/telegram-service';
import { config } from '../src/env';
import logger from '../src/utils/logger';
@@ -65,7 +66,7 @@ const infoSpy = spyOn(logger, 'info');
const errorSpy = spyOn(logger, 'error');
describe('Telegram API Utilities', () => {
let botPool: { forwardToStorage: Function; getFileInfo: Function; enqueueUpload: Function };
let botPool: ITelegramService;
beforeEach(async () => {
infoSpy.mockClear();