Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update types imported from aws-sdk #555

Merged
merged 5 commits into from
Feb 2, 2024
Merged

Update types imported from aws-sdk #555

merged 5 commits into from
Feb 2, 2024

Conversation

tbeseda
Copy link
Member

@tbeseda tbeseda commented Feb 1, 2024

This update to arc/functions types removes references to aws-sdk and overall improves accuracy of all types.
there are still a couple concessions that I think could be improved in the future, but this iteration is certainly the best we've had yet.

in the future, I think these types can be simplified by inheriting more from aws-lite directly. further, if a future version of arc/fns removes the callback pattern for most methods, we could eliminate all overload typing which accounts for a large chunk of definitions. just a note for future work.

also arc.ws._api returns client.ApiGatewayManagementApi -- need to double check this is correct
@tbeseda
Copy link
Member Author

tbeseda commented Feb 2, 2024

Can you check my work on this change to arc.ws._api, @ryanblock ?
I changed it to return the client.ApiGatewayManagementApi instead of the bare AwsLite client.
This is how arc.tables._client behaves, returning client.DynamoDB
https://github.com/architect/functions/pull/555/files#diff-b466cfb9345982c0a62503cb95b55fb4f4cc46a1c461b82cb3e8f7b0c89b2845

@ryanblock
Copy link
Member

Great catch, thank you @tbeseda!

also remove some old JSDoc since it's mixing with .d.ts in a confusing way for consumers
@tbeseda tbeseda marked this pull request as ready for review February 2, 2024 17:32
@tbeseda tbeseda merged commit 1929c95 into aws-lite Feb 2, 2024
21 checks passed
@tbeseda tbeseda deleted the new-types branch February 2, 2024 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants