Fix linter issues

This commit is contained in:
freearhey
2025-09-03 07:41:19 +03:00
parent b4095590f0
commit 8182cc45f9
5 changed files with 21 additions and 13 deletions

View File

@@ -6,7 +6,14 @@ import { ProxyParser } from './proxyParser.js'
import { OptionValues } from 'commander'
import { SocksProxyAgent } from 'socks-proxy-agent'
type StreamTesterProps = {
export type TestResult = {
status: {
ok: boolean
code: string
}
}
export type StreamTesterProps = {
options: OptionValues
}
@@ -37,7 +44,7 @@ export class StreamTester {
this.client = axios.create(request)
}
async test(stream: Stream) {
async test(stream: Stream): Promise<TestResult> {
if (TESTING) {
const results = (await import('../../tests/__data__/input/playlist_test/results.js')).default