Adds deprecation flag and docstring to the Schema type exported from DataStore. Customers should not be using this type directly. And, it shows up in autocompletion when customers are looking for the Schema type exported from gen2 API's, which can lead to some confusion.
Issue #, if available
Description of how you validated changes
The primary concern is whether any lint rules might prohibit an app from using a deprecated type. To alleviate that concern:
Ran e2e's in a tagged release to confirm no failed builds.
Manually created a nextjs app with default eslint rules and built. (No errors or warnings emitted.)
Description of changes
Adds deprecation flag and docstring to the
Schema
type exported fromDataStore
. Customers should not be using this type directly. And, it shows up in autocompletion when customers are looking for theSchema
type exported from gen2 API's, which can lead to some confusion.Issue #, if available
Description of how you validated changes
The primary concern is whether any lint rules might prohibit an app from using a deprecated type. To alleviate that concern:
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.