Fix TypeScript compilation error in aws-ts-apigateway
We know the pathParameters array will not be null, because we capture
parameters in our route.
MODIFY
aws-ts-apigateway/index.ts
aws-ts-apigateway/index.ts
@@ -18,7 +18,7 @@ let endpoint = new awsx.apigateway.API("hello-world", {
path: "/{route+}",
method: "GET",
eventHandler: async (event) => {
- let route = event.pathParameters["route"];
+ let route = event.pathParameters!["route"];
console.log(`Getting count for '${route}'`);
const client = new aws.sdk.DynamoDB.DocumentClient();

Fix TypeScript compilation error in aws-ts-apigateway

We know the pathParameters array will not be null, because we capture
parameters in our route.