-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
test: verify public interfaces are compliant to TS4.0 #12013
test: verify public interfaces are compliant to TS4.0 #12013
Conversation
@@ -64,7 +64,7 @@ | |||
"s3" | |||
], | |||
"dependencies": { | |||
"@smithy/md5-js": "2.0.5", | |||
"@smithy/md5-js": "2.0.7", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required to pull in the latest @smithy/types
fix
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as Amplify from 'aws-amplify'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/adapter-nextjs
subpath is not included because Next.js usually has more up-to-date TSC support. But it can be included too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing this, looks great. One comment about deps
Description of changes
Create a test
test:tsc-compliance
to verify all public interfaces are complient to TS 4.0This test is currently failing until following changes are made:
Incorrect types in @smithy/types(PR: fix: broken ChecksumConfiguration and ConditionalRecursiveTransformExact interface in TS < 4.4 smithy-lang/smithy-typescript#926)Incorrect generic in Storage(WIP)Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.