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 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전