Skip to content

Commit

Permalink
JSdoc tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Maj committed Apr 15, 2024
1 parent 6b116d5 commit 0acf90d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/typed-method-types/workflows/triggers/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ type ChannelEvents =
& (ChannelUnscopedEvent | ChannelScopedEvent); // controls event scoping: `channel_ids` and `all_resources`

/**
* Event that is unscoped (limited) to a specific channel
* Event that is unscoped and not limited to a specific channel
*/
type ChannelUnscopedEvent = {
/** @description If set to `true`, will trigger in all channels. `false` by default and mutually exclusive with `channel_ids`. */
all_resources: true;
/** @description The channel ids that this event listens on. Mutually exclusive with `all_resources`. */
/** @description The channel ids that this event listens on. Mutually exclusive with `all_resources: true`. */
channel_ids?: never;
};

/**
* Event that is scoped to specific channel ID(s)
*/
type ChannelScopedEvent = {
/** @description The channel ids that this event listens on. Mutually exclusive with `all_resources`. */
/** @description The channel ids that this event listens on. Mutually exclusive with `all_resources: true`. */
channel_ids: PopulatedArray<string>;
/** @description If set to `true`, will trigger in all channels. `false` by default and mutually exclusive with `channel_ids`. */
all_resources?: false;
Expand Down

0 comments on commit 0acf90d

Please sign in to comment.