mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Fix TypeScript linting error in webSpeechSynthesizer
This commit is contained in:
1 parent
19752eace9
commit
1d7d632393
1 file changed
+2
-2
@@ -221,9 +221,9 @@ export class WebSpeechSynthesizer {
|
||||
resolve();
|
||||
};
|
||||
|
||||
utterance.onerror = (event) => {
|
||||
utterance.onerror = (event: SpeechSynthesisErrorEvent) => {
|
||||
this.currentUtterance = null;
|
||||
const errorMessage = (event as any).error || 'Speech synthesis error';
|
||||
const errorMessage = event.error || 'Speech synthesis error';
|
||||
if (this.pendingReject) {
|
||||
this.pendingReject(new Error(errorMessage));
|
||||
this.pendingResolve = null;
|
||||
|
||||
Reference in new issue
Block a user