fix: more type annotation

This commit is contained in:
Marius Begby committed 2023-08-30 14:12:55 +02:00
1 parent 3ac692d8eb
commit 2560f0fe9a
65 files changed
+408 -343

No files matched your search

+2 -2
View File
@@ -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}`;
})