Skip to content

Commit

Permalink
style: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Dec 27, 2023
1 parent e6e855f commit 817299e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/structures/Provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface ProviderEvents {
connected: (client?: any) => void;
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export declare interface Provider {
on<U extends keyof ProviderEvents>(
event: U,
Expand All @@ -32,6 +33,7 @@ export declare interface Provider {
delete(...args): Promise<any> | any;
}

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class Provider extends EventEmitter {
init() {
Util.throwError('Init method is not implemented!', this.constructor.name);
Expand Down
2 changes: 2 additions & 0 deletions src/lib/util/logger/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export interface LoggerEvents {
}
/* eslint-enable max-len */

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export declare interface ILogger {
on<U extends keyof LoggerEvents>(event: U, listener: LoggerEvents[U]): this;

Expand Down Expand Up @@ -223,6 +224,7 @@ export type LogMethods =
| 'timeEnd'
| 'error';

// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class ILogger extends EventEmitter {
public TRACE: LogLevel.TRACE;
public DEBUG: LogLevel.DEBUG;
Expand Down
2 changes: 2 additions & 0 deletions src/providers/LruCacheProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Provider, ProviderTypes } from '../lib/structures/Provider';
import { Logger } from '../lib/util/logger/Logger';

export class LruCacheProvider<
// eslint-disable-next-line @typescript-eslint/ban-types
K extends {},
// eslint-disable-next-line @typescript-eslint/ban-types
V extends {},
FC = unknown,
> extends Provider {
Expand Down

0 comments on commit 817299e

Please sign in to comment.