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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 339 additions and 194 deletions

View file

@ -150,13 +150,13 @@ export class CDSSocket extends EventEmitter {
// EventEmitter types
public on(
public override on(
type: 'close',
callback: (code: number, reason?: string) => void
): this;
public on(type: 'error', callback: (error: Error) => void): this;
public override on(type: 'error', callback: (error: Error) => void): this;
public on(
public override on(
type: string | symbol,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
listener: (...args: Array<any>) => void
@ -164,11 +164,11 @@ export class CDSSocket extends EventEmitter {
return super.on(type, listener);
}
public emit(type: 'close', code: number, reason?: string): boolean;
public emit(type: 'error', error: Error): boolean;
public override emit(type: 'close', code: number, reason?: string): boolean;
public override emit(type: 'error', error: Error): 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);
}
}