-
Notifications
You must be signed in to change notification settings - Fork 30.6k
[@types/aws-lambda] Support API Gateway websocket integration #32781
Copy link
Copy link
Closed
Description
- I tried using the
@types/aws-lambdapackage and had problems. - I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript
- I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).
- Mention the authors (see
Definitions by:inindex.d.ts) so they can respond.
WebSocket APIs in Amazon API Gateway have been announce recently (see here) and the documentation can be found here
I am new to Typescript and AWS thus why i am not making a pull request directly but i am willing to prepare one. From my understanding the documentation reference for the field in the API Gateway event can be found here.
For testing purpose i simply added connectionId and routeKey field to APIGatewayEventRequestContext interface like so:
export interface APIGatewayEventRequestContext {
...
identity: {
...
};
connectionId ?: string;
routeKey ?: string;
...
}
If i was to make a pull request is it the correct modification i should be doing and thus just add the remaining new fields to APIGatewayEventRequestContext as optional fields ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels