Skip to content

Commit f0c46a7

Browse files
committed
chore: format new code
1 parent b48218d commit f0c46a7

File tree

6 files changed

+11
-16
lines changed

6 files changed

+11
-16
lines changed

src/resource_clients/actor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ export interface ActorRun extends ActorRunListItem {
417417
usageUsd?: ActorRunUsage;
418418
pricingInfo?: ActorRunPricingInfo;
419419
chargedEventCounts?: Record<string, number>;
420-
generalAccess?: RUN_GENERAL_ACCESS | null,
420+
generalAccess?: RUN_GENERAL_ACCESS | null;
421421
}
422422

423423
export interface ActorRunUsage {

src/resource_clients/dataset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export interface Dataset {
181181
actRunId?: string;
182182
stats: DatasetStats;
183183
fields: string[];
184-
generalAccess?: STORAGE_GENERAL_ACCESS | null,
184+
generalAccess?: STORAGE_GENERAL_ACCESS | null;
185185
}
186186

187187
export interface DatasetStats {
@@ -194,7 +194,7 @@ export interface DatasetStats {
194194
export interface DatasetClientUpdateOptions {
195195
name?: string | null;
196196
title?: string;
197-
generalAccess?: STORAGE_GENERAL_ACCESS | null,
197+
generalAccess?: STORAGE_GENERAL_ACCESS | null;
198198
}
199199

200200
export interface DatasetClientListItemOptions {

src/resource_clients/key_value_store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export interface KeyValueStore {
233233
actId?: string;
234234
actRunId?: string;
235235
stats?: KeyValueStoreStats;
236-
generalAccess?: STORAGE_GENERAL_ACCESS | null,
236+
generalAccess?: STORAGE_GENERAL_ACCESS | null;
237237
}
238238

239239
export interface KeyValueStoreStats {
@@ -247,7 +247,7 @@ export interface KeyValueStoreStats {
247247
export interface KeyValueClientUpdateOptions {
248248
name?: string | null;
249249
title?: string;
250-
generalAccess?: STORAGE_GENERAL_ACCESS | null,
250+
generalAccess?: STORAGE_GENERAL_ACCESS | null;
251251
}
252252

253253
export interface KeyValueClientListKeysOptions {

src/resource_clients/request_queue.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
import ow from 'ow';
22
import type { JsonObject } from 'type-fest';
33

4-
import type {
5-
STORAGE_GENERAL_ACCESS
6-
} from '@apify/consts';
7-
import {
8-
MAX_PAYLOAD_SIZE_BYTES,
9-
REQUEST_QUEUE_MAX_REQUESTS_PER_BATCH_OPERATION
10-
} from '@apify/consts';
4+
import type { STORAGE_GENERAL_ACCESS } from '@apify/consts';
5+
import { MAX_PAYLOAD_SIZE_BYTES, REQUEST_QUEUE_MAX_REQUESTS_PER_BATCH_OPERATION } from '@apify/consts';
116
import log from '@apify/log';
127

138
import type { ApifyApiError } from '../apify_api_error';
@@ -558,7 +553,7 @@ export interface RequestQueue {
558553
actRunId?: string;
559554
hadMultipleClients: boolean;
560555
stats: RequestQueueStats;
561-
generalAccess?: STORAGE_GENERAL_ACCESS | null,
556+
generalAccess?: STORAGE_GENERAL_ACCESS | null;
562557
}
563558

564559
export interface RequestQueueStats {
@@ -572,7 +567,7 @@ export interface RequestQueueStats {
572567
export interface RequestQueueClientUpdateOptions {
573568
name?: string | null;
574569
title?: string;
575-
generalAccess?: STORAGE_GENERAL_ACCESS | null,
570+
generalAccess?: STORAGE_GENERAL_ACCESS | null;
576571
}
577572

578573
export interface RequestQueueClientListHeadOptions {

src/resource_clients/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ export interface RunMetamorphOptions {
282282
export interface RunUpdateOptions {
283283
statusMessage?: string;
284284
isStatusMessageTerminal?: boolean;
285-
generalAccess?: RUN_GENERAL_ACCESS | null,
285+
generalAccess?: RUN_GENERAL_ACCESS | null;
286286
}
287287

288288
export interface RunResurrectOptions {

test/runs.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ describe('Run methods', () => {
308308

309309
await expect(client.run(runId).charge()).rejects.toThrow(
310310
'Expected `options` to be of type `object` but received type `undefined`\n' +
311-
'Cannot convert undefined or null to object in object `options`',
311+
'Cannot convert undefined or null to object in object `options`',
312312
);
313313
});
314314
});

0 commit comments

Comments
 (0)