Skip to content

Commit

Permalink
fix: minimize type usage of datastore (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwaySway authored Oct 12, 2022
1 parent 046cd3b commit 40b0f23
Show file tree
Hide file tree
Showing 5 changed files with 33,693 additions and 33,598 deletions.
4 changes: 2 additions & 2 deletions packages/codegen-ui-react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions packages/codegen-ui/lib/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
limitations under the License.
*/

// exporting types and scalar functions from aws-amplify
// as these will be used when loading in dataschema for form generation
export type { SchemaModel, ModelFields, ModelField, SchemaNonModels, Schema } from '@aws-amplify/datastore';
export { isGraphQLScalarType } from '@aws-amplify/datastore';

export type SchemaEnums = Record<string, SchemaEnum>;
export type SchemaEnum = {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/codegen-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/test-generator/lib/models/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Schema } from '@aws-amplify/codegen-ui';
import { Schema } from '@aws-amplify/datastore';

export default {
models: {
Expand Down
Loading

0 comments on commit 40b0f23

Please sign in to comment.