@types/dom-speech-recognition
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -67,3 +67,3 @@ // Type definitions for non-npm package dom-speech-recognition-browser 0.0 | ||
declare var SpeechRecognition: { prototype: SpeechRecognition; new (): SpeechRecognition }; | ||
declare var SpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition }; | ||
@@ -84,3 +84,3 @@ // https://wicg.github.io/speech-api/#speechrecognitionevent | ||
prototype: SpeechRecognitionEvent; | ||
new (type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; | ||
new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; | ||
}; | ||
@@ -90,10 +90,10 @@ | ||
type SpeechRecognitionErrorCode = | ||
| 'aborted' | ||
| 'audio-capture' | ||
| 'bad-grammar' | ||
| 'language-not-supported' | ||
| 'network' | ||
| 'no-speech' | ||
| 'not-allowed' | ||
| 'service-not-allowed'; | ||
| "aborted" | ||
| "audio-capture" | ||
| "bad-grammar" | ||
| "language-not-supported" | ||
| "network" | ||
| "no-speech" | ||
| "not-allowed" | ||
| "service-not-allowed"; | ||
@@ -114,3 +114,3 @@ // https://wicg.github.io/speech-api/#dictdef-speechrecognitionerroreventinit | ||
prototype: SpeechRecognitionErrorEvent; | ||
new (type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent; | ||
new(type: string, eventInitDict: SpeechRecognitionErrorEventInit): SpeechRecognitionErrorEvent; | ||
}; | ||
@@ -126,3 +126,3 @@ | ||
prototype: SpeechGrammar; | ||
new (): SpeechGrammar; | ||
new(): SpeechGrammar; | ||
}; | ||
@@ -139,11 +139,11 @@ | ||
declare var SpeechGrammarList: { prototype: SpeechGrammarList; new (): SpeechGrammarList }; | ||
declare var SpeechGrammarList: { prototype: SpeechGrammarList; new(): SpeechGrammarList }; | ||
// prefixed global variables in Chrome; should match the equivalents above | ||
// https://developer.mozilla.org/en-US/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API#chrome_support | ||
declare var webkitSpeechRecognition: { prototype: SpeechRecognition; new (): SpeechRecognition; }; | ||
declare var webkitSpeechGrammarList: { prototype: SpeechGrammarList; new (): SpeechGrammarList; }; | ||
declare var webkitSpeechRecognition: { prototype: SpeechRecognition; new(): SpeechRecognition }; | ||
declare var webkitSpeechGrammarList: { prototype: SpeechGrammarList; new(): SpeechGrammarList }; | ||
declare var webkitSpeechRecognitionEvent: { | ||
prototype: SpeechRecognitionEvent; | ||
new (type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; | ||
new(type: string, eventInitDict: SpeechRecognitionEventInit): SpeechRecognitionEvent; | ||
}; |
{ | ||
"name": "@types/dom-speech-recognition", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "TypeScript definitions for dom-speech-recognition-browser", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dom-speech-recognition", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "fb4528f6338a0c242e16a3b3464b8710f1a82e2974739a8413827ae47e1275a0", | ||
"typeScriptVersion": "4.4" | ||
"typesPublisherContentHash": "82c1c3980720205f546381bc9bf4daac255bb1c69540280474c5ebd8c0403ab7", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 26 Jan 2022 15:01:27 GMT | ||
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `SpeechGrammar`, `SpeechGrammarList`, `SpeechRecognition`, `SpeechRecognitionErrorEvent`, `SpeechRecognitionEvent`, `webkitSpeechGrammarList`, `webkitSpeechRecognition`, `webkitSpeechRecognitionEvent` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8511