Skip to content

Commit 9878a67

Browse files
committed
Adding @types/dom-speech-recognition
1 parent ab598e0 commit 9878a67

File tree

6 files changed

+20
-9
lines changed

6 files changed

+20
-9
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ testem.log
4444
# System Files
4545
.DS_Store
4646
Thumbs.db
47+
48+
.angular

package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"@angular-devkit/build-angular": "^14.2.1",
3131
"@angular/cli": "^14.2.1",
3232
"@angular/compiler-cli": "^14.2.0",
33+
"@types/dom-speech-recognition": "^0.0.1",
3334
"@types/jasmine": "~3.6.0",
3435
"@types/jasminewd2": "~2.0.3",
3536
"@types/node": "^12.11.1",
@@ -47,4 +48,4 @@
4748
"tslint": "~6.1.0",
4849
"typescript": "~4.6.4"
4950
}
50-
}
51+
}

src/app/shared/model/app-window.ts

-4
This file was deleted.

src/app/shared/services/web-apis/speech-recognizer.service.ts

-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import { Observable } from 'rxjs';
44
import { SpeechNotification } from '../../model/speech-notification';
55
import { SpeechError } from '../../model/speech-error';
66
import { SpeechEvent } from '../../model/speech-event';
7-
import { AppWindow } from '../../model/app-window';
8-
// tslint:disable-next-line:no-any
9-
const { webkitSpeechRecognition }: AppWindow = (window as any) as AppWindow;
107

118
@Injectable({
129
providedIn: 'root',

tsconfig.app.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
55
"outDir": "./out-tsc/app",
6-
"types": []
6+
"types": [
7+
"dom-speech-recognition"
8+
]
79
},
810
"files": [
911
"src/main.ts",

0 commit comments

Comments
 (0)