1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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;
}
répondu il y a 4 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an