aws-samples / aws-samples/serverless-snippets
Missing or unclear type definitions in "Integration of Amazon DocumentDB with AWS Lambda" typescript snippet
Open
- Dominant language
- Python
- Stars
- 173
- Forks
- 112
- PR merge metrics
- No merged PRs in 30d
Description
The code snippet in `integration-docdb-to-lambda/example.ts` includes the following two types:
```typescript
import { DocumentDBEventRecord, DocumentDBEventSubscriptionContext } from 'aws-lambda';
```
However, it is unclear what the source of these types is. The name "aws-lambda" suggests they might be part of the @types/aws-lambda package, but that package does not define these types. Additionally, I was unable to find any other package named "aws-lambda" that provides them.
It would be helpful to clarify the origin of these types, or define them directly within the snippet.
Contributor guide
Assessment
This issue has not been assessed yet.