Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Feb 12, 2024
1 parent 6d07e60 commit f059dbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/api-graphql/src/internals/generateClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const emptyProperty = new Proxy(
{
get() {
throw new Error(
'Client is not generate. This is likely due to `Amplify.configure()` not being called prior to `generateClient()` or because the configuration passed to `Amplify.configure()` is missing GraphQL provider configuration.',
'Client could not be generated. This is likely due to `Amplify.configure()` not being called prior to `generateClient()` or because the configuration passed to `Amplify.configure()` is missing GraphQL provider configuration.',
);
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { ModelIntrospectionSchema, GraphQLProviderConfig } from '@aws-amplify/core/internals/utils';
import {
ModelIntrospectionSchema,
GraphQLProviderConfig,
} from '@aws-amplify/core/internals/utils';
import { EnumTypes } from '@aws-amplify/data-schema-types';

export const generateEnumsProperty = <T extends Record<any, any> = never>(
Expand All @@ -15,7 +18,7 @@ export const generateEnumsProperty = <T extends Record<any, any> = never>(
}

const enums: {
[EnumName in keyof typeof modelIntrospection.enums]: {
[EnumName: string]: {
values: () => string[];
};
} = {};
Expand Down

0 comments on commit f059dbd

Please sign in to comment.