diff --git a/packages/interactive-messages/src/adapter.ts b/packages/interactive-messages/src/adapter.ts index c3d089340..4f75fab4c 100644 --- a/packages/interactive-messages/src/adapter.ts +++ b/packages/interactive-messages/src/adapter.ts @@ -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) @@ -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; +type Respond = (message: any) => Promise; /** * A handler function for action requests (block actions, button presses, menu selections, diff --git a/packages/interactive-messages/src/http-handler.ts b/packages/interactive-messages/src/http-handler.ts index 6cb53496e..e18d63555 100644 --- a/packages/interactive-messages/src/http-handler.ts +++ b/packages/interactive-messages/src/http-handler.ts @@ -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 */