Skip to content

Commit

Permalink
Fix documentation & typos, better respond resolved type
Browse files Browse the repository at this point in the history
  • Loading branch information
clavin committed Jul 23, 2019
1 parent a6b22bc commit 3eabc38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/interactive-messages/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ const enum StoredConstraintsType {
}

/**
* Internal storage type that describes the constraints of an ActionHandler.
* Internal storage type that describes the constraints of an ActionHandler or OptionsHandler.
*/
type StoredConstraints =
| ({ handlerType: StoredConstraintsType.Action } & ActionConstraints)
Expand All @@ -603,11 +603,11 @@ type StoredConstraints =
* up to 5 times in 30 minutes.
*
* @param message - a [message](https://api.slack.com/docs/interactive-message-field-guide#top-level_message_fields).
* Dialog submissions do not allow `resplace_original: false` on this message. @returnsthere's no contract or
* interface for the resolution value, but this Promise will resolve when the HTTP response from the `response_url`
* request is complete and reject when there is an error.
* Dialog submissions do not allow `replace_original: false` on this message.
* @returns there's no contract or interface for the resolution value, but this Promise will resolve when the HTTP
* response from the `response_url` request is complete and reject when there is an error.
*/
type Respond = (message: any) => Promise<any>;
type Respond = (message: any) => Promise<unknown>;

/**
* A handler function for action requests (block actions, button presses, menu selections,
Expand Down
2 changes: 1 addition & 1 deletion packages/interactive-messages/src/http-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function createHTTPHandler(adapter: SlackMessageAdapter): RequestListener
* Method to verify signature of requests
*
* @param signingSecret - Signing secret used to verify request signature
* @param requestHeaders - The signing headers. If `rew` is an incoming request, then this should be `req.headers`.
* @param requestHeaders - The signing headers. If `req` is an incoming request, then this should be `req.headers`.
* @param body - Raw body string
* @returns Indicates if request is verified
*/
Expand Down

0 comments on commit 3eabc38

Please sign in to comment.