Skip to content

Commit

Permalink
fix: correct type for webhook event type (apify#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu authored Jan 3, 2022
1 parent fadbf1f commit fc7566d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
2.0.4/ 2021/12/XX
2.0.5 / 2022/01/03
===================
- For TypeScript users, the `WebhookEventType` type was corrected to represent its correct value.

2.0.4 / 2021/12/XX
===================
- Fix: Unnamed storages can now be created again.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apify-client",
"version": "2.0.4",
"version": "2.0.5",
"description": "Apify API client for JavaScript",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion src/resource_clients/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export interface WebhookStats {
totalDispatches: number;
}

export type WebhookEventType = keyof typeof WEBHOOK_EVENT_TYPES;
export type WebhookEventType = typeof WEBHOOK_EVENT_TYPES[keyof typeof WEBHOOK_EVENT_TYPES];

export type WebhookCondition = WebhookAnyRunOfActorCondition | WebhookAnyRunOfActorTaskCondition | WebhookCertainRunCondition;

Expand Down

0 comments on commit fc7566d

Please sign in to comment.