Add return types on new private functions

This commit is contained in:
npezza93
2017-08-16 20:39:28 -04:00
parent c41bd81526
commit 3beb1f5c7c
+3 -3
View File
@@ -2284,19 +2284,19 @@ export class Terminal extends EventEmitter implements ITerminal, IInputHandlingT
return matchColorCache[hash] = li;
}
private visualBell() {
private visualBell(): boolean {
var styles = [].concat.apply([], [this.options.bellStyle]);
return styles.indexOf('visual') > -1 || styles.indexOf('both') > -1
}
private soundBell() {
private soundBell(): boolean {
var styles = [].concat.apply([], [this.options.bellStyle]);
return styles.indexOf('sound') > -1 || styles.indexOf('both') > -1
}
private preloadBellSound() {
private preloadBellSound(): void {
if (this.soundBell()) {
this.bellAudioElement = document.createElement('audio');
this.bellAudioElement.setAttribute('preload', 'auto');