Skip to content

Commit 1fc902c

Browse files
committed
fix: types
1 parent cffc588 commit 1fc902c

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/shared/previewUtils.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export class PreviewUtils {
5757
ports: { httpPort: number; httpsPort: number },
5858
logger?: Logger
5959
): string {
60-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
61-
return LwcDevMobileCorePreviewUtils.generateWebSocketUrlForLocalDevServer(platform, ports, logger as any);
60+
return LwcDevMobileCorePreviewUtils.generateWebSocketUrlForLocalDevServer(platform, ports, logger);
6261
}
6362

6463
/**
@@ -110,10 +109,8 @@ export class PreviewUtils {
110109

111110
device =
112111
platform === Platform.ios
113-
? // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
114-
await new AppleDeviceManager(logger as any).getDevice(deviceId)
115-
: // eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-explicit-any
116-
await new AndroidDeviceManager(logger as any).getDevice(deviceId);
112+
? await new AppleDeviceManager(logger).getDevice(deviceId)
113+
: await new AndroidDeviceManager(logger).getDevice(deviceId);
117114
} else {
118115
logger?.debug('Prompting the user to select a device.');
119116

@@ -399,8 +396,7 @@ export class PreviewUtils {
399396

400397
return new Promise((resolve, reject) => {
401398
if (progress && totalSize) {
402-
response.body?.on('data', (chunk) => {
403-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
399+
response.body?.on('data', (chunk: string) => {
404400
downloadedSize += chunk.length;
405401
const percentage = parseFloat(Math.min((downloadedSize / totalSize) * 100, 100).toFixed(1));
406402
progress.update(percentage);

0 commit comments

Comments
 (0)