diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index b847b7ca8..62c04227b 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -15049,7 +15049,7 @@ interface SpeechRecognitionEventMap { "audioend": Event; "audiostart": Event; "end": Event; - "error": Event; + "error": ErrorEvent; "nomatch": SpeechRecognitionEvent; "result": SpeechRecognitionEvent; "soundend": Event; @@ -15068,7 +15068,7 @@ interface SpeechRecognition extends EventTarget { onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null; onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null; onend: ((this: SpeechRecognition, ev: Event) => any) | null; - onerror: ((this: SpeechRecognition, ev: Event) => any) | null; + onerror: ((this: SpeechRecognition, ev: ErrorEvent) => any) | null; onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null; onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null; onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null; diff --git a/inputfiles/addedTypes.json b/inputfiles/addedTypes.json index c87f0198a..ad831c4f4 100644 --- a/inputfiles/addedTypes.json +++ b/inputfiles/addedTypes.json @@ -1050,7 +1050,7 @@ }, { "name": "error", - "type": "Event" + "type": "ErrorEvent" }, { "name": "end",