Skip to content

Commit 658f948

Browse files
committed
fix error
1 parent c26f50b commit 658f948

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4455,7 +4455,7 @@ interface DocumentEvent {
44554455
createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;
44564456
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
44574457
createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;
4458-
createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;
4458+
createEvent(eventInterface: "SpeechRecognitionError"): SpeechRecognitionError;
44594459
createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;
44604460
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
44614461
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
@@ -13691,7 +13691,7 @@ interface SpeechRecognitionEventMap {
1369113691
"audioend": Event;
1369213692
"audiostart": Event;
1369313693
"end": Event;
13694-
"error": SpeechRecognitionErrorEvent;
13694+
"error": SpeechRecognitionError;
1369513695
"nomatch": SpeechRecognitionEvent;
1369613696
"result": SpeechRecognitionEvent;
1369713697
"soundend": Event;
@@ -13710,7 +13710,7 @@ interface SpeechRecognition extends EventTarget {
1371013710
onaudioend: ((this: SpeechRecognition, ev: Event) => any) | null;
1371113711
onaudiostart: ((this: SpeechRecognition, ev: Event) => any) | null;
1371213712
onend: ((this: SpeechRecognition, ev: Event) => any) | null;
13713-
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => any) | null;
13713+
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionError) => any) | null;
1371413714
onnomatch: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
1371513715
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => any) | null;
1371613716
onsoundend: ((this: SpeechRecognition, ev: Event) => any) | null;

inputfiles/addedTypes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@
10891089
},
10901090
{
10911091
"name": "error",
1092-
"type": "SpeechRecognitionErrorEvent"
1092+
"type": "SpeechRecognitionError"
10931093
},
10941094
{
10951095
"name": "end",

0 commit comments

Comments
 (0)