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

test: verify public interfaces are compliant to TS4.0 #12013

Merged

Conversation

AllanZhengYP
Copy link
Member

@AllanZhengYP AllanZhengYP commented Sep 12, 2023

Description of changes

Create a test test:tsc-compliance to verify all public interfaces are complient to TS 4.0

This test is currently failing until following changes are made:

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@AllanZhengYP AllanZhengYP mentioned this pull request Sep 13, 2023
4 tasks
@AllanZhengYP AllanZhengYP marked this pull request as ready for review September 18, 2023 22:19
@AllanZhengYP AllanZhengYP requested review from a team as code owners September 18, 2023 22:20
@@ -64,7 +64,7 @@
"s3"
],
"dependencies": {
"@smithy/md5-js": "2.0.5",
"@smithy/md5-js": "2.0.7",
Copy link
Member Author

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';
Copy link
Member Author

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.

jimblanc
jimblanc previously approved these changes Sep 19, 2023
Copy link
Contributor

@jimblanc jimblanc left a 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

scripts/tsc-compliance-test/package.json Show resolved Hide resolved
stocaaro
stocaaro previously approved these changes Sep 19, 2023
israx
israx previously approved these changes Sep 19, 2023
@AllanZhengYP AllanZhengYP dismissed stale reviews from israx and jimblanc via 777ad50 September 19, 2023 17:51
jimblanc
jimblanc previously approved these changes Sep 19, 2023
stocaaro
stocaaro previously approved these changes Sep 19, 2023
@AllanZhengYP AllanZhengYP merged commit f4a42be into aws-amplify:next/release Sep 19, 2023
15 checks passed
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.

5 participants