Enable noImplicitOverride TypeScript compiler option

This commit is contained in:
Evan Hahn
2021-11-12 17:44:20 -06:00
committed by GitHub
parent 4490d9f2d0
commit ede34ecee3
51 changed files with 339 additions and 194 deletions

View File

@@ -626,10 +626,13 @@ export class SocketManager extends EventListener {
// EventEmitter types
public on(type: 'authError', callback: (error: HTTPError) => void): this;
public on(type: 'statusChange', callback: () => void): this;
public override on(
type: 'authError',
callback: (error: HTTPError) => void
): this;
public override on(type: 'statusChange', callback: () => void): this;
public on(
public override on(
type: string | symbol,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
listener: (...args: Array<any>) => void
@@ -637,11 +640,11 @@ export class SocketManager extends EventListener {
return super.on(type, listener);
}
public emit(type: 'authError', error: HTTPError): boolean;
public emit(type: 'statusChange'): boolean;
public override emit(type: 'authError', error: HTTPError): boolean;
public override emit(type: 'statusChange'): boolean;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public emit(type: string | symbol, ...args: Array<any>): boolean {
public override emit(type: string | symbol, ...args: Array<any>): boolean {
return super.emit(type, ...args);
}
}