@kamiazya ngx-speech-recognition missing types with [email protected]+
Asked Answered
W

1

0

Package @kamiazya/ngx-speech-recognition

Missing Types: SpeechGrammar, SpeechGrammarList, SpeechRecognition, SpeechRecognitionErrorEvent, SpeechRecognitionEvent, webkitSpeechGrammarList, webkitSpeechRecognition, webkitSpeechRecognitionEvent

Error

TS2304: Cannot find name 'SpeechRecognitionError'.

`ERROR in node_modules/@kamiazya/ngx-speech-recognition/lib/service/speech-recognition.token.d.ts: 16:73 - error TS2304: Cannot find name 'SpeechRecognitionError'.

Webfooted answered 16/10, 2022 at 22:26 Comment(0)
W
0

Issue

TypeScript 4.4 libdom changes

https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1029

Solution

npm install --save @types/dom-speech-recognition

https://www.npmjs.com/package/@types/dom-speech-recognition

Webfooted answered 16/10, 2022 at 22:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.