Skip to content

Commit

Permalink
Add TODO issue, fix validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jkuzz committed Dec 3, 2024
1 parent c097836 commit e12e84c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resource_clients/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@ export class RunClient extends ResourceClient {
}

/**
* TODO: docs
* TODO: docs url
* https://github.com/apify/apify-client-js/issues/614
*/
async charge(options: RunChargeOptions): Promise<ApifyResponse<Record<string, never>>> {
ow(options, ow.object.exactShape({
eventName: ow.string,
count: ow.optional.number,
idempotencyKey: ow.optional.number,
idempotencyKey: ow.optional.string,
}));

const count = options.count ?? 1;
Expand Down

0 comments on commit e12e84c

Please sign in to comment.