Skip to content

Commit

Permalink
Update src/App.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Oct 2, 2023
1 parent 94501b2 commit 4ea518a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ export interface ActionConstraints<A extends SlackAction = SlackAction> {
// TODO: more strict typing to allow block/action_id for block_suggestion etc.
export interface OptionsConstraints<A extends SlackOptions = SlackOptions> {
type?: A["type"];
block_id?: A extends BlockAction ? string | RegExp : never;
action_id?: A extends BlockAction ? string | RegExp : never;
block_id?: A extends SlackOptions ? string | RegExp : never;
action_id?: A extends SlackOptions ? string | RegExp : never;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
callback_id?: Extract<A, { callback_id?: string }> extends any ? string | RegExp : never;
}
Expand Down

0 comments on commit 4ea518a

Please sign in to comment.