From 5013523b88bda668690a11643f780b10642e5e42 Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Sun, 25 Sep 2022 11:50:30 +0300 Subject: [PATCH] typos --- src/types/impl.interface.ts | 2 +- src/utility/nickserv-validator.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/impl.interface.ts b/src/types/impl.interface.ts index d071c63..5dabe0a 100644 --- a/src/types/impl.interface.ts +++ b/src/types/impl.interface.ts @@ -126,6 +126,6 @@ export interface IIRCConnectorConstructor { ): IIRCConnector; } -export interface IIRCConnetionConstructor { +export interface IIRCConnectionConstructor { new (options: IIRCOptions, connector: IIRCConnectorConstructor): IIRCWrapper; } diff --git a/src/utility/nickserv-validator.ts b/src/utility/nickserv-validator.ts index 6290979..60b537c 100644 --- a/src/utility/nickserv-validator.ts +++ b/src/utility/nickserv-validator.ts @@ -1,4 +1,5 @@ import { IRCConnection } from '../irc'; +import { IIRCWrapper } from '../types/impl.interface'; import { INickServOptions } from '../types/irc.interfaces'; import { Collector } from './collector'; @@ -35,7 +36,7 @@ export class NickServCollector extends Collector { export class NickServValidator { public nickservStore: { [key: string]: INickStore } = {}; - constructor(public irc: IRCConnection) { + constructor(public irc: IIRCWrapper) { this.irc.on('leave', ({ nickname }) => { if (this.nickservStore[nickname]) { delete this.nickservStore[nickname];