mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 13:27:25 +02:00
Some cleanup
- Use whateverEmitter.event for the onWhatever methods. - Add readonly to a bunch of things. - Remove some redundancy in types. - Move initializations out of the constructor and into the declarations where it was reasonable to do so. - Disable a few no-any violations.
This commit is contained in:
@@ -4,11 +4,13 @@ import { IpcRenderer } from "electron";
|
||||
export * from "@coder/ide/src/fill/electron";
|
||||
|
||||
class StdioIpcRenderer extends StdioIpcHandler implements IpcRenderer {
|
||||
public sendTo(windowId: number, channel: string, ...args: any[]): void {
|
||||
// tslint:disable-next-line no-any
|
||||
public sendTo(_windowId: number, _channel: string, ..._args: any[]): void {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
public sendToHost(channel: string, ...args: any[]): void {
|
||||
// tslint:disable-next-line no-any
|
||||
public sendToHost(_channel: string, ..._args: any[]): void {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user