App start() does not account for AWSLambdaReceiver return type #1038
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
Milestone
Description
App::start return type does not account for AWSLambdaReceiver, causing TS to complain.
Related: #1034
app.start's return type is
ReturnType<HTTPReceiver['start']>
, which isPromise<Server>
(code).When using bolt-js
AWSLambdaReceiver
in Typescript, the return type of App::start causes the TS compiler to complain. Users following along with the deploying to aws serverless sample code see this:With correct return type
Promise<AWSHandler>
as defined here, this issue goes away.What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version: 3.5.0
node version:
OS version(s):
The text was updated successfully, but these errors were encountered: