UNPKG

643 BTypeScriptView Raw
1/**
2 * This exports from the types directory is a temporary workaround, since Amplify CLI currently
3 * generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
4 * This will be removed in future release when CLI and customers moves to recommeneded import styles.
5 */
6export { graphqlOperation, GraphQLAuthError, GraphQLResult, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
7declare const queryType: unique symbol;
8export declare type GraphQLQuery<T> = T & {
9 readonly [queryType]: 'query';
10};
11export declare type GraphQLSubscription<T> = T & {
12 readonly [queryType]: 'subscription';
13};