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

fix(core): make AmplifyOutputs category types as unknown #14153

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ashwinkumar6
Copy link
Member

@ashwinkumar6 ashwinkumar6 commented Jan 22, 2025

Description of changes

Solves issues where Typescript inferred type from amplify_outputs.json file is strongly typed when compared to AmplifyOutputs type. Updates AmplifyOutputs type to make all category key's as unknown.

Other changes:

  • Rename current AmplifyOutputs type to AmplifyOutputsLegacy and add a deprecating warning.
    • AmplifyOutputs type publicly exposed from "aws-amplify/adapter-core" will expose AmplifyOutputsLegacy under the same name instead to avoid any breaking change.
  • Also, deprecate importing LegacyConfig and AmplifyOutputs types from "aws-amplify/adapter-core"

Issue #, if available

A long term solution for issues like #14045, #14106

Description of how you validated changes

  • Linked and tested in sampleApp locally
  • E2E CI run (in progress)

Checklist

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

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

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

@ashwinkumar6 ashwinkumar6 force-pushed the amplifyOutputs-deepPartial branch from 0d1cbae to 5da2834 Compare January 25, 2025 02:06
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.

3 participants