High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: resolve ESLint warnings with strict typing (from PR #46)
Mario0a72f3234c5d
diff --git a/npm/src/download.ts b/npm/src/download.tsindex 8441f85a..65e7fa70 100644--- a/npm/src/download.ts+++ b/npm/src/download.ts@@ -120,7 +120,10 @@ function verifySHA256(filePath: string, expectedHash: string): boolean {return actualHash.toLowerCase() === expectedHash.toLowerCase();}-async function downloadBinary(platform: any, version: string): Promise<void> {+async function downloadBinary(+ platform: ReturnType<typeof detectPlatform>,+ version: string+): Promise<void> {const binaryName = getBinaryName(platform);const binaryPath = getBinaryPath(binaryName, version);diff --git a/npm/src/index.ts b/npm/src/index.tsindex 706ec267..6fa45c99 100644--- a/npm/src/index.ts+++ b/npm/src/index.ts@@ -108,6 +108,7 @@ export class Pinchtab {/*** Make a request to the Pinchtab API*/+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyprivate async request<T = any>(path: string, body?: any): Promise<T> {const url = `${this.baseUrl}${path}`;@@ -121,7 +122,7 @@ export class Pinchtab {'Content-Type': 'application/json',},body: body ? JSON.stringify(body) : undefined,- signal: controller.signal as any,+ signal: controller.signal as AbortSignal,});if (!response.ok) {diff --git a/npm/src/platform.ts b/npm/src/platform.tsindex 3085194c..c12aaca8 100644--- a/npm/src/platform.ts+++ b/npm/src/platform.ts@@ -6,7 +6,7 @@ export interface Platform {}export function detectPlatform(): Platform {- const platform = process.platform as any;+ const platform = process.platform as string;// Only support x64 (amd64) and arm64let arch: 'amd64' | 'arm64';diff --git a/npm/src/types.ts b/npm/src/types.tsindex c1c574df..8f6bf67e 100644--- a/npm/src/types.ts+++ b/npm/src/types.ts@@ -7,7 +7,7 @@ export interface SnapshotParams {export interface SnapshotResponse {html: string;- refs?: Record<string, any>;+ refs?: Record<string, unknown>;}export interface TabClickParams {