You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For all middleware functions, next argument exists for sure. However, the types in bolt-js has not been representing that. As the argument is always optional, developers using TypeScript have to call the method with !.
Description
For all middleware functions,
next
argument exists for sure. However, the types in bolt-js has not been representing that. As the argument is always optional, developers using TypeScript have to call the method with!
.The type definition: https://github.com/slackapi/bolt-js/blob/%40slack/bolt%403.6.0/src/types/middleware.ts#L24-L25
Examples: https://github.com/slackapi/bolt-js/blob/%40slack/bolt%403.6.0/src/App.spec.ts#L428-L431
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: