1 回答
- 最新
- 投票最多
- 评论最多
1
I know this question is one year old already, and the solution might exist elsewhere as well, but I was able to easily type an SQS even using the unofficial @types/aws-lambda
package. You can install it with npm install --save @types/aws-lambda
.
Then your handler could look like the following:
import { SQSHandler, SQSEvent } from "aws-lambda";
export const handler: SQSHandler = async (event: SQSEvent) {
const records: any[] = event.Records;
.... // do work here
return;
}
已回答 4 年前
相关内容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 个月前
- AWS 官方已更新 6 个月前