Add more tslint rules, fix attach addon

This commit is contained in:
Daniel Imms
2018-01-17 10:40:42 -08:00
parent 307dd0fd68
commit 4588d15738
10 changed files with 64 additions and 56 deletions
+4 -4
View File
@@ -105,8 +105,8 @@ export function apply(terminalConstructor: any): void {
* should happen instantly or at a maximum
* frequency of 1 rendering per 10ms.
*/
terminalConstructor.prototype.attach = (socket: WebSocket, bidirectional: boolean, buffered: boolean) => {
return attach(this, socket, bidirectional, buffered);
terminalConstructor.prototype.attach = function (socket: WebSocket, bidirectional: boolean, buffered: boolean): void {
attach(this, socket, bidirectional, buffered);
};
/**
@@ -115,7 +115,7 @@ export function apply(terminalConstructor: any): void {
* @param {WebSocket} socket - The socket from which to detach the current
* terminal.
*/
terminalConstructor.prototype.detach = (socket: WebSocket) => {
return detach(this, socket);
terminalConstructor.prototype.detach = function (socket: WebSocket): void {
detach(this, socket);
};
}