From c6e3f3c66373f11bdf99d2722f6c0d97afac359b Mon Sep 17 00:00:00 2001 From: Shareef Ali Date: Mon, 13 Apr 2020 17:09:17 -0500 Subject: [PATCH 1/2] WebSpeech's SpeechRecognition onerror incorrectly reports ErrorEvent as event See: https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/error --- inputfiles/addedTypes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 908187779040bb4896c78410bab022ce52c8cb3b Mon Sep 17 00:00:00 2001 From: Shareef Ali Date: Mon, 13 Apr 2020 19:16:40 -0500 Subject: [PATCH 2/2] Make travisCI happy, accept baseline --- baselines/dom.generated.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;