Skip to content

Update Http.Event types to reflect current specifications#15

Open
MrRefactoring wants to merge 1 commit intoyandex-cloud:masterfrom
MrRefactoring:master
Open

Update Http.Event types to reflect current specifications#15
MrRefactoring wants to merge 1 commit intoyandex-cloud:masterfrom
MrRefactoring:master

Conversation

@MrRefactoring
Copy link
Copy Markdown

No description provided.

@MrRefactoring
Copy link
Copy Markdown
Author

Partially addresses issue #14

Comment thread src/http.ts
operationContext: unknown;
};
};
version: string;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not appropriate place for these fields, since http.Event describes regular direct request to cloud function. These fields structure should be described as new type in apigateway folder like it is done for authorizer requests (https://github.com/yandex-cloud/function-ts-types/blob/master/src/api-gateway/authorizer.ts). I would suggest to create new module http inside and declare types new module with namespace Http and types Event and Context there. Those type should extend regular Event and Context of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants