mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: more type annotation
This commit is contained in:
1 parent
3ac692d8eb
commit
2560f0fe9a
65 files changed
+408
-343
No files matched your search
@@ -2,10 +2,10 @@ import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const cookies = require(path.resolve('./cookies.json'));
|
||||
const cookies: { name: string; value: string }[] = require(path.resolve('./cookies.json'));
|
||||
|
||||
try {
|
||||
const cookieString = cookies
|
||||
const cookieString: string = cookies
|
||||
.map(({ name, value }: { name: string; value: string }) => {
|
||||
return `${name}=${value}`;
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user