mirror of
https://git.sr.ht/~emerson/reflectionircd
synced 2025-08-05 16:59:10 +00:00
fix typescript errors
This commit is contained in:
parent
d11a46ab9f
commit
a55837c171
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue