fix(memoro/audio-server): resolve TypeScript errors

- tsconfig: add allowImportingTsExtensions for .ts import paths (Bun pattern)
- transcription: cast Azure response.json() to typed parameter via Parameters<>

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-31 22:00:16 +02:00
parent 62597707b3
commit 8a7efdd654
2 changed files with 2 additions and 1 deletions

View file

@ -247,7 +247,7 @@ export class TranscriptionService {
throw new Error(`Azure Speech API error: ${response.status} - ${errorText}`);
}
const azureResult = await response.json();
const azureResult = (await response.json()) as Parameters<typeof this.processTranscriptionResult>[0];
console.log(`[Azure] Transcription response received from ${speechService.name}`);
console.log(`[Azure] Phrase count: ${azureResult?.phrases?.length ?? 0}`);

View file

@ -10,6 +10,7 @@
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
"outDir": "dist",
"types": ["bun-types", "node"]
},