fix typescript errors

This commit is contained in:
emerson 2022-10-14 07:55:53 -04:00
parent d11a46ab9f
commit a55837c171
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ export abstract class Client {
}
getCapString(capVersion: string) {
let capArray = [];
let capArray: string[] = [];
for (const [key, value] of this.allCaps.entries()) {
if (capVersion === '301' || value.length === 0) {
capArray.push(key);

View file

@ -8,7 +8,7 @@ export class IRCMessage {
toString() {
let messageString = '';
if (this.tags.size !== 0) {
let tagArray = [];
let tagArray: string[] = [];
for (const [key, value] of this.tags) {
if (value === '') {
tagArray.push(key);