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公式更新しました 6ヶ月前
- AWS公式更新しました 1年前
- AWS公式更新しました 1年前